importSampleMetadata | R Documentation |
import a sampleMetadata from a tsv file to a ptrSet object
importSampleMetadata(set, file)
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). |
a ptrSet with th enew sample Metadata
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.