getData | R Documentation |
Versatile function to retrieve raw results
getData(x, ...)
## S4 method for signature 'MgnifyClient'
getData(x, type, accession.type = NULL, accession = NULL, as.df = TRUE, ...)
x |
A |
... |
optional arguments fed to internal functions. |
type |
A single character value specifying the type of data retrieve.
Must be one of the following options: |
accession.type |
A single character value specifying type of accession
IDs ( |
accession |
A single character value or a vector of character values
specifying accession IDs to return results for.
(By default: |
as.df |
A single boolean value specifying whether to return the
results as a data.frame or leave as a nested list.
(By default: |
This function returns data from MGnify database. Compared to
getResult
, this function allows more flexible framework for fetching
the data. However, there are drawbacks: for counts data, getResult
returns optimally structured data container which is easier for downstream
analysis. getData
returns raw data from the database. However, if
you want to retrieve data on pipelines or publications, for instance,
getResult
is not suitable for it, and getData
can be utilized
instead.
data.frame
or list
getResult
# Create a client object
mg <- MgnifyClient(useCache = FALSE)
# Find kegg modules for certain analysis
df <- getData(
mg, type = "kegg-modules",
accession = "MGYA00642773", accession.type = "analyses")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.