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.
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.