Open lgatto opened 6 years ago
But more generally, it also assumes that the cvParams in each
SpectrumIdentificationItem
are in the same order, which I am not sure is guaranteed.
Indeed, I got confirmation that there is no guarantee that the order is maintained.
This issue is related to #136, which happens due to a but in the C++
RcppIndent::getScores()
function, that counts the number of cvParams on the firstSpectrumIdentificationItem
, but then crashes if a later one has more. For exampleand then there are additional cvParams before the closing
SpectrumIdentificationResult
, which get also counted.But more generally, it also assumes that the cvParams in each
SpectrumIdentificationItem
are in the same order, which I am not sure is guaranteed.Ideally,
RcppIndent::getScores()
should not consider the additional ones outside ofSpectrumIdentificationItem
and possibly check the order/names of the cvParams.