The bundled uorf-evidence catalogue duplicates the uORF records already in orf-evidence
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with orfdata/catalog.py to trace _parse_catalog, _load_catalog, and load_uorf_catalog, then inspect orfdata/build.py and pyproject.toml for the default build output and packaged data. Check how tests and downstream users rely on the legacy catalogue before changing its handling. Done means the bundled uORF data is no longer duplicated, the default build produces the full catalogue, and legacy file support or its removal is addressed.
索引モデルが issue の本文から書いたものです。
説明
Problem
orfdata ships two human GRCh38 catalogues, built by the same build.py from the same pinned sources:
data/orf-evidence: all 7,264 ORFs;data/uorf-evidence: 3,771 uORF and uoORF models in the legacyisovar.uorf_evidence.v1schema.
Every record in the second catalogue is also in the first. Drop the four fields that the legacy loader fills in with fixed values, and the 3,771 uORF/uoORF records in orf-evidence/catalog.json.gz are identical to the 3,771 records in uorf-evidence/catalog.json.gz. As a result:
- the wheel carries 672 KB of duplicate data;
- the catalogue parser keeps a legacy-schema branch to read it;
python -m orfdata.buildwithout--all-orfsstill writes the legacy catalogue by default.
Evidence
Read at d74c9c2.
The records match. I decompressed both files and compared the records with jq -S, after applying del(.source, .species, .taxon_id, .translation_table) to the orf-evidence side. Across the 3,083 uORF and 688 uoORF records there are no differences.
- Every uORF/uoORF record in
orf-evidencehassource="gencode_phase1",species="homo_sapiens",taxon_id=9606andtranslation_table=1. These are the values that_record(row, legacy=True)fills in (orfdata/catalog.py:971-972). - The metadata differs only in
dataset_version(2026-10-08.2 against 2026-10-11.1),model_scope, and the legacy file'ssourceslist and manifest schema.
Code kept for the second copy:
orfdata/catalog.py:951-962:_parse_catalogaccepts both schemas and handles the legacy one separately.orfdata/catalog.py:1009-1035:UORFRecord,UORFCatalog,UORFPeptide = PeptideEvidenceandload_uorf_catalog.load_uorf_catalogloadsresource="uorf-evidence"and then filters to uORF/uoORF records anyway (:1033-1034).orfdata/build.py:563,574,595,599: the schema, loader and manifest all depend onall_orfs.:617sets the default--outputtoorfdata/data/uorf-evidence.
Packaging and docs:
pyproject.toml:61packages both directories.orf-evidence/catalog.json.gzis 1,304,648 bytes anduorf-evidence/catalog.json.gzis 671,566 bytes.docs/reference.md:327-328: "load_uorf_catalog()preserves Isovar's upstream-only snapshot ... New code should use the broaderload_catalog()API."
Users of the legacy API:
- isovar, read at 064cd02:
isovar/uorf_catalog.py,isovar/cli/isovar_uorf_evidence.pyandisovar/uorf_annotation.py. isovar'stests/test_uorf_catalog.py:181-190readsdata/uorf-evidence/manifest.jsonandcatalog.json.gzdirectly. - varcode, read at 96dc77b:
varcode/uorf.py:13-20.
Suggested fix
Keep load_uorf_catalog() and UORFCatalog as the uORF view, but build them from the one bundled catalogue. Load orf-evidence (as _load_catalog(..., resource="orf-evidence") does now) and keep the uORF/uoORF records:
def load_uorf_catalog(path=None, *, expected_sha256=None):
"""Upstream ORFs (uORF, uoORF) from the bundled catalogue, or from a local file."""
catalog = _load_catalog(path, expected_sha256=expected_sha256)
return UORFCatalog(
[r for r in catalog.records if r.biotype in ("uORF", "uoORF")], catalog.metadata)
Then:
- Delete
orfdata/data/uorf-evidence/and remove it frompackage-data. - Make
build.pybuild the full catalogue intoorfdata/data/orf-evidenceby default. - Keep the
isovar.uorf_evidence.v1reader only for legacy files that users supply, or drop it in a major release. - Ask isovar to point
tests/test_uorf_catalog.pyatorf-evidence. Its record counts come from the records, which are identical.
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 10時間 11分
- マージ済み PR(30日)
- 51
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openvax/orfdata のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
openvax/orfdata#194 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
openvax/orfdata の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pearu/agent-sandbox#451 ·
メンテナーはふだん 1 日以内に返信
-
run_gate loads a custom tasks file from outside the working directory対応中かも @Ru0k3 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MakazhanAlpamys/Soup#3189 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NYCPlanning/data-engineering#2996 ·
メンテナーはふだん 1 日以内に返信