pickUtils {rNMR} | R Documentation |
Utilities used for or related to peak picking in rNMR.
appendPeak(newList, oldList) isNoise(x, data, thresh = -0.15) localMax(x, thresh, noiseFilt) matchShift(inFolder = fileFolder[[wc()]], w1 = NULL, w2 = NULL, w1.pad = 0, w2.pad = 0, invert = FALSE, return.inc = FALSE, return.seq = FALSE, overRange = FALSE) maxShift(inFile, invert = FALSE, conDisp = c(TRUE, TRUE), massCenter = FALSE) pdisp(col, cex, pch, pos, offset, ...) peakPick(fileName = currentSpectrum, inFile = NULL, w1Range = NULL, w2Range = NULL, append = FALSE, internal = FALSE, ...) peakPick1D(fileName = currentSpectrum, inFile = NULL, w2Range = NULL, w2Gran = 2, noiseFilt = globalSettings$peak.noiseFilt, maxOnly = FALSE, ...) peakPick2D(fileName = currentSpectrum, inFile = NULL, w1Range = NULL, w2Range = NULL, fancy = FALSE, noiseFilt = globalSettings$peak.noiseFilt, maxOnly = FALSE, ...) peakVolume(inFile, gran = 200, c.vol = FALSE, baselineCorr = FALSE) regionMax(fileName = currentSpectrum, redraw = TRUE, noiseCheck = TRUE) shiftToROI(shiftList = NULL, w1Delta = 1, w2Delta = 0.05)
newList |
data.frame; peak list to append. |
oldList |
data.frame; peak list to be appended. |
x |
numeric; a candidate signal ( |
data |
numeric vector; the field of data being tested. |
thresh |
numeric; noise threshold. For |
noiseFilt |
integer, either |
inFolder |
File and graphics parameters for desired spectra as listed in
|
w1 |
numeric (vector); w1 chemical shifts to be matched. |
w2 |
numeric (vector); w2 chemical shifts to be matched. |
w1.pad |
integer; number of adjacent points to return in addition to the matched shifts in the indirect dimension. |
w2.pad |
integer; number of adjacent points to return in addition to the matched shifts in the direct dimension. |
invert |
logical; if |
return.inc |
logical; if |
return.seq |
logical; if |
overRange |
logical; |
conDisp |
logical vector; |
massCenter |
logical; if |
col |
character string; color for peak markers, see |
cex |
numeric; symbol expansion, see |
pch |
numeric or character; symbol used for peak markers, see |
pos |
numeric; specifies position for peak label text, see
|
offset |
numeric; peak label offset, see |
... |
Additional graphics ( |
fileName |
character string or vector; spectrum name(s) as they appear in fileFolder. |
inFile |
list; file parameters and data for file being analyzed, the
output from the main plot window for the |
w1Range |
numeric; w1 chemical shift range ( |
w2Range |
numeric; w2 chemical shift range ( |
append |
logical; if |
internal |
logical; if |
w2Gran |
integer; granularity of search space used for finding local maxima, smaller values are more exhaustive, bigger values suppress noise. |
fancy |
logical; if |
gran |
integer; granularity of contour fitting. |
maxOnly |
logical; if |
c.vol |
logical; if |
baselineCorr |
logical; performs local baseline correction for 1D
spectra if |
redraw |
logical; if |
noiseCheck |
logical; if |
shiftList |
data.frame; chemical shift table containing an w1 and an w2 column. A column named "Code" or "Assignment" will be used for the ROI names if present. |
w1Delta |
numeric; width of the desired ROI in the w1 dimension. |
w2Delta |
numeric; width of the ROI in the w2 dimension. |
appendPeak
Combines two peak lists. The only requirement is that each peak list must contain "w1", "w2", and "Height" columns.
isNoise
A simple filter for detecting noise signals in 1D data. This function is an obvious area for future improvement, as the filter currently excludes broad signals.
localMax
Finds points in a matrix that are larger than all surrounding points, useful for peak picking algorithms.
matchShift
Looks in the provided spectrum for the closest matches (actual chemical shifts) to the chemical shifts provided. If more than one shift is provided, the function returns the shifts matched over the range of given shifts.
maxShift
Finds the chemical shifts at the maximum, absolute maximum, or minimum intensity for the data provided.
peakPick
Wrapper function for implementing 1D and 2D peak picking in rNMR.
pdisp
Displays the peak list for the current spectrum. Note that this function does not turn the peak display on, so peaks will only be displayed until the next plot refresh.
peakPick1D
1D peak picking algorithm utilizing local maxima (hill climbing method).
peakPick2D
2D peak picking algorithm utilizing local maxima (hill climbing method).
peakVolume
Estimates volumes of 2D peaks using the sum of the visible data or stacked ellipsoids.
regionMax
Finds the chemical shifts at the absolute maximum intensity within a region defined by the user interactively.
shiftToROI
Converts a peak list to an roiTable
.
See roi
for more information on ROIs.
|
returns the newly appended peak list. |
|
returns |
|
returns a vector of points defining the local maxima. |
|
returns the range of chemical shifts, or indices, for the closest matching w1 and w2 shifts found in a spectrum. |
|
returns the chemical shifts for the max/min intensity. |
|
returns a new peak list for the w1/w2 ranges provided. |
|
returns a new peak list for the w2 range provided. |
|
returns a new peak list for the w1/w2 ranges provided. |
|
returns volume for 2D peaks and area of 1D peaks. |
|
returns the chemical shifts for the absolute maximum intensity within the designated region. |
|
returns an |
Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu
toolkit
for other rNMR utility functions.