bayesian_protein_inference
Bayesian protein inference, Epifany (validated against OpenMS BayesianProteinInferenceAlgorithm on PXD000001): the posterior probability that each protein, each indistinguishable group and each peptide-spectrum match is present, from the matches' posterior error probabilities under a network in which present proteins emit their peptides.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"psms": "<psms>",
"database": "<database>"
},
"name": "bayesian_protein_inference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beta | No | spurious emission probability β: the chance a peptide is reported with none of its proteins present. | |
| psms | Yes | the matches as a table with a header row naming spectrum, peptide, charge and a posterior error probability column (tab- or comma-separated); peptides are ProForma. | |
| alpha | No | peptide emission probability α: the chance a present protein yields a given one of its peptides. | |
| gamma | No | protein prior γ: the chance a protein is present before any evidence. | |
| _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. | |
| _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. | |
| database | Yes | the protein database searched, as FASTA; the accession is the header up to the first space. | |
| psmCutoff | No | drop matches whose probability (1 − PEP) is below this. | |
| gridSearch | No | choose α, β and γ instead: run OpenMS's grid (α 0.1–0.8 × β 0.01–0.4 × γ 0.2–0.7) and keep the combination whose protein posteriors best agree with target-decoy FDR and separate targets from decoys; needs decoy proteins. | |
| decoyPrefix | No | accession prefix marking a decoy protein, for the grid search. | DECOY_ |
| scoreColumn | No | the column holding each match's posterior error probability (PEP, 0 to 1). | pep |
| ilEquivalent | No | treat isoleucine and leucine (and a database J) as the same residue when mapping peptides. | |
| peptidePrior | No | peptide prior π, dividing each match's probability back out of its evidence. | |
| appendReversedDecoys | No | add the reversed sequence of every database protein as a decoy (accession decoyPrefix + accession), for a database searched with reversed decoys that holds only targets. | |
| maxAmbiguousResidues | No | how many ambiguous database residues (B, J, Z, X) one peptide match may resolve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | with the grid search: every α, β, γ tried, with its FDR-curve difference, ROC-100 and objective (skipped when improbable) | |
| count | Yes | proteins reported | |
| groups | Yes | indistinguishable protein groups, most probable first: probability that at least one member is present, and accessions | |
| proteins | Yes | one row per protein: accession, posterior probability, matches counted, sequence coverage (%) | |
| psmPosteriors | Yes | the matches inference used (the best per peptide): spectrum, peptide, prior (1 − PEP) and posterior |