target_decoy_qvalues
False discovery rate and q-values for peptide-spectrum matches by target-decoy competition (validated against pyteomics): give each match's score and whether it hit a decoy; returns every match's q-value, the whole set's FDR, and how many targets pass a q-value threshold. Supports the +1 and finite-sample corrections of Levitsky et al. 2017.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | decoy-to-target database size ratio. | |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| scores | Yes | one score per match. | |
| formula | No | 1: decoys / targets. 2: (decoys + estimated false targets) / all matches. | |
| isDecoy | Yes | one flag per match: true when it is a decoy hit. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| threshold | No | q-value cut-off for the accepted count. | |
| correction | No | 0 none; 1 the +1 correction; 2 finite-sample expectation; a value in (0, 1) is a confidence level. | |
| higherIsBetter | No | true for scores like HyperScore; false for e-values and PEPs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | q-value per match, in input order | |
| fdr | Yes | FDR of the whole set | |
| accepted | Yes | target matches at or under the q-value threshold |