You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b04df33
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
62
63
63
### Changed
64
64
65
+
- A score that a typed q-value column (`feature.precursor_qvalue`, `peptide_qvalue`, `global_qvalue`, `psm.qvalue`) holds under the same name and value is no longer repeated in `additional_scores`. DIA-NN `Q.Value` is now only in `feature.precursor_qvalue`; readers that looked it up in the list must read the column.
65
66
-**The PSM identity composite is `[run_file_name, scan, peptidoform, charge]`**, the order agreed in #229. Every derived `psm_id` changes and now equals the id OpenMS writes for the same row.
66
67
-`qpxc transform normalize-accessions` also normalizes `psm.protein_accessions` and the pepmap, which it left behind so that PSM-to-pg matching fell from 148/148 to 27/148, and marks a pg file `identity_source=provided`, since its `pg_id` values stay and no longer re-derive.
67
68
- DIA-NN feature `additional_intensities`: `maxlfq` is now `pg_maxlfq`, a protein-level value, and `precursor_normalised` is `normalize_intensity`.
Copy file name to clipboardExpand all lines: docs/spec/converter-coverage.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ does not imply that the quantity could never be derived.
56
56
|`parent_ion_fraction` / `quant_scan` / `quant_ms_level`| Not provided. |`quant_precursor_purity`, else `precursor_purity`; `scan_id`; and 2 or 3 from whether `id_scan_id` equals `scan_id`, null without `id_scan_id`. |
57
57
|`id_run_file_name`| The normalized report run name. | The resolved run of a direct identification of the exported peptide with a spectrum reference. Null for transferred features without their own identification, unresolved origins or conflicting peptide assignments. |
58
58
|`pg_positions`| Not populated from the report, which has no peptide-to-protein coordinates. Filled from a FASTA with `--fasta` or `qpxc transform protein-properties`: every one-based occurrence in each group member. | Known peptide-evidence `start` / `end` coordinates, converted from zero-based inclusive to one-based inclusive. For a resolved protein group, positions on its members; for a peptide shared across inferred groups (null `pg_accessions`), positions on every evidence protein, since each entry names its own protein. Null when no usable positions remain. A FASTA is not needed for coordinates already recorded in consensusXML. |
59
-
|`peptide_qvalue`| Null: DIA-NN `Q.Value` is precursor-level and is stored as `precursor_qvalue`in `additional_scores`. | Read from an identification score explicitly declared to be a q-value/FDR. Null without a suitable identification in that run; raw search scores are not substituted. |
59
+
|`peptide_qvalue`| Null: DIA-NN `Q.Value` is precursor-level and is written to the `precursor_qvalue`column. | Read from an identification score explicitly declared to be a q-value/FDR. Null without a suitable identification in that run; raw search scores are not substituted. |
60
60
|`intensities` / `additional_intensities`|`Precursor.Quantity`; `PG.MaxLFQ`, `Precursor.Normalised` and `Ms1.Area` as `pg_maxlfq`, `normalize_intensity` and `ms1_area`. DIA-NN writes 0 for a quantity it did not measure: an unquantified precursor or channel keeps its label with a null `intensity`, and a 0 additional intensity is left out. | The consensus feature's per-map sub-feature intensities; a map element with intensity ≤ 0 has no entry. `additional_intensities` holds the ratios of an MS1-labelled multiplet; otherwise it is not populated. |
61
61
62
62
Protein-group ambiguity includes shared peptides spanning multiple inferred
Copy file name to clipboardExpand all lines: docs/spec/feature.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Each entry in `pg_positions` contains:
123
123
`pg_global_qvalue` and `peptide_qvalue` are **optional** — the column may be absent from the file entirely if the search engine does not provide that q-value. When present, individual values may be null.
124
124
125
125
!!! warning "Which q-value to read"
126
-
`peptide_qvalue` is the canonical peptide-level q-value and is the field to read when filtering or reporting peptide-level FDR. DIA-NN does not report a peptide-level q-value: its precursor-level `Q.Value`remains in `additional_scores` under`precursor_qvalue`, and the DIA-NN converter leaves `peptide_qvalue` null.
126
+
`peptide_qvalue` is the canonical peptide-level q-value and is the field to read when filtering or reporting peptide-level FDR. DIA-NN does not report a peptide-level q-value: its precursor-level `Q.Value`is written to`precursor_qvalue`, and the DIA-NN converter leaves `peptide_qvalue` null.
127
127
128
128
Other producer-specific q-values may also appear in `additional_scores`; use the documented score name and level rather than treating every q-value as peptide-level confidence.
129
129
@@ -225,7 +225,7 @@ Several fields in the feature view use structures shared across other QPX views:
Copy file name to clipboardExpand all lines: docs/spec/ontology.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -269,7 +269,7 @@ Sample metadata fields map to biological ontologies. These mappings are critical
269
269
270
270
## Score Fields {#scores}
271
271
272
-
Score names used in `additional_scores` that have PSI-MS ontology mappings. All QPX score names use **snake_case** -- the ontology name column shows the proper CV term.
272
+
Score names used in `additional_scores`or the [typed q-value columns](scores.md#typed-q-value-columns)that have PSI-MS ontology mappings. In specification 1.3, a q-value matching a typed column's name and value is not duplicated in `additional_scores`. All QPX score names use **snake_case** -- the ontology name column shows the proper CV term.
273
273
274
274
| QPX Name (snake_case) | Ontology Name | Ontology Accession | Direction |
Copy file name to clipboardExpand all lines: docs/spec/scores.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Filtering on a nested score reads about 100 times the data of a flat column, and
44
44
|`feature.precursor_qvalue`| Precursor, per run |`precursor_qvalue`, `qvalue`, `q_value`, `psm_level_qvalue`|
45
45
|`feature.global_qvalue`| Precursor, per experiment |`global_qvalue`|
46
46
47
-
A column stays null when the source has no such score, and the score stays in `additional_scores`.
47
+
A column stays null when the source has no such score. In specification 1.3, a score whose `snake_case` name equals a typed column's name and whose value exactly equals that column's filled value is written only in the flat column, not in `additional_scores`. Aliases such as `q_value`, `psm_level_qvalue` and `percolator_q_value` stay in the list because their names record the source; a same-name score with a different value also stays.
48
48
49
49
### Recommended score names
50
50
@@ -53,7 +53,7 @@ The following score names are commonly used across QPX views. All names are `sna
53
53
| Score name | Typical view(s) | Direction | Description |
|`posterior_error_probability`| PSM | lower is better | Posterior error probability — probability that the PSM is incorrect. Ranges 0.0–1.0. This is a **top-level field** in the PSM view, not stored in `additional_scores`|
56
-
|`global_qvalue`| PSM, Feature | lower is better | Global q-value at the experiment level |
56
+
|`global_qvalue`| PSM, Feature | lower is better | Global q-value at the experiment level; on a feature, read the `global_qvalue` column|
57
57
|`pg_global_qvalue`| PSM, Feature | lower is better | Protein group global q-value used to filter at the protein group level |
58
58
|`rank`| PSM | lower is better | Rank of the peptide in the search engine results (1 = best) |
59
59
|`comet_xcorr`| PSM | higher is better | Cross-correlation score from the Comet search engine |
@@ -63,7 +63,7 @@ The following score names are commonly used across QPX views. All names are `sna
63
63
|`msgf_spec_evalue`| PSM | lower is better | Spectral E-value from MS-GF+ |
64
64
|`sage_hyperscore`| PSM | higher is better | Hyperscore from Sage search engine |
65
65
|`parent_ion_fraction`| PSM | higher is better | Fraction of the isolation window's signal from the target precursor, 0-1 (MaxQuant `PIF`, FragPipe `Purity`, CDAP `PrecursorPurity`); on a feature it is the column of that name |
66
-
|`precursor_qvalue`| Feature | lower is better | Run-level precursor q-value (`Q.Value`), as emitted by the DIA-NN converter |
66
+
|`precursor_qvalue`| Feature | lower is better | Run-level precursor q-value (`Q.Value`), written to the `precursor_qvalue` column by the DIA-NN converter; an exact duplicate is not kept in `additional_scores`|
67
67
|`pg_qvalue`| Feature | lower is better | Run-level protein-group q-value, as emitted by the DIA-NN converter |
68
68
|`pg_pep`| PG | lower is better | Protein-group posterior error probability (`PG.PEP`), as emitted by the DIA-NN converter |
69
69
|`diann_lib_qvalue`| Feature | lower is better | Library q-value from DIA-NN |
@@ -78,9 +78,9 @@ The following score names are commonly used across QPX views. All names are `sna
78
78
When adding tool-specific scores, use `snake_case` with the tool name as prefix: `{tool}_{score}`. For example, `comet_xcorr`, `diann_cscore`, `sage_hyperscore`. Register the mapping to the proper ontology term in `ontology.parquet` (see [Ontology Mapping](ontology.md)).
79
79
80
80
!!! warning "Names in this table are the ones producers actually write"
81
-
Earlier revisions listed `diann_qvalue` and `diann_global_qvalue`, which no converter emits — the DIA-NN converter writes `precursor_qvalue`, `global_qvalue` and `pg_qvalue`. The table now records the emitted names so a consumer can match on them.
81
+
Earlier revisions listed `diann_qvalue` and `diann_global_qvalue`, which no converter emits — the DIA-NN converter writes the `precursor_qvalue` and `global_qvalue`columns and keeps `pg_qvalue` in `additional_scores`. The table records the emitted names so a consumer can match on them.
82
82
83
-
`feature.peptide_qvalue` is reserved for peptide-level confidence. DIA-NN `Q.Value` is precursor-level, so it remains in `additional_scores` under `precursor_qvalue` and must not be copied into `feature.peptide_qvalue`.
83
+
`feature.peptide_qvalue` is reserved for peptide-level confidence. DIA-NN `Q.Value` is precursor-level, so it is written to `feature.precursor_qvalue` and must not be copied into `feature.peptide_qvalue`.
Copy file name to clipboardExpand all lines: docs/spec/tool-mappings.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ The Feature view captures quantified peptide features with intensity data. Featu
57
57
|`pg_positions`| --- | --- | --- | --- |
58
58
|`run_file_name`| Raw file | Run | First raw file of the experiment (experiment_annotation.tsv or SDRF) | Reference / Run resolved through SDRF |
59
59
60
-
DIA-NN `Q.Value` is precursor-level and is stored in `additional_scores` as `precursor_qvalue`; it is not mapped to the peptide-level `peptide_qvalue` field.
60
+
DIA-NN `Q.Value` is precursor-level and is written to the `precursor_qvalue` column; it is not mapped to the peptide-level `peptide_qvalue` field.
61
61
62
62
MaxQuant `unique` follows the group the feature takes. With proteinGroups.txt, it is true when the peptide is in a single group (`Protein group IDs` names one id) and that group has one protein; a shared peptide carries its razor group and is false. Without proteinGroups.txt, or for a row whose `Protein group IDs` do not resolve, the group falls back to `Leading proteins`, which lists one leader per group, so the group's size is unknown: `unique` is then true when the peptide maps to a single protein (`Proteins`), or, without that column, when it is in a single group of any size. In ontology.parquet the feature `pg_accessions` and `anchor_protein` name the column they were read from: `Protein IDs` and `Majority protein IDs` (proteinGroups.txt) when `Protein group IDs` resolve, otherwise `Leading proteins` and `Leading razor protein`.
0 commit comments