Documentation ¶
Index ¶
- Variables
- type MzXML
- func (f *MzXML) Centroid(scanIndex int64) (bool, error)
- func (f *MzXML) MSLevel(scanIndex int64) (int, error)
- func (f *MzXML) NumSpecs() int64
- func (f *MzXML) Read(reader io.Reader) error
- func (f *MzXML) ReadScan(scanIndex int64) ([]Peak, error)
- func (f *MzXML) RetentionTime(scanIndex int64) (float64, error)
- func (f *MzXML) ScanID(scanIndex int64) (int64, error)
- func (f *MzXML) ScanIndex(scanID int64) (int64, error)
- func (mzXML *MzXML) Write(w io.Writer) error
- type Peak
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MzXML ¶
type MzXML struct {
// contains filtered or unexported fields
}
func (*MzXML) Centroid ¶
Centroid returns true is the spectrum contains centroid peaks In mzXML, centroided applied to the whole file, not individual spectra. For compatibility with mzML, we keep the same interface
func (*MzXML) MSLevel ¶
MSLevel returns the MS Level of a spectrum If no MS level is present, return 0
func (*MzXML) ReadScan ¶
ReadScan reads a single scan n is the sequence number of the scan in the mzXML file, This is not the same as the scan number that is specified in the mzMXL file! To read a scan using the mzXML number, use ReadScan(f, ScanIndex(f, scanNum))
func (*MzXML) RetentionTime ¶
RetentionTime returns the retention time of a spectrum If no retention time is present, return -1
func (*MzXML) ScanID ¶
ScanID converts a scan index (used to access the scan data) into a scan id (used in the mzxml file)