get_taxonomy_counts: Return the count of each taxon in a taxonomy graph

Description Usage Arguments Value

View source: R/get_taxonomy_counts.R

Description

This function evaluates the taxonomy structure from a set of input IDs and returns the count of each taxon ID with non-zero occurrences in the taxonomy graph.

Usage

1
2
3
4
5
6
7
get_taxonomy_counts(
  taxonomy_path = NULL,
  ids_file = NULL,
  ids_df = NULL,
  nodes = NULL,
  verbose = TRUE
)

Arguments

taxonomy_path

path to folder containing the NCBI taxonomy files (i.e., the contents of _taxdump.zip_, which can be downloaded from <ftp://ftp.ncbi.nih.gov/pub/taxonomy/> or retrieved using [retrieve_NCBI_taxonomy()]).

ids_file

path to a tab-separated file containng two two columns, with the input taxon IDs in the first column, and the corresponding sequence IDs (corresponding to the ID strings int the multifasta input file, without the ">" line starter) in the second column.

ids_df

two-column data frame with the input taxon IDs in the first column, and the corresponding sequence IDs (corresponding to the ID strings int the multifasta input file, without the ">" line starter) in the second column. Ignored if 'ids_file' is not 'NULL'.

nodes

data.frame containing the pre-processed information about the NCBI taxonomy structure. This is generated either by using [CHNOSZ::getnodes()], or as a result of a previous call to this function. If 'nodes' is not 'NULL' then 'taxonomy_path' is ignored.

verbose

logical: regulates function echoing to console.

Value

list object of class _taxonsampling_, containing:


franciscolobo/TaxonSampling documentation built on Dec. 31, 2021, 12:04 a.m.