setSampleMetadata | R Documentation |
Insert a samplemetada data.frame in a ptrSet object. The dataframe must have all file names in rownames.
setSampleMetadata(set, sampleMetadata)
set |
a ptrSet object |
sampleMetadata |
a data.frame with all file names of the ptrSet in row names |
the ptrSet object in argument with the sampleMetadata modified
dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
exhaledPtrset <- createPtrSet(dir=dirRaw, setName="exhaledPtrset",
mzCalibRef = c(21.022, 60.0525), fracMaxTIC = 0.7, saveDir = NULL )
SMD<-getSampleMetadata(exhaledPtrset )
colnames(SMD)[1]<-'individual'
exhaledPtrset<-setSampleMetadata(exhaledPtrset ,SMD)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.