Exemplo n.º 1
0
 /// <summary>
 /// The add result to scores table.
 /// </summary>
 /// <param name="dataset">
 /// The dataset.
 /// </param>
 /// <param name="chemicalResult">
 /// The chemical result.
 /// </param>
 /// <param name="target">
 /// The target.
 /// </param>
 /// <param name="table">
 /// The table.
 /// </param>
 /// <param name="colDef">
 /// The col def.
 /// </param>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public static int AddResultToScoresTable(string dataset, CrossSectionWorkflowResult chemicalResult, IImsTarget target, NumericTable table, IList<string> colDef)
 {
     TableRow dict = new TableRow(dataset + target);
     dict.Name += "(" + chemicalResult.AnalysisStatus + ")";
     dict.Add(colDef[1], chemicalResult.AverageObservedPeakStatistics.IntensityScore);
     dict.Add(colDef[2], chemicalResult.AverageObservedPeakStatistics.IsotopicScore);
     dict.Add(colDef[3], chemicalResult.AverageObservedPeakStatistics.PeakShapeScore);
     dict.Add(colDef[0], chemicalResult.AverageVoltageGroupStability);
     dict.Add(colDef[4], chemicalResult.AssociationHypothesisInfo.ProbabilityOfHypothesisGivenData);
     table.Add(dict);
     return 1;
 }