Repository navigation
Conversation
A proposal page, not part of the specification: psm columns for cross-link spectrum matches, the crosslink (residue pair) and interaction (protein pair) views, the crosslink_fdr and crosslink_fdr_shares tables and run.crosslinkers, with the mapping to mzIdentML 1.3. No schema, writer or validator change. Refs #394.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Up to standards ✅🟢 Issues
|
- Residue-pair and PPI values sit on PDHs of ordinary protein groups; the converter keeps pg and parses the encoded values - MS:1003336 is the combined PEP, on the psm row - One decoy rule for peptides, CSMs and pairs - fdr_estimate_id on psm, the min-CSM variant as its own population, fdr_group, structured estimator fields - Link classes: proteoform.md families, precedence, the MS:1003343 split, self pairs in interaction; xl_partner_ambiguous - Smaller fixes: site_kind as new, identity_source per file, positions stay in cross_links, nullable SDRF-derived linker fields, child spectra by scan, the crosslink_id key - Follow-up views: quantified cross-links and cross-links on structures
timosachsenberg
left a comment
There was a problem hiding this comment.
Approving as a proposal page: it is clearly marked as not part of the specification and changes no schema. Before any of this reaches a schema I would align the names with the ones the field already uses, since renaming is free now and expensive later. The six main points are inline; the one I would insist on is a single set of level names (csm, peptide_pair, residue_pair, protein_pair).
Smaller (line numbers are for docs/spec/crosslink.md)
- L52: the CSM q-value has
MS:1003337(crosslinked PSM-level global FDR), and the peptide-pair level hasMS:1003339(peptide-pair passes threshold). Neither is in the mapping table. - L63:
form/form_scores: "stub" is the CV word (MS:1003346,MS:1003390). - L111:
link_end,ends_a/b: the literature says "site" ("residue/site pairs"), andn_candidate_sitesalready does. - The reagent has three names:
linker_*(existing),crosslinkers,reagent_end; andintact_masssits next to the existinglinker_mass. - Spelling: the prose says "cross-link", the identifiers
crosslink; psi-ms.obo's primary names are "crosslink…". - An open question to add:
xl_typeinter/intra. Most XL-MS software reads these at protein level (Mascot: intralinks are within one protein, looplinks within one peptide), which is whyxl_protein_scopehad to be a separate column.crosslink/looplink/dead-endwould remove the clash at the next schema version.
Already the established terms, no change needed: CSM, peptide pair, alpha/beta, target_target / target_decoy / decoy_decoy, td_minus_dd, looplink, dead-end, noncovalent, parent/child spectra.
References
- psi-ms.obo 4.2.17
- Leitner et al., Structure 2020: https://doi.org/10.1016/j.str.2020.09.011 (preprint https://arxiv.org/abs/2007.00383)
- Lenz et al., Nat Commun 2021: https://doi.org/10.1038/s41467-021-23666-z
- Fischer & Rappsilber, Anal Chem 2017: https://pmc.ncbi.nlm.nih.gov/articles/PMC5423704
- Lin, Plubell, Keich & Noble, J Proteome Res 2021: https://pmc.ncbi.nlm.nih.gov/articles/PMC8489664
- xiFDR, "FDR groups": https://xifdr-py.readthedocs.io/en/stable/how_it_works.html
- Shortreed & Smith, proteoform families: https://pmc.ncbi.nlm.nih.gov/articles/PMC9676067/
Generated by Claude Code
| | `score` | float64, null | Score of the child identification | | ||
| | `rank` | int16, null | Rank of the child identification | | ||
|
|
||
| ## crosslink: residue pairs |
There was a problem hiding this comment.
One set of level names (the one I would insist on). The literature and the CV name the levels CSM, peptide pair, residue pair, protein pair (Fischer & Rappsilber 2017; Leitner et al. 2020; MS:1002677 residue-pair-level, MS:1002676 protein-pair-level, MS:1003344 residue-pair ref). The page already uses residue_pair in crosslink_fdr.level and in residue_pair_count, but calls this view crosslink and the fourth level interaction (L115).
Suggest views residue_pair and protein_pair, with residue_pair_id, residue_pair_qvalue, protein_pair_qvalue, and level = csm | peptide_pair | residue_pair | protein_pair. "Crosslink" already names the CSM level (cross_links[], crosslinked_peptidoform), and interaction holds self pairs, which are only candidate homo-oligomers.
Generated by Claude Code
| 1. `same_sequence`: both peptides have one bare sequence (I = L). A self-link of one sequence cannot be told from a homo-oligomer link. | ||
| 2. `same_family`: both peptides map to one protein family, family as in [proteoforms](proteoform.md) (the canonical entry of its isoforms, variants and chains). Homologs are different families. | ||
| 3. `different_family`: otherwise. | ||
|
|
||
| mzIdentML's `MS:1003343` (FDR applied separately to self and heteromeric crosslinks) splits `same_sequence` and `same_family` (self) from `different_family` (heteromeric). |
There was a problem hiding this comment.
The established split is self / heteromeric (MS:1003343, Leitner 2020, Lenz 2021). Three things:
same_sequence: "both peptides have one bare sequence (I = L)" reads as two identical peptides. If that is meant, the next sentence is the wrong way round: the same or an overlapping peptide twice cannot come from one chain (unless the sequence repeats), so it is the one case that indicates a homo-oligomer (xiNET's "homomultimeric" link). If "both peptides come from one protein sequence" is meant, that is exactly the CV's self crosslink, and I would call itself.same_familyis mapped to self, butMS:1003343defines heteromeric as "crosslinks between distinct protein sequences". A link between two isoform entries is heteromeric by that text. Fine as a QPX choice, but the page should say that it deviates.- Bare "family" in a protein context normally means homologs (Pfam, InterPro), the opposite of "Homologs are different families"; the first draft in Proposal: cross-linking results above the PSM level (residue pairs, protein pairs, FDR per class) #394 had it with homologs included. The established name for one gene's canonical entry, isoforms, variants and chains is "proteoform family" (Shortreed & Smith). It is inherited from
proteoform.md, but here it becomes enum values.
Generated by Claude Code
| 3. `different_family`: otherwise. | ||
|
|
||
| mzIdentML's `MS:1003343` (FDR applied separately to self and heteromeric crosslinks) splits `same_sequence` and `same_family` (self) from `different_family` (heteromeric). | ||
| - **`xl_partner_ambiguous`** (new, bool): a peptide of the CSM has a near-identical copy (the same sequence up to I/L, or a few substitutions of near-equal mass that fit the same precursor) in a protein the CSM does not list. Its partner may then be a homolog of the true one, an error decoys cannot model. A producer that estimates such CSMs apart says so in `crosslink_fdr`; on a proteome-sized database they are most of the false heteromeric CSMs a rescorer accepts. |
There was a problem hiding this comment.
A peptide with near-equal precursor mass and a similar fragment spectrum is a "neighbor" peptide (Lin, Plubell, Keich & Noble 2021; OpenMS NeighborSeq). I would name the flag after that.
The I/L case looks different in kind: an I/L-identical copy is ordinary protein ambiguity, so should that protein not simply be listed in the peptide's protein_accessions?
Generated by Claude Code
| | Field | Description | Type | | ||
| |-------|-------------|------| | ||
| | `fdr_estimate_id` | Identity of the population | int32 | | ||
| | `fdr_group` | The analysis the population belongs to: the runs and settings searched together (one per producer run, or one per cohort group) | string | |
There was a problem hiding this comment.
In xiFDR, "FDR groups" are the self / between / linear subsets within which FDR is computed separately, which is what this page calls a population row. Here fdr_group means the analysis (runs and settings searched together). Suggest analysis or similar for this column.
Generated by Claude Code
| When one FDR is estimated over several projects, `crosslink_fdr_shares` gives each project's part of the CSMs passing a pooled cut, to show whether pooling moved errors into a weaker project. Its estimate is descriptive, not a q-value, so it has its own formula: `max(TD − DD, 0) / TT` (`TD + DD` for links of one sequence), without pseudo-count or floor. | ||
|
|
||
| | Field | Description | Type | | ||
| |-------|-------------|------| | ||
| | `fdr_estimate_id` | The pooled CSM population | int32 | | ||
| | `project` | Project label, as the producer names its inputs | string | | ||
| | `q_cut` | Pooled CSM q cut | float64 | | ||
| | `n_target_target`, `n_target_decoy`, `n_decoy_decoy` | That project's CSMs at or below the cut | int32 | | ||
| | `share_estimate` | The project's own estimate by the formula above | float64 | |
There was a problem hiding this comment.
The FDR of one subset at a pooled threshold is known as group FDR or separate FDR (Lin et al. 2021), or subgroup FDR (Fu & Qian). "Share" reads as a fraction of the counts, so I would name the table and share_estimate after one of those.
Generated by Claude Code
| | `xl_protein_scope` | `MS:1003343` splits self (`same_sequence`, `same_family`) from heteromeric (`different_family`) | | ||
| | `run.crosslinkers` | `SearchModification` with donor/acceptor terms, XLMOD accession, `MS:1003390` | | ||
|
|
||
| mzIdentML's FDR terms are global; QPX q-values are per population, as `crosslink_fdr` states. mzIdentML's donor/acceptor ordering rule (longer peptide, then mass, then alphabetical) is a fallback for unmarked or symmetric reagents; QPX keeps the alpha/beta order of `peptidoform`, and records the reagent end per peptide. |
There was a problem hiding this comment.
In the CV, "global FDR" is the counterpart of "local FDR" (MS:1002350 vs MS:1002351), not "pooled over classes"; MS:1003343 exists to say the classes were estimated apart.
q-values are a third family (MS:1002354), and there is no residue-pair or protein-pair q-value term, so crosslink_qvalue → MS:1002677 maps a q-value onto a global FDR. Worth stating, and perhaps worth requesting the terms from PSI.
Generated by Claude Code
|
Thanks. I've taken all of these; the page is updated in 59bda95, and I'd rather rename now than after a schema. Point by point:
Smaller points
|
daichengxin
left a comment
There was a problem hiding this comment.
Reviewed the proposal against the code on dev, psi-ms.obo 4.2.17, and the mzIdentML 1.3 crosslinking extension (1.0.0) document. Summary: this is a well-grounded proposal page and it can go in as a proposal; below are the points I independently checked and the two items I would fix before merging.
Verified
- All 24 CV accessions cited match psi-ms.obo 4.2.17 (names and definitions), none obsolete — including
MS:1002511,MS:1003329,MS:1003332,MS:1003336,MS:1003337–MS:1003341,MS:1003343,MS:1003344(whose value is theID.a|bpart of the encoded string),MS:1003346/MS:1003390, andMS:1001194–MS:1001197. - mzIdentML extension claims: two SIIs sharing a local id as the value of
MS:1002511; the PDH-encodedint_ID.a|b:POS:SCORE_OR_VALUE:PASS_THRESHOLDstrings; the donor/acceptor fallback rule (longer peptide, then mass, then alphabetical); the multiple-spectra mechanism (MS:1003332, main spec §7.11). - Converter claims:
crosslinks.py:_is_decoyisany(...)over peptide evidence (crosslinks.py:157-158), so the proposed rule (a peptide is a decoy only when every protein it maps to is a decoy) does change behavior exactly as stated;mzidentml/pg_adapter.py:_float_value(146-150) returns null for the non-numeric encoded values and drops them. - Consistency with the existing spec:
psm.md'sxl_typevocabulary,partner_protein_*, "peptidoform names only the alpha peptide";site.md's position 0 / length + 1 convention;identity.md'sidentity_sourceprovided/mixed;proteoform.md's family definition. - The FDR machinery is sound: the ambiguity set as the counting unit, TD−DD vs TD+DD for one-sequence links, and the explicit statement that QPX deviates from the CV by counting proteoform-family links as self. The note that residue-pair/protein-pair q-values have no CV term and map onto global-FDR terms (with a suggestion to request terms from PSI) is exactly right.
Please address before merging
xl_peptides_overlapis undefined for looplinks. "The two peptides are the same or overlap" would mark everyxl_type=intraCSM as a homo-oligomer candidate, but a looplink is intra-chain by definition and carries no oligomer inference. Suggest: null whenxl_type=intra(the flag is defined forinteronly), or state the looplink rule explicitly.- The "separate FDR, Lin et al. 2021" attribution. The only Lin et al. entry in the references is the subset-neighbor search paper (PMC8489664), where "group FDR, also known as separate FDR" refers to separating relevant/irrelevant peptide subsets within a single search — not the per-project share of a pooled FDR across projects. "Subgroup FDR" (Fu & Qian, MCP 2014) is structurally closer (a subset's FDR under a global threshold) but also within one experiment. The neighbor citation to the same paper is accurate; for
crosslink_group_fdrI would drop the author attributions or cite a source that discusses pooled-experiment FDR directly.
Minor
xl_child_spectrum.scanis a scalar int32 "aspsm.scan", butpsm.scanisarray[int32](psm.md) — reword to avoid the type mismatch.residue_pair_ids/MS:1003344is missing from the "Relation to mzIdentML" table (3337/3339 were added there; add 3344 as well).link_site.site_kindduplicates whatsite.mdalready encodes with position 0 / length + 1 and nullamino_acid. There is a defensible reason (self-describing without a sequence lookup); say so, or drop the field. Alsoamino_acid_a's type reads "string null" (missing comma).- The
residue_pair/protein_pairidentity keys lacklabel, whilesite.md's site_id composite includes it. State whether light/heavy pairs of one residue pair merge or split. xl_protein_scopeis undefined fordead-end(one peptide) andnoncovalentrows — say what they get.- "Looplinks and noncovalent pairs get a null q-value unless a producer records an estimator" sits uneasily next to "andes uses ...
td_plus_ddfor links of one sequence" (a looplink is a one-sequence link). One clarifying sentence would resolve it. - The PR description still says
crosslink/interaction/crosslink_fdr_shares; the page saysresidue_pair/protein_pair/crosslink_group_fdr. Worth syncing the body. - "Running minimum from the lowest score up" assumes lower-better scores (xi:score is higher-better); "from the best rank toward worse ranks" is direction-neutral.
- The
estimatorparenthetical "for classes whose decoys are only TD and DD" is hard to parse — it means the false set is TD + DD rather than TD − DD. - No docs build runs in CI; the escaped
list\<xl_peptide\>renders fine in Python-Markdown, but onemkdocs buildbefore merge would be good insurance.
|
@daichengxin thanks for checking every accession and claim against the OBO, the extension and the converter. All twelve points are taken; the page is updated in b95baf3. I also used this round to make the page smaller and plainer. mzIdentML 1.3 stays the reference for what a crosslinking result contains, but the page no longer mirrors it field by field: it keeps what a reader needs to use and judge a link (who is linked to whom, at which residues, how well supported, at what error). For names, I looked at what XL-MS software writes in its output (xiFDR, Scout, MaxLynx, XlinkX, pLink; FragPipe has no protein-protein crosslinking output) and took the most common plain term, with the CV term in the mapping table. Before merging
Minor
Other simplifications and renames
|
Proposal for #394: how QPX holds crosslinking (XL-MS) results above the PSM level. This PR adds one documentation page,
docs/spec/crosslink.md, and links it from the navigation as "Crosslinks (proposed)". It changes no schema, writer or validator.The page proposes:
psmcolumns for crosslink spectrum matches (CSMs):link_scope:intra_proteinorinter_protein, the split ofMS:1003343;cross_links[].xl_typeis unchanged;possible_homomer(overlapping peptides of one protein) andpartner_neighbor(a peptide has a neighbor in an unlisted protein);xl_peptides(per-peptide proteins, decoy flag, stub, score);supporting_spectra(MS3 or ETD/EThcD spectra of the CSM's peptides);residue_pair_ids.residue_pairview: one row per linked residue pair, or per set of sites the evidence cannot tell apart, with itsqvalue.protein_pairview: one row per protein pair (PPI), self pairs included, with itsqvalue.crosslink_fdr: the rows each q-value was estimated over.crosslink_project_fdr: each project's FDR at the cut of an FDR estimated over several projects.run.linkers: reagents, with stub masses for cleavable linkers and labels for light/heavy pairs.Names follow the plain terms most XL-MS software reports (xiFDR, Scout, MaxLynx, XlinkX, pLink): CSM, residue pair, protein pair, intra-/inter-protein, looplink, monolink,
csm_count,qvalue. Where the CV has a term, the mapping table gives it. The page keeps what a reader needs to use and judge the links; search-engine internals stay in the producer's files.Open questions are at the end of the page and in #394.