MetFragConfig.CompToxExportSDF: Create MetFrag Config Files with LocalSDF and Scoring Terms...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/MetFragConfigR.R

Description

This is a CompTox SDF Export-specific wrapper function for MetFragConfig.

Usage

1
2
MetFragConfig.CompToxExportSDF(mass, adduct_type, results_filename, peaklist_path, base_dir,
CompToxSDFtoLocalSDFterms, ...)

Arguments

mass

The mass with which to search the candidate database (DB). Use neutralPrecursorMass and adduct_type to set whether this is monoisotopic mass or an adduct species. Defaults to adduct_type.

adduct_type

The adduct species used to define mass (if neutralPrecursorMass=FALSE) and fragmentation settings in the config file, entered as either PrecursorIonType (text) or PrecursorIonmode (a number). The available options are given in the system file MetFragAdductTypes.csv in the extdata folder. Recommended default values (if ion state is unclear) are [M+H]+ (1) for positive and [M-H]- (-1) for negative mode.

results_filename

Enter a base filename for naming the results files - do not include file endings

peaklist_path

Enter the full path and file name to the peak list for this config file

base_dir

Enter the directory name to set up the subfolders for MetFrag batch results. If the folders don't exist, subfolders config, log and results are created; the output of this function is saved in config.

CompToxSDFtoLocalSDFterms

The output of CompToxSDFtoLocalSDFterms, used to set DB, localDB_path, UDS_Category and UDS_Weights in MetFragConfig

Details

Remaining parameters are described in MetFragConfig

Value

Returns a MetFrag config file name

Author(s)

Emma Schymanski <emma.schymanski@uni.lu> in partnership with Christoph Ruttkies (MetFragCL), Antony J. Williams and team (CompTox Dashboard)

See Also

MetFragConfig, runMetFrag, CompToxSDFtoLocalSDFterms

Examples

1
2
3
4
5
6
7
8
9
# Example from DOI: 10.1021/acs.est.7b01908
CompToxSDF <- system.file("extdata","CompToxBatchSearch_MetFrag_MSready_C10H14N2.sdf",package="ReSOLUTION")
LocalSDFterms <- CompToxSDFtoLocalSDFterms(CompToxSDF)
peaklist <- system.file("extdata","EQ300804_Nicotine_peaks.txt",package="ReSOLUTION")
test_dir <- "C:/DATA/Workflow/MetFrag22/metfrag_test_results"
config_file <- MetFragConfig.CompToxExportSDF(163.1230, "[M+H]+","Nicotine_PrecMass_MpHp_SDF",peaklist, test_dir, LocalSDFterms)
metfrag_dir <- "C:/DATA/Workflow/MetFrag22/"
MetFragCL_name <- "MetFrag2.4.4-msready-CL.jar"
runMetFrag(config_file, metfrag_dir, MetFragCL_name)

schymane/ReSOLUTION documentation built on May 22, 2021, 3:41 a.m.