Repository navigation
Remove stale scratchpads, deduplicate internal helpers, and fix allele helper layering - #620
Merged
Merged
Conversation
- Remove completed/unreferenced agent scratchpads under notes/, plans/, and tasks/. - Deduplicate _version_from_rows between topiary/io.py and topiary/result.py. - Consolidate optional allele canonicalization (_allele in candidates.py and self_evidence.py) via topiary.alleles._canonical_allele_or_missing. - Deduplicate read_fasta and read_peptide_fasta in topiary/inputs.py via _read_fasta_mapping. - Move derive_mhc_class (and _class_of_allele) from topiary/io_pvacseq.py to topiary/alleles.py, re-exporting in io_pvacseq.py for backwards compatibility and updating imports in candidates.py, policy_evaluation.py, and __init__.py. - Route topiary/cli/cached_predictor.py allele normalization through topiary.alleles._normalize_allele_name_or_raw while preserving exact raw/unrecognized allele behavior. - Replace the json.dumps/json.loads/json.dumps round-trip in topiary/io_protein_fragment.py with recursive key stringification preserving exact JSON key-encoding semantics. - Keep weirdo in requirements.txt because TopiaryPredictor(models='weirdo') loads it at runtime via mhctools and commit 381dee4 + tests/check_distributions.py + CI intentionally require it as a runtime dependency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notes/binding-aware-self-evidence.md,plans/mhctools-631-identity.md,tasks/{lessons,preserve-model-inputs,todo}.md)._version_from_rows(result.py->io.py),_allele(candidates.py&self_evidence.py->alleles._canonical_allele_or_missing), andread_fasta/read_peptide_fasta(inputs.py).derive_mhc_classout ofio_pvacseq.pyintoalleles.py(re-exporting inio_pvacseq.pyfor backwards compatibility) and update imports incandidates.py,policy_evaluation.py, and__init__.py.cli/cached_predictor.pyallele normalization throughtopiary.alleles._normalize_allele_name_or_rawwith exact parity for raw/unrecognized alleles.json.dumps(json.loads(json.dumps(value)), sort_keys=True)inio_protein_fragment.pywith explicit key stringification (_stringify_json_keys) and add regression tests.Verification
./lint.sh(ruff check+mypy): All checks passed (Success: no issues found in 6 source files).