importSampleMetadata: import a sampleMetadata from a tsv file to a ptrSet object

View source: R/SetMethods.R

importSampleMetadataR Documentation

import a sampleMetadata from a tsv file to a ptrSet object

Description

import a sampleMetadata from a tsv file to a ptrSet object

Usage

importSampleMetadata(set, file)

Arguments

set

a ptrSet object

file

a tsv file contains the sample metada to import, with all file names in row name (the fist column on th excel).

Value

a ptrSet with th enew sample Metadata

Examples

library(ptairData)
dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
exhaledPtrset <- createPtrSet(dir=dirRaw, setName="exhaledPtrset", 
mzCalibRef = c(21.022, 60.0525), fracMaxTIC = 0.7, saveDir = NULL )
saveFile<-file.path(getwd(),'sampleMetadata.tsv')
#exportSampleMetada(exhaledPtrset ,saveFile)
#exhaledPtrset<-importSampleMetadata(exhaledPtrset ,saveFile)

camilleroquencourt/ptairMS documentation built on June 9, 2024, 10:35 a.m.