peakCDFextraction {TargetSearch} | R Documentation |
This function reads a netcdf chromatogram file and returns a list containing the retention time and the intensity matrices.
peakCDFextraction(cdfFile, massRange = c(85, 500))
cdfFile |
A character string naming a netcdf file. |
massRange |
A two component numeric vector with the scan mass range to extract. |
The function expects the following NetCDF variables: intensity_values
,
mass_values
, scan_index
, point_count
and scan_acquisition_time
.
Otherwise, an error will be displayed.
The massRange
parameter is a numeric vector with two components: lower
and higher masses. All masses in that range will be extracted. Note that it is
not possible to extract a discontinuous mass range.
A two component list.
Time |
The retention time vector. |
Peaks |
The intensity matrix. Rows are the retention times and columns are masses. The first column is the lower mass value and the last one is the higher mass. |
This function does not look for peaks, just extracts all the raw intensity values
of the chromatogram file. Use NetCDFPeakFinding
instead.
Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig