fasta_lake.dianovo#
fasta_lake.dianovo
#
Read complete DIANovo predictions without guessing across unresolved mass gaps.
DIANovo: https://github.com/hearthewind/dianovo (cc413f25140e47a5f6a4234bae15da0ef525ac3a),
denovo_from_feature_detection/rnova/task/sequence_generation_inference_utils.py
and optimal_path_inference_classic.py. These are FastaLake input checks, not
DIANovo inference. Sequence generation writes one probability per residue; the
space-delimited path output prepends a zero marker. See docs/how-to/de-novo-inputs.md.
The matching Rust implementation is rust/common/dianovo.rs.
parse_dianovo_prediction
#
Return a complete uppercase peptide and mean confidence, including zeros.
Accept lowercase residues and whitespace between residues. Reject mass gaps, noncanonical residues, malformed lists, nonfinite/out-of-range probabilities and length mismatches with ValueError. Only a space-delimited vector with exactly one extra leading zero is interpreted as a path-marker vector. All-zero residue vectors are valid here; positive-score selection excludes them.