Search for studies in the Metabolomics Workbench database using multiple criteria including analysis type, species, sample source, and disease.
Usage
search_metstat(
client,
analysis_type = "",
polarity = "",
chromatography = "",
species = "",
sample_source = "",
disease = "",
kegg_id = "",
refmet_name = ""
)Arguments
- client
An mw_rest_client object
- analysis_type
Character. Analysis type (e.g., "LCMS", "GCMS", "NMR")
- polarity
Character. Ionization polarity ("POSITIVE", "NEGATIVE")
- chromatography
Character. Chromatography method (e.g., "HILIC", "RP")
- species
Character. Species name (e.g., "Human", "Mouse", "Rat")
- sample_source
Character. Sample type (e.g., "Blood", "Urine", "Tissue")
- disease
Character. Disease or condition
- kegg_id
Character. KEGG compound ID (e.g., "C00002")
- refmet_name
Character. RefMet standardized metabolite name
Examples
if (FALSE) { # \dontrun{
client <- mw_rest_client()
# Search for human blood LCMS studies
studies <- search_metstat(client,
analysis_type = "LCMS",
species = "Human",
sample_source = "Blood"
)
# Search for diabetes-related studies
diabetes_studies <- search_metstat(client, disease = "Diabetes")
# Search for studies containing specific metabolite
glucose_studies <- search_metstat(client, refmet_name = "Glucose")
#' # Search for human blood studies
human_blood <- search_metstat(client,
species = "Human",
sample_source = "Blood"
)
} # }
