Post

SpecDataPointEx

An extended mass spectrum data point, with per-peak attributes from a Thermo centroid stream.


Remarks

An extended mass spectrum data point: m/z and intensity plus the per-peak attributes a Thermo centroid stream provides. This is the point type within SpectrumEx. Only the Thermo RAW reader fills the extra fields; the mzML, mzXML and MGF readers set m/z and intensity and leave the rest at zero.


Constructors


Properties

IdentifierTypeDescription
MzdoubleThe mass to charge ratio (m/z) value for this data point.
IntensitydoubleThe intensity value for this data point.
NoisedoubleThe noise level the instrument reported at this peak.
BaselinedoubleThe baseline level the instrument reported at this peak.
ChargeintThe charge state the instrument assigned to this peak, or zero if none was assigned.
ResolutiondoubleThe mass resolution the instrument measured at this peak.

Methods

MethodReturnsDescription
CompareTo(SpecDataPointEx x)intOrders data points by m/z alone. Two points at the same m/z compare as equal.
Read(BinaryReader reader)voidReads an extended mass spectrum data point.
Write(BinaryWriter writer)voidWrites an extended mass spectrum data point.

Example

1
2
3
4
5
6
7
8
9
10
11
12
using Nova.Data;
using Nova.Io.Read;

FileReader reader = new FileReader("DDA.raw", MSFilter.MS2);
SpectrumEx spectrum = reader.ReadSpectrumEx("", 1000);

for (int i = 0; i < spectrum.Count; i++)
{
  SpecDataPointEx peak = spectrum.DataPoints[i];
  Console.WriteLine(peak.Mz + "\t" + peak.Intensity + "\tz=" + peak.Charge
    + "\tS/N=" + peak.Intensity / peak.Noise);
}
This post is licensed under CC BY 4.0 by the author.

Trending Tags