Description Usage Arguments Details Examples
View source: R/parse.shimadzu.R
Function for parsing shimadzu preprocessed .txt file
1 | parse.shimadzu(fileName)
|
fileName |
name of .txt file |
This function depend on another three function for parsing .txt preprocessed data file i.e Parse.R, extract and FinalTable. This function stores data after parsing into five different clot of class parse.Shimadzu i.e McPeakTable, annotation, Gas Chromatography, mass spectrum and Finaltable . Finaltable slot contains a table represnting GC peaks, Retention time, mass spectrum ion fragmentation peaks for each GC peaks and Total Ion current (TIC).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (fileName)
{
conn = file(fileName, open = "r")
linn = readLines(conn)
data <- vector()
for (i in 1:length(linn)) {
data <- rbind(data, linn[i])
}
read.shimadzu <- Parse(data)
return(read.shimadzu)
close(conn)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.