updatePtrSet: update a ptrSet object

View source: R/read_data.R

updatePtrSetR Documentation

update a ptrSet object

Description

When new files are added to a directory which has already a ptrSet object associated, run updatePtrSet to add the new files in the object. The information on the new files are added to object with the same parameter used for the function createPtrSet who has created the object. updatePtrSet also delete from the ptrSet deleted files in the directory.

Usage

updatePtrSet(ptrset)

Arguments

ptrset

a ptrset object

Value

teh same ptrset object than ininput, but completed with new files and without deleted files in the directory

Examples

dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
exhaledPtrset <- createPtrSet(dir=dirRaw, setName="exhaledPtrset", 
mzCalibRef = c(21.022, 60.0525), fracMaxTIC = 0.7, saveDir = NULL )
##add or delete files in the directory 
# exhaledPtrset<- updatePtrSet(exhaledPtrset)

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