forked from PNNL-Comp-Mass-Spec/MASIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clsFragScanInfo.cs
60 lines (53 loc) · 1.83 KB
/
clsFragScanInfo.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
namespace MASIC
{
/// <summary>
/// Information about a single fragmentation scan (spectrum)
/// </summary>
public class clsFragScanInfo
{
/// <summary>
/// Pointer to an entry in the ParentIons() array; -1 if undefined
/// </summary>
public int ParentIonInfoIndex { get; set; }
/// <summary>
/// Parent ion m/z value
/// </summary>
public double ParentIonMz { get; }
/// <summary>
/// The nth fragmentation scan after an MS1 scan
/// Computed as EventNumber - 1 since the first MS2 scan after a MS1 scan typically has EventNumber = 2
/// </summary>
public int FragScanNumber { get; set; }
/// <summary>
/// 2 for MS/MS, 3 for MS/MS/MS
/// </summary>
public int MSLevel { get; set; }
/// <summary>
/// Collision mode
/// </summary>
public string CollisionMode { get; set; }
/// <summary>
/// Interference score: fraction of observed peaks that are from the precursor
/// Larger is better, with a max of 1 and minimum of 0
/// 1 means all peaks are from the precursor
/// </summary>
public double InterferenceScore { get; set; }
/// <summary>
/// Constructor
/// </summary>
public clsFragScanInfo(double parentIonMzValue)
{
// -1 means undefined; only used for fragmentation scans
ParentIonInfoIndex = -1;
ParentIonMz = parentIonMzValue;
CollisionMode = string.Empty;
}
/// <summary>
/// Show the parent ion index
/// </summary>
public override string ToString()
{
return "Parent Ion " + ParentIonInfoIndex;
}
}
}