View source: R/library_query.R
library_query | R Documentation |
The function queries the input (reference) spectral library based on a query expression and/or (a) query MS/MS spectra or query library or LC-MS/MS file
library_query(
input_library = NULL,
query_ids = NULL,
query_expression = "",
query_spectrum = NULL,
query_library = NULL,
params.search = list(mz_search = 0.01, ppm_search = 10, rt_search = 15, rt_gap = 30),
params.query.sp = list(prec_mz = 10000, use_prec = T, polarity = "Positive", method =
"Cosine", min_frag_match = 6, min_score = 0, reaction_type = "Metabolic")
)
input_library |
Character or a list object. If character, file name with extension mgf, msp or RData. If list, must contain "complete", "consensus" and "network". |
query_ids |
Vector. Vectors of molecular ids that will be extracted from input library |
query_expression |
Vector of characters or "". Vector of conditions used for querying the library. e.g. c("IONMODE=Positive","PEPMASS=325.19"). The left-hand side must match with the metadata items of the searched library. |
query_spectrum |
Two-column data matrix. Two columns represent m/z and intensity of query tandem spectrum. At least 3 valid peaks should be provided. |
query_library |
Character or a list object. Used when query_spectrum = NULL. If character, file name with extension mgf, msp, Rdata, cdf, mz(x)ml. If list, must contain metadata and sp, or library_generator output ("complete", "consensus" and "network") |
params.search |
General parameters for searching spectral library
|
params.query.sp |
Parameters for matching an unknown spectra
|
complete: Complete spectra library filtered by both query experession and query spectrum
consensus: Consensus spectra library filtered by both query experession and query spectrum.
network: Molecular network filtered by both query experession and query spectrum. The query spectrum is also connected to the molecular network
Youzhong Liu, Youzhong.Liu@uantwerpen.be
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.