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
change otu.table() sequence header to numbered OTUs with taxonomy #1030
Comments
I am having the same problem. The OTUs are labeled as the full sequence which makes doing any plots that utilize the OTU names impossible for the computer to display. |
Normally we use the assignTaxonomy workflow to provide the taxonomic
names.
Then you can choose to change the names in the otu_table using this:
https://benjjneb.github.io/dada2/assign.html
The species information should be transferred into the taxa_names
object and taxa_table.
Usually we just give the otus short names
(keeping the sequence information safely elsewhere for data combining).
taxa_names(psobject) <- paste0("Seq", seq(ntaxa(psobject)))
A very long discussion of more intricate ways of doing this appears here:
#213
Hope this helps,
…On Thu, Nov 1, 2018 at 1:06 PM jjrahn ***@***.***> wrote:
I am having the same problem. The OTUs are labeled as the full sequence
which makes doing any plots that utilize the OTU names impossible for the
computer to display.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1030 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJcvQY837ZlPfai9rh26yMl4zLIyKK3ks5uq1RMgaJpZM4YEG3V>
.
--
Susan Holmes
John Henry Samter Fellow in Undergraduate Education
Professor, Statistics
2017-2018 CASBS Fellow,
Sequoia Hall,
390 Serra Mall
Stanford, CA 94305
http://www-stat.stanford.edu/~susan/
|
Thank you for your comment and apologies for the late reply. I crosslinked this post to my question on stackoverflow.com. But I'm still unable to add the taxonomy within the header (which is now Seq_001, Seq_002 etc). I'll try to find a way for that. René |
I think a found a (still dirty looking) way to achieve my goal. I will show the code here, more is explained on
maybe it is possible to include a function that performs the above in a clean way, within the phyloseq-structure? It might also be possible to provide the |
Hello everyone,
I recently got into dada2 and phyloseq using this workflow: https://f1000research.com/articles/5-1492/v2
I followed it until all prepared data was combined into a phyloseq object. I provided an example with data from the mentioned article at stackoverflow:
https://stackoverflow.com/questions/53032504/combine-otu-and-tax-table-and-replace-actual-sequences-with-otu-ids-phyloseq-da
Now I'm wondering how I may get an
otu.table(ps)
, that does not have the actual sequences as headers? I would like to combine the information from the taxonomy table and from the OTU table.but so far no one could help and I thought this might be a more appropriate place to ask for help. I try to create a format as this:
I assume I'm just not finding an obvious function for this? I've looked around quite a bit but couldn't find something specific that was helpful.
Thank you very much
René
The text was updated successfully, but these errors were encountered: