Repository navigation
[FIX] FileInfo: count consensusXML peptide occurrences per map id - #10612
Conversation
…er position The per-peptide occurrence vector was sized by the number of column headers but indexed by FeatureHandle::getMapIndex(), i.e. the map id, so map ids outside 0..n-1 (e.g. 1 and 2) wrote out of bounds and miscounted. TOPP_FileInfo_21 (map ids 1 and 2) reports "observed in 1 maps" without the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Conflicts in CHANGELOG and src/tests/topp/CMakeLists.txt. The FileInfo entry moves out of the ProteomicsLFQ section into the FileInfo section develop now has. TOPP_FileInfo_21 is registered next to develop's TOPP_FileInfo_23. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CEdeY5CKo9AtvssPRFr7MW
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to
|
…#10301, #10611, #10606, #10608, #10609, #10617, #10610, #10578 ProSE Percolator rescoring, #10628) Only CHANGELOG conflicted; both entries are kept. Develop's changes to FalseDiscoveryRate, IDScoreGetterSetter, ConsensusMapMergerAlgorithm, FileInfo and ProSE work on the established classes, which this branch keeps as they are. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
#10612, #10301, #10578 ProSE, #10628) Develop's changes to the map-level identification code are ported to identification data: - FalseDiscoveryRate::applyBasicPeptideLevel(ConsensusMap&) (#10617): in the scope, an identification keeps its best match and the matches tied with it whose peptide has an FDR; the others are removed (they would keep their search score under the FDR score type). Without decoys it keeps only targets, and nothing if its best match is not a target, as before. The best match is the first of the best score, as develop's sort makes it; q-values on a map were already lower-is-better (the FDR score definition). Develop's two test sections are rewritten for identification data. - ConsensusMapMergerAlgorithm::mergeAllIDRuns() (#10618) throws Exception::MissingInformation for a map without runs. Identification data has no identification without its run, so the test uses a map without identifications. - FileInfo (#10612) counts the occurrences per map id on the linked identifications (auto-merged). - IsobaricWorkflow_hyperscore_peptide_out.consensusXML (#10617): one identification whose best match is a decoy loses its matches, as on develop; develop leaves it the score type of the search (hyperscore, higher is better), identification data the score type of its run (peptide q-value). Features, matches and values are the same as develop's. - FeatureFinderIdentificationAlgorithm_test (#10628): the peptide identifications of the new section have a score type and scores, which the conversion to identification data needs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Supersedes #10496 (by @okohlbacher): that branch lives on a fork this session cannot push to, and it conflicted with develop again. This PR carries its two commits unchanged plus a merge of current develop.
FileInfo sized the per-peptide occurrence vector by the number of maps but indexed it with the map id, so map ids not 0..n-1 (e.g. 1, 2 as in
ConsensusID_3_input.consensusXML) wrote out of bounds and gave wrong "observed in N maps" counts; without a<mapList>it crashed.Fix: key the occurrences by map id (
map<UInt64, int>).Test:
TOPP_FileInfo_21(map ids 1 and 2, two peptides seen in both maps) expects "observed in 2 maps: 2 (features: 4)"; without the fix FileInfo reports "1 maps: 2 (features: 2)".Merge resolution:
FileInfo.cpp is unchanged relative to the version of #10496 that passed CI.
Generated by Claude Code
Summary by CodeRabbit