importSampleMetadata {ptairMS} | R 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)

[Package ptairMS version 1.2.0 Index]