# Phylogeny can not be inferred. No enough markers were kept for the samples

**URL:** <https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641>\
**Category:** StrainPhlAn\
**Created:** [May 25, 2022, 10:23pm UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641 "2022-05-25T22:23:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ai\_Zhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/ai_zhang/32/1472_2.png) [@Ai\_Zhang](https://forum.biobakery.org/u/Ai_Zhang)\
**Post date:** [May 25, 2022, 10:23pm UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641/1 "2022-05-25T22:23:47Z")

</div>

Hi,

I tried to run StrainPhlan on s\_\_Eisenbergiella\_tayi.fna, but I first got the error of “too many samples were discarded”. Then, I set “–sample\_with\_n\_markers 0 --marker\_in\_n\_samples 0”, and it gave me this error “[e] Phylogeny can not be inferred. No enough markers were kept for the samples”.

What does it mean? I first did the Wilcoxon test on some species and I got this species with an adjusted p \< 0.05, so I tried it with StrainPhlan. If this error occurs, does it mean this species is not good for analysis?

Thank you,  
Ai

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [May 27, 2022, 10:31am UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641/2 "2022-05-27T10:31:07Z")

</div>

Hi @Ai_Zhang  
Thanks for getting in touch. Could you give us few more information to better understand the problem:

1. How many samples are you considering?
2. In how many samples E. tayi is present? Is it low abundant in your samples?
3. Could you share the exact full command you are using?

Thanks

---

<div class="post-metadata">

**Author:** ![Ai\_Zhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/ai_zhang/32/1472_2.png) [@Ai\_Zhang](https://forum.biobakery.org/u/Ai_Zhang)\
**Post date:** [May 27, 2022, 4:10pm UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641/3 "2022-05-27T16:10:41Z")

</div>

Hi Aitor,

I used 63 samples. Only 4 samples present E. tayi. The relative abundances of these 4 samples from MetaPhlan are 1.6, 0.57, 0.007, and 0.004.

Command I used:  
strainphlan -s consensus\_markers/\*.pkl -m clade\_markers/clade\_markers/s\_\_Eisenbergiella\_tayi.fna -o output -c s\_\_Eisenbergiella\_tayi --phylophlan\_mode fast --nproc 16 --sample\_with\_n\_markers 0 --marker\_in\_n\_samples 0

I checked another species, s\_\_Bacteroides\_vulgatus, that I could run strainphlan with default settings without error. For this species, only 5 samples have it. Relative abundances are 6.3, 1.05, 0.38, 0.09, and 0.02.

Thank you,  
Ai

---

<div class="post-metadata">

**Author:** ![aitor.blancomiguez](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/aitor.blancomiguez/32/86_2.png) [@aitor.blancomiguez](https://forum.biobakery.org/u/aitor.blancomiguez)\
**Post date:** [May 30, 2022, 7:28am UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641/4 "2022-05-30T07:28:59Z")

</div>

Hi @Ai_Zhang  
Having only 4 samples with _E. tayi_ present is already a challenge when you have such low abundances in your samples (0.007 and 0.004). StrainPhlAn trees need a minimum of 4 samples and it seems that, at least in one (and probably two) or your samples you don’t have enough reads to reconstruct the enough marker sequences (due to its low abundance). The scenario with B. vulgatus looks better, the low abundance samples are ~10 times higher.  
Best,  
Aitor

---

<div class="post-metadata">

**Author:** ![Ai\_Zhang](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/ai_zhang/32/1472_2.png) [@Ai\_Zhang](https://forum.biobakery.org/u/Ai_Zhang)\
**Post date:** [May 31, 2022, 4:10pm UTC](https://forum.biobakery.org/t/phylogeny-can-not-be-inferred-no-enough-markers-were-kept-for-the-samples/3641/5 "2022-05-31T16:10:57Z")

</div>

Hi Aitor,

Thanks for the reply. It’s really helpful!

Thank you,  
Ai
