parse.shimadzu: Function for parsing Shimadzy pre-processed .txt file

Description Usage Arguments Details Examples

View source: R/parse.shimadzu.R

Description

Function for parsing shimadzu preprocessed .txt file

Usage

1
parse.shimadzu(fileName)

Arguments

fileName

name of .txt file

Details

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).

Examples

 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)
  }

HTDA documentation built on May 2, 2019, 4:53 p.m.