createMtblsSampleFile: Writing template for Metabolights sample file

Description Usage Arguments Author(s)

View source: R/utils_metabolights.R

Description

createMtblsSampleFile Exports data read from a .gda file to a Metabolights sample file. A study ID is required to generate consistent files. To be used this function requires the following column annotations to be present: "Source C", "Sample C", "Assay C", "File C", "Sample Type C"

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
createMtblsSampleFile(
  x,
  study_id = "MTBLSXXXX",
  study_factors = NA,
  metadata = list(organism_characteristics = NA, organism_source_ref = NA,
    organism_term_access = NA, organism_part_characteristics = NA,
    organism_part_source_ref = NA, organism_part_term_access = NA,
    variant_characteristics = NA, variant_source_ref = NA, variant_term_access = NA,
    protocol_ref = NA)
)

Arguments

x

list List with data read from .gda file

study_id

character Study ID from Metabolights or place holder (default is MTBLSXXXX)

study_factors

character Potentially present study factors

metadata

list Additional metadata, such a organism etc. #'

Author(s)

Michael Witting


michaelwitting/genedataRutils documentation built on April 30, 2021, 5:11 p.m.