Skip to content

Commit

Permalink
Control for when SanXot is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvador Martinez-Bartolome authored and Salvador Martinez-Bartolome committed Dec 8, 2016
1 parent d4d3535 commit 0989256
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2042,8 +2042,10 @@ private void classiffyAndPrintStatistics(Set<ProteinCluster> clusterSet,
final double stdev = Maths.stddev(peptideNodeConsensusRatios.toArray(new Double[0]));
stats.append("Average of peptide node ratios: " + mean + "\n");
stats.append("Standard deviation of peptide node ratios: " + stdev + "\n");
final double meanVariance = Maths.mean(peptideNodesVariances.toArray(new Double[0]));
stats.append("Average of peptide node variance: " + meanVariance + "\n");
if (!peptideNodesVariances.isEmpty()) {
final double meanVariance = Maths.mean(peptideNodesVariances.toArray(new Double[0]));
stats.append("Average of peptide node variance: " + meanVariance + "\n");
}
// print to console
log.info(stats.toString());
// print to file
Expand Down

0 comments on commit 0989256

Please sign in to comment.