phylotaR (version 1.0.0)

TaxDict-class: Taxonomic record dictionary

Description

Taxonomic dictionary contains a taxonomic tree and NCBI taxonomy data for all taxonomic IDs.

Usage

# S4 method for TaxDict
as.character(x)

# S4 method for TaxDict show(object)

# S4 method for TaxDict print(x)

# S4 method for TaxDict str(object, max.level = 2L, ...)

# S4 method for TaxDict summary(object)

Arguments

x

TaxDict object

object

TaxDict object

max.level

Maximum level of nesting for str()

...

Further arguments for str()

Slots

txids

Taxonomic IDs of taxon records

recs

Environment of records

prnt

Parent taxonomic ID

txtr

Taxonomic tree

See Also

Other run-public: ClstrArc-class, ClstrRec-class, Phylota-class, SeqArc-class, SeqRec-class, TaxRec-class, clusters2_run, clusters_run, parameters_reset, reset, restart, run, setup, taxise_run

Examples

Run this code
# NOT RUN {
data('aotus')
txdct <- aotus@txdct
# this is a TaxDict object
# it contains taxonomic information, including records and tree
show(txdct)
# you can access its different data slots with @
txdct@txids  # taxonomic IDs
txdct@recs   # taxonomic records environment
txdct@txtr   # taxonomic tree
txdct@prnt   # MRCA
# access any record through the records environment
txdct@recs[[txdct@txids[[1]]]]
# for interacting with the taxonomic tree, see the treeman package
summary(txdct@txtr)
# }

Run the code above in your browser using DataLab