Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for import_mothur cutoff and missing taxa #412

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TT1972
Copy link

@TT1972 TT1972 commented Dec 5, 2014

When using import_mothur provided cutoff values were ignored due to
missing return(cutoff) argument.
Additionally the last two OTUs were missing because
as.integer(rawlines[2]) gives back the number of OTUs but rawlines
contains two more elements (cutoff and number of OTUs).

When using import_mothur provided cutoff values were ignored due to
missing return(cutoff) argument. When using import_mothur provided
cutoff values were ignored due to missing return(cutoff) argument.
Additionally the last two OTUs were missing because
as.integer(rawlines[2]) gives back the number of OTUs but rawlines
contains two more elements (cutoff and number of OTUs).
Additionally the last two OTUs were missing because
as.integer(rawlines[2]) gives back the number of OTUs but rawlines
contains tow more elements (cutoff and number of OTUs).
mothur fn.list file now contains a label row. When not providing a
cutoff value this leads to an error.
…tion

In the mothur_constaxonomy_file the OTUs are named: Otu01, Otu02, etc.,
because phyloseq uses a different naming system you get a "Component
taxa/OTU names do not match." error message.
I have created a new function called "create_otu_dict" which is used to
name the OTUs of the mothur_constaxonomy_file the same way as phyloseq
does.
Additionally I added a new option for parsing the elements of a taxonomy
vector called "parse_taxonomy_mothur". mothur taxonomy files in general
have the following six ranks: Kingdom, Phylum, Class, Order, Family,
Genus).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant