ram_cache: RAM Cache Environment

ram_cacheR Documentation

RAM Cache Environment

Description

An environment used for caching data in RAM.

Usage

ram_cache

Format

An environment with the following elements:

  • CDs: A data frame. The column names of CDs are the chemical descriptors listed in CDFeatures. The rownames in CDs are SMILES strings.

  • CDRowNr: A list. The names of the list elements equal the rownames of CDs. The values are the indices of the rows in the CDs data frame.

Details

This environment is used by getCDsFor1Molecule() to store the results of previous calculations to speed up subsequent calls. It gets initalized upon the first call of getCDsFor1Molecule() with the chemical descriptors for all molecules available in the RP dataset and the HILIC dataset of the Retip package.

References

Retip: Retention Time Prediction for Compound Annotation in Untargeted Metabolomics Paolo Bonini, Tobias Kind, Hiroshi Tsugawa, Dinesh Kumar Barupal, and Oliver Fiehn Analytical Chemistry 2020 92 (11), 7515-7522 DOI: 10.1021/acs.analchem.9b05765

Examples

dim(ram_cache$CDs) # 0 241
cds <- getCDsFor1Molecule(cache = TRUE, verbose = TRUE)
dim(ram_cache$CDs) # 1316 241
ram_cache$CDRowNr[["COC1=C(C=CC(=C1)CCN)O"]] # 2
ram_cache$CDs[1:10, 1:3]

FastRet documentation built on June 25, 2024, 5:07 p.m.