get.taxon.cids: get.taxon.cids

View source: R/get.taxon.cids.R

get.taxon.cidsR Documentation

get.taxon.cids

Description

use pubchem rest to retreive pubchem CIDS known to be found in a given species. NCBI taxid should be used as input. i.e. Homo sapiens subsp. 'Denisova' is taxid 741158

Usage

get.taxon.cids(
  taxid = NULL,
  taxstring = NULL,
  sub.taxa.n = 1000,
  get.inchikey = TRUE
)

Arguments

taxid

integer NCBI taxid for the taxon to search.

taxstring

taxonomy string for the taxon of interest.

sub.taxa.n

integer value for the number of subtaxa to consider. Note that if the sub.taxa.n value is less the the availabe number of subtaxa, only the first sub.taxa.n values, as reported by rentrez, are returned. If you require specific subtaxa, you should call those taxids explicitly to ensure those results are returned.

get.inchikey

logical whether to get the InChIKeys as well (default TRUE).

Details

this function enables return of a list of pubchem CIDs which can be used for prioritizing annotations. If a genus level taxid is selected, setting the sub.taxa.n option > 0 will return metabolites associated with that taxid and all (assuming n is large enough) subtaxa. i.e. seting taxid to 9605 (genus = 'Homo') will return metabolites associated with Homo sapiens, Homo heidelbergensis, Homo sapiens subsp. 'Denisova', etc.

Value

returns a vector of integer pubchem cids (and optionally inchikeys if get.inchikey was set to TRUE)

Author(s)

Corey Broeckling


RAMClustR documentation built on Oct. 20, 2023, 5:08 p.m.