Replies: 1 comment 1 reply
-
Thanks Ed! I'll think about this more carefully probably next week, Some initial thoughts
cheers |
Beta Was this translation helpful? Give feedback.
-
Thanks Ed! I'll think about this more carefully probably next week, Some initial thoughts
cheers |
Beta Was this translation helpful? Give feedback.
-
Hi David,
Just getting this idea a little more fleshed out on paper.
Suggestion
Save the original taxa names such that they are accessible even after renaming using
tax_name
ortax_rename
.Rationale
Users of the dada2 -> phyloseq analysis pipeline will be interested in renaming the long ASV sequence names that are output by dada2. The
tax_name
andtax_rename
functions can help with this end goal. Yet, users may want to access those ASV sequences, or other original identifiers, as a reference between different types of analyses, even as the display names are renamed.Secondarily, we can make it easy to print the renamed taxon name along with the original taxon name, either as tab-delimited or FASTA format, as appropriate, such that the data can be used in external programs, e.g. phylogenetic tree software.
Potential implementation
I suggest saving the original taxa names as a slot in the psExtra object. This could happen even prior to any
tax_name
ortax_rename
calls. Later, after taxa are renamed, atax_save
function could be called, along with options about how the output is printed.Example code
This is what I've done in the past, as an example:
What are your thoughts?
Cheers,
Ed
Beta Was this translation helpful? Give feedback.
All reactions