@@ -11,12 +11,12 @@ public class CalibrationResults : MyResults
11
11
12
12
#region Private Fields
13
13
14
- private List < int > calibrationRoundList ;
15
14
private List < int > numMs1MassChargeCombinationsConsideredList ;
16
15
private List < int > numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList ;
17
16
private List < int > numMs2MassChargeCombinationsConsideredList ;
18
17
private List < int > numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList ;
19
18
private List < int > countList ;
19
+ private List < SeparateCalibrationFunction > calibrationFunctions ;
20
20
21
21
#endregion Private Fields
22
22
@@ -25,7 +25,7 @@ public class CalibrationResults : MyResults
25
25
public CalibrationResults ( IMsDataFile < IMzSpectrum < MzPeak > > myMSDataFile , CalibrationEngine s ) : base ( s )
26
26
{
27
27
this . MyMSDataFile = myMSDataFile ;
28
- calibrationRoundList = new List < int > ( ) ;
28
+ calibrationFunctions = new List < SeparateCalibrationFunction > ( ) ;
29
29
numMs1MassChargeCombinationsConsideredList = new List < int > ( ) ;
30
30
numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList = new List < int > ( ) ;
31
31
numMs2MassChargeCombinationsConsideredList = new List < int > ( ) ;
@@ -48,15 +48,20 @@ protected override string StringForOutput
48
48
get
49
49
{
50
50
var sb = new StringBuilder ( ) ;
51
- for ( int i = 0 ; i < calibrationRoundList . Count ; i ++ )
51
+ for ( int i = 0 ; i < countList . Count ; i ++ )
52
52
{
53
- sb . AppendLine ( "\t \t Round " + calibrationRoundList [ i ] ) ;
53
+ sb . AppendLine ( "\t \t Round " + ( i + 1 ) ) ;
54
54
sb . AppendLine ( "\t \t \t Training points: " + countList [ i ] ) ;
55
+ sb . AppendLine ( "\t \t \t Ms1MassChargeSeen: " + numMs1MassChargeCombinationsConsideredList [ i ] ) ;
56
+ sb . AppendLine ( "\t \t \t Ms1MassChargeSeenAndIgnoredBecause too many: " + numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList [ i ] ) ;
55
57
sb . AppendLine ( "\t \t \t Ms2MassChargeSeen: " + numMs2MassChargeCombinationsConsideredList [ i ] ) ;
56
58
sb . AppendLine ( "\t \t \t Ms2MassChargeSeenAndIgnoredBecause too many: " + numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList [ i ] ) ;
57
59
58
- sb . AppendLine ( "\t \t \t Ms1MassChargeSeen: " + numMs1MassChargeCombinationsConsideredList [ i ] ) ;
59
- sb . AppendLine ( "\t \t \t Ms1MassChargeSeenAndIgnoredBecause too many: " + numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList [ i ] ) ;
60
+ if ( i < calibrationFunctions . Count )
61
+ {
62
+ sb . AppendLine ( "\t \t \t Ms1Calibration function: " + calibrationFunctions [ i ] . CalibrationFunction1 . ToString ( ) ) ;
63
+ sb . AppendLine ( "\t \t \t Ms2Calibration function: " + calibrationFunctions [ i ] . CalibrationFunction2 . ToString ( ) ) ;
64
+ }
60
65
}
61
66
return sb . ToString ( ) ;
62
67
}
@@ -66,16 +71,20 @@ protected override string StringForOutput
66
71
67
72
#region Internal Methods
68
73
69
- internal void Add ( int calibrationRound , int numMs1MassChargeCombinationsConsidered , int numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks , int count , int numMs2MassChargeCombinationsConsidered , int numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks )
74
+ internal void Add ( int numMs1MassChargeCombinationsConsidered , int numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks , int count , int numMs2MassChargeCombinationsConsidered , int numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks )
70
75
{
71
- calibrationRoundList . Add ( calibrationRound ) ;
72
76
numMs1MassChargeCombinationsConsideredList . Add ( numMs1MassChargeCombinationsConsidered ) ;
73
77
numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList . Add ( numMs1MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks ) ;
74
78
numMs2MassChargeCombinationsConsideredList . Add ( numMs2MassChargeCombinationsConsidered ) ;
75
79
numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaksList . Add ( numMs2MassChargeCombinationsThatAreIgnoredBecauseOfTooManyPeaks ) ;
76
80
countList . Add ( count ) ;
77
81
}
78
82
83
+ internal void Add ( CalibrationFunction combinedCalibration )
84
+ {
85
+ calibrationFunctions . Add ( ( SeparateCalibrationFunction ) combinedCalibration ) ;
86
+ }
87
+
79
88
#endregion Internal Methods
80
89
81
90
}
0 commit comments