OpenMS/OpenMS — pull request #854 by PetraGutenbrunner (2014-05-29 09:38:06+00:00)
Title: [FIX] ConsensusID doesn't sort peptide hits before processing (idXML)

TOPP ConsensusID FileType idXML:
- after reading a peptide identification, sort their peptide hits with assignRanks()
- set the score type and the higherScoreBetter flag in the final peptide identifications before apply consensus

ConsensusID:
- ranked:
- read the score_type information to write it into the output file
- set higherScoreBetter = true, to recognize it easier that it should be true
- setScoreType with Consensus_ranked instead of Consensus_average

- PEPMatrix_, PEPIons_: raise error if higher_better == true instead of false

Check if score type and higherScoreBetter are equal in all peptide identifications (average_, PEPMatrix_, PEPIons_): move the check to the peptide identifications loop instead of the peptide hits loop, because only peptide information is needed for the check.

Changed Test:
- ConsensusID_1: instead of average is ranked
- ConsensusID_4 (algorithm "PEPMatrix_"): test if the peptide hits are sorted