require(TargetSearchData)
data(TargetSearchData)
# get RI file path
RI.path <- file.path(find.package("TargetSearchData"), "gc-ms-data")
# update RI file path
RIpath(sampleDescription) <- RI.path
# Import Library
refLibrary <- ImportLibrary(file.path(RI.path,'library.txt'))
# update median RI
refLibrary <- medianRILib(sampleDescription, refLibrary)
# get the sample RI
corRI <- sampleRI(sampleDescription, refLibrary, r_thres = 0.95)
# obtain the peak Intensities of all the masses in the library
peakData <- peakFind(sampleDescription, refLibrary, corRI)
# make a profile of the metabolite data
metabProfile <- Profile(sampleDescription, refLibrary, peakData, r_thres = 0.95)
# same as above, but with different thresholds.
metabProfile <- Profile(sampleDescription, refLibrary, peakData,
r_thres = 0.9, minPairObs = 5)
Run the code above in your browser using DataLab