Skip to contents

Get all Study, Sample and Analysis metadata for the supplied analyses accessions

Usage

getMetadata(x, ...)

# S4 method for MgnifyClient
getMetadata(x, accession, ...)

Arguments

x

A MgnifyClient object.

...

Optional arguments; not currently used.

accession

A single character value or a vector of analysis accession IDs specifying accessions to retrieve data for.

Value

data.frame of metadata for each analysis in the accession list.

Details

The function retrieves all associated study, sample and analysis metadata attributes as a list of analyses accessions.

Examples

# Create a client object
mg <- MgnifyClient(useCache = FALSE)

# Download all associated study/sample and analysis metadata
accession_list <- c("MGYA00377505")
meta_dataframe <- getMetadata(mg, accession_list)
#> Fetching metadata...
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |======================================================================| 100%