Skip to contents

Create a look up table that goes from TaxID, to Lineage

Usage

create_lineage_lookup(
  lineage_file = here("data/rankedlineage.dmp"),
  outfile,
  taxonomic_rank = "phylum"
)

Arguments

lineage_file

Path to the rankedlineage.dmp file containing taxid's and their corresponding taxonomic rank. rankedlineage.dmp can be downloaded at https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/new_taxdump/

outfile

File the resulting lineage lookup table should be written to

taxonomic_rank

The upperbound of taxonomic rank that the lineage includes. The lineaege will include superkingdom>...>taxonomic_rank. Choices include: "supperkingdom", "phylum", "class","order", "family", "genus", and "species"

Author

Samuel Chen