Description Usage Arguments Details Value Author(s) See Also Examples
Extracting taxonomic information from ConTax data sets.
1 2 3 4 5 6 7 8 |
header |
A vector of texts, typically the |
The ConTax data sets are tables in the FASTA format (see readFasta
),
where the Header
column contains texts according to a strict format.
The header
always starts with a short text, a Tag, which is a unique identifier for every sequence.
The function getTag
will extract this from the header
.
After the Tag follows one or more tokens. One of these tokens must be a string with the following format:
"k__<...>;p__<...>;c__<...>;o__<...>;f__<...>;g__<...>;"
where <...> is some proper text. Here is an example of a proper string:
"k__Bacteria;p__Firmicutes;c__Bacilli;o__Bacillales;f__Staphylococcaceae;g__Staphylococcus;"
The functions getDomain
, ..., getGenus
extracts the
corresponding information from the header
. getTaxonomy
combines all taxonomy extractors, combines these in a table
and imputes missing taxa with parent taxa.
A vector containing the sub-texts extracted from each header
text, but
getTaxonomy
returns a table with the full taxonomy, one row for each input header
Lars Snipen.
1 2 3 4 | data(contax.trim)
getTag(contax.trim$Header)
getGenus(contax.trim$Header)
getPhylum(contax.trim$Header)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.