writeUcsf {rNMR} | R Documentation |
Write a spectrum out to file in UCSF (Sparky) format.
writeUcsf(outPath, np, nuc, sf, sw, center, upShift, downShift, noiseEst, data, inFolder, cor = FALSE, writeShifts = FALSE, writeNoise = FALSE)
outPath |
character string; full file path for the output spectrum. |
np |
numeric; the number of points in each dimension. For 2D spectra,
the format should be |
nuc |
character string; the nucleus names for each dimension. |
sf |
numeric; the spectrometer frequency (MHz) for each dimension. |
sw |
numeric; the sweep width (Hz) in each dimension (only required if
|
center |
numeric; the center (PPM) of the spectrum in each dimension
(only required if |
upShift |
numeric; the upfield chemical shifts (PPM) for the spectrum in
each dimension (only required if |
downShift |
numeric; the downfield chemical shift (PPM) for the spectrum
in each dimension (only required if |
noiseEst |
numeric; the noise estimate for the spectrum. |
data |
numeric vector or matrix; the data for the spectrum as it would be
returned by |
inFolder |
list; data and file parameters for input spectrum. This
should match the output format of |
cor |
logical; if |
writeShifts |
logical; if |
writeNoise |
logical; if |
The output path for the newly created UCSF file.
Ian A. Lewis ialewis@nmrfam.wisc.edu, Seth C. Schommer schommer@nmrfam.wisc.edu
Sparky user manual (http://www.cgl.ucsf.edu/home/sparky/manual/files.html#UCSFFormat)
toolkit
for other rNMR utility functions.