get_metabolights_study: Download MetaboLights study files.

Description Usage Arguments Note References

View source: R/get_metabolights_study.R

Description

Download data and metadata files for each assay from the specified MetaboLights database study.

Usage

1
get_metabolights_study(studyID, directory)

Arguments

studyID

ID of the metabolights study to download. For example, 'MTBLS100'

directory

Directory where to download the data.

Note

Study's files are stored by assay. Data files from assay 1 of the study will be stored in folder '1'.

Be aware that the study's files may not be structured in the right way to be readily imported with a specmine read function.

Specmine takes into consideration that the names of the data files/folders correspond to the names of the samples. In some studies, data file names do not correspond to the samples' names in the metadata. To overcome this, we create a file called 'samples_files.csv' matching the sample name to the respective data file/zipped folder.

In some cases, one downloaded zipped data folder may contain more than one sample / replicates, but metabolights information only associates the overall folder as one sample. So manual naming of the folder samples and further changing the metadata file (metadata.csv) may be necessary.

Also, some data formats of some metabolights studies are not yet readable by specmine.

The metadata file(s) are csv file(s) with the metadata information on each sample. There is one metadata file per assay. Metadata file from assay 1 will be named 'metadata1.csv'.

References

MetaboLights database: https://www.ebi.ac.uk/metabolights/


specmine documentation built on Sept. 21, 2021, 5:06 p.m.