Methods writeMgfData
write individual "Spectrum"
instances of whole "MSnExp"
experiments to a file in Mascot Generic Format (mgf) (see http://www.matrixscience.com/help/data_file_help.html for more details). Function readMgfData
read spectra from and mgf file and creates an "MSnExp"
object.
A valid connection
or a character
string with the name of the file to save the object. In case of the latter, a file
connection is created. If not specified, 'spectrum.mgf' or 'experiment.mgf' are used depending on the class of object
. Note that existing files are overwritted.
Optional character vector with the value for the 'COM' field.
Optional character vector with the value for the spectrum 'TITLE' field. Not applicable for experiments.
signature(object = "MSnExp")
Writes the full exeriment to an mgf file.
signature(object = "Spectrum")
Writes an individual spectrum to an mgf file.
readMgfData
function to read data from and mgf file.
Note that when reading an mgf file, the original order of the spectra is lost. Thus, if the data was originally written to mgf from an MSnExp
object using writeMgfData
, although the feature names will be identical, the spectra are not as a result of the reordering. See example below.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4