forked from PNNL-Comp-Mass-Spec/MASIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clsMzSearchInfo.cs
74 lines (62 loc) · 2.21 KB
/
clsMzSearchInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using System.Collections.Generic;
namespace MASIC
{
/// <summary>
/// Selected ion chromatogram search info
/// </summary>
public class clsMzSearchInfo
{
// Ignore Spelling: Da
/// <summary>
/// m/z value to find
/// </summary>
public double SearchMZ { get; set; }
/// <summary>
/// Starting index in the binned list of m/z values (created by CreateMZLookupList)
/// </summary>
public int MZIndexStart { get; set; }
/// <summary>
/// Ending index in the binned list of m/z values (created by CreateMZLookupList)
/// </summary>
public int MZIndexEnd { get; set; }
/// <summary>
/// Midpoint index in the binned list of m/z values (created by CreateMZLookupList)
/// </summary>
public int MZIndexMidpoint { get; set; }
/// <summary>
/// Search tolerance, in Da or ppm
/// </summary>
public double MZTolerance { get; set; }
/// <summary>
/// When true, the search tolerance is ppm-based
/// </summary>
public bool MZToleranceIsPPM { get; set; }
/// <summary>
/// Maximum intensity of data found by this class
/// </summary>
public double MaximumIntensity { get; set; }
/// <summary>
/// Index of the scan with the maximum intensity
/// </summary>
public int ScanIndexMax { get; set; }
/// <summary>
/// List of baseline noise stat segments
/// </summary>
public List<MASICPeakFinder.clsBaselineNoiseStatsSegment> BaselineNoiseStatSegments { get; set; }
/// <summary>
/// Show the search m/z and maximum intensity
/// </summary>
public override string ToString()
{
return "m/z: " + SearchMZ.ToString("0.0") + ", Intensity: " + MaximumIntensity.ToString("0.0");
}
/// <summary>
/// Reset MaximumIntensity and ScanIndexMax to defaults
/// </summary>
public void ResetMaxIntensity()
{
MaximumIntensity = 0;
ScanIndexMax = 0;
}
}
}