writeMSL {SIMAT} | R Documentation

## Write targets information into a file with mass spectral library (MSL) format.

### Description

This funtion gets the targets information and writes the data in the NIST mass spectral library (MSL) format.

### Usage

    writeMSL(Targets = list(), target.file.name = character())

### Arguments

`Targets` | a list including the Targets information, e.g. acquired by `getTarget` function.
`target.file.name` | a character object, i.e. string, of the name of the output file.

### Details

NIST mass spectral library, i.e. MSL, data files include compound names and their spectral information. The spectral information consist of number of fragments for each compound, together with the mass and relative and usually normalized intensity of each fragment. Also, the retention time and retention index of the compounds are provided which helps improve the identification by avoding false positives. This functions is used to write the targets information into a file with MSL format.

### Value

A logical value

### Author(s)

Mo R. Nezami Ranjbar

### References

http://omics.georgetown.edu/SIMAT.html

### See Also

`readMSL`, `getTarget`

### Examples

        # load targets information
        data(Targets)

        # write the targets into a file with MSL format
        writeMSL(Targets = Targets, target.file.name = "myTargets.MSL")

[Package SIMAT version 1.14.1 Index]