filter singletons doesn't work

31 views
Skip to first unread message

Irelka Colina

unread,
Jul 25, 2016, 10:14:36 AM7/25/16
to Qiime 1 Forum
Hello!

I used 2 commands in QIIME to prepare and to suprime singleton from samples.
When I saw the new file, I perceived some singletons in some samples even if the file was considerably reduced.

If someone can help me to undertand why this happen ? or if I need something more effective or if it is normal...

Thanks,
Irelka


These are the commands that I used,

make_otu_table.py -i uclust_picked_otus/XXX_ChimeraChecked_otus.txt -t uclust_assigned_taxonomy/rep_set_tax_assignments.txt -o otu_table.biom

filter_otus_from_otu_table.py -i otu_table.biom -o otu_table_no_singletons.biom -n 2

Andrew Krohn

unread,
Jul 25, 2016, 8:11:53 PM7/25/16
to Qiime 1 Forum
This script filters singletons across the entire table, and not on a per-sample basis which explains your result.

Bokulich et al 2013 make the suggestion to filter across the entire table at 0.005% (http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3531572/) rather than singleton filtering. The command would be:

filter_otus_from_otu_table.py -i otu_table.biom -o 005_table.biom --min_count_fraction 0.00005

Irelka Colina

unread,
Jul 26, 2016, 4:22:56 AM7/26/16
to Qiime 1 Forum
Thanks Andrew !!!

I will try and if it is run I will tell you.

Irelka

Irelka Colina

unread,
Jul 27, 2016, 3:22:16 AM7/27/16
to Qiime 1 Forum
Hello!

I used your command and it is run !!!

Thank you !!!

Andrew Krohn

unread,
Jul 27, 2016, 1:27:11 PM7/27/16
to Qiime 1 Forum
Glad that it worked. I wrote up a script this morning using a colleague's python creation as the back end to filter OTUs by sample rather than by table. My colleague's script works well, but the documentation wasn't great. I haven't tested this script much yet, so use at your own risk. Capable of filtering singletons by sample, or specifying a decimal value of per sample abundance to filter. You will need my github repository to make it work .

Irelka Colina

unread,
Jul 28, 2016, 5:14:27 AM7/28/16
to Qiime 1 Forum
Hello !
Thank you, for yoyr help ! Maybe I wil use but I not sure because I have 64 samples ;)

Now, I have a problem with my new file (filtered 005%), when I try to do a single rarefaction in RStudio because I need it for a multiple rarefaction it does not work :'( but it works with my file that was filtered with first command that I wrote you.
I would know if you have an idea about that ?

I send you the script that I used if you want see it...

Muchas Gracias,
Irelka
Liste de commandes pour 005.docx
Trans_SansTax_SansMed_005.csv

Andrew Krohn

unread,
Jul 28, 2016, 3:34:05 PM7/28/16
to Qiime 1 Forum
I'm not great at R, and I only use it when I have to. There is a rarefaction command in QIIME which will do what you need. If you insist on R, likely you will have to spend some time making your file properly formatted.

Try these out for QIIME use:

Reply all
Reply to author
Forward
0 new messages