searchAnalysis | R Documentation |
Look up analysis accession IDs for one or more study or sample accessions
searchAnalysis(x, ...)
## S4 method for signature 'MgnifyClient'
searchAnalysis(x, type, accession, ...)
x |
A |
... |
Optional arguments; not currently used. |
type |
A single character value specifying a type of
accession IDs specified by |
accession |
A single character value or a vector of character values specifying study or sample accession IDs that are used to retrieve analyses IDs. |
Retrieve analysis accession IDs associated with the supplied study or sample accession. In MGnify, an analysis accession refers to a certain pipeline analysis, such as specific 16S rRNA or shotgun metagenomic mapping. Studies can include multiple samples, and each sample can undergo multiple analyses using these pipelines. Each analysis is identified by a unique accession ID, allowing precise tracking and retrieval of analysis results within the MGnify database.
Vector of analysis accession IDs.
# Create a client object
mg <- MgnifyClient(useCache = FALSE)
# Retrieve analysis ids from study MGYS00005058
result <- searchAnalysis(mg, "studies", c("MGYS00005058"))
## Not run:
# Retrieve all analysis ids from samples
result <- searchAnalysis(
mg, "samples", c("SRS4392730", "SRS4392743"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.