orfdata 0.48.4__tar.gz → 0.48.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orfdata-0.48.4/orfdata.egg-info → orfdata-0.48.6}/PKG-INFO +1 -1
- {orfdata-0.48.4 → orfdata-0.48.6}/deploy.sh +2 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/downloads.md +8 -0
- orfdata-0.48.6/orfdata/data/source_records.json +12 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data_resources.py +10 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/download_cli.py +2 -2
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/downloads.py +27 -2
- orfdata-0.48.6/orfdata/source_records.py +93 -0
- orfdata-0.48.6/orfdata/version.py +1 -0
- {orfdata-0.48.4 → orfdata-0.48.6/orfdata.egg-info}/PKG-INFO +1 -1
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata.egg-info/SOURCES.txt +5 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/pyproject.toml +2 -1
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/conftest.py +14 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_downloads.py +1 -1
- orfdata-0.48.6/tests/test_full_collection.py +58 -0
- orfdata-0.48.6/tests/test_real_viral_records.py +142 -0
- orfdata-0.48.6/tests/test_source_records.py +67 -0
- orfdata-0.48.4/orfdata/version.py +0 -1
- {orfdata-0.48.4 → orfdata-0.48.6}/LICENSE +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/MANIFEST.in +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/catalogs.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/cli-design.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/cli.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/copy-yeast.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/coverage.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/dog-data-sources.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/dog-peptides.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/downstream.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/examples.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/human-tissue.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/index.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/ingolia-yeast.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/mammary-stroma.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/measurements.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/pairing.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/pfizer-peptides.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/pfizer-protein.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/pfizer-rna.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/proteome.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/reference.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/search-references.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/source-references.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/species.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/storage.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/stylesheets/docs.css +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs/viral.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/docs.sh +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/lint.sh +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/mkdocs.yml +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/__init__.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/_pinned_genome.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/_structure.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/artifact_archives.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/build.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/cache.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/catalog.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/catalog_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/catalog_manifest.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/catalogs.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/cli_output.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/cli_parser.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/catalogs.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/chains.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/datasets.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/genomes.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/ires/rfam-15.1-human-ires.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/orf-evidence/AUTHOR-LICENSE.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/orf-evidence/NOTICE.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/orf-evidence/catalog.json.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/orf-evidence/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/uorf-evidence/AUTHOR-LICENSE.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/uorf-evidence/NOTICE.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/uorf-evidence/catalog.json.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/uorf-evidence/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/gdc-grch38-d1-vd1-coverage.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/gdc-grch38-d1-vd1-genbank.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/gdc-grch38-d1-vd1-pave.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/hpv16-refseq-CDS.json.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/data/viral/subsets.yaml +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/dataset_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/datasets.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/ensembl.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/errors.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/evidence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/evidence_summary.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/fasta.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/genbank.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/genomes.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/genomes_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/gtf.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/initiation_context.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/install.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/liftover.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/liftover_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/measurements.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/model.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/net.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/numeric_vector.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/pairing.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/proteome.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/proteome_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/record_sources.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/reference.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/reference_ledger.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/reference_mapping.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/reference_table.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/refseq.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/rna.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/search_reference.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sequence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/source_cds.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/__init__.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/copy.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/ingolia.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/kaabinejadian.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/mammary_stroma.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/ncorf_mammals.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/openprot.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/peptideatlas.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_attribution.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_definitions.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_evidence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_lineage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_native.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_queries.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_rna.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/pfizer_vendor.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/riborf.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/riborf_native.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/sources/wang.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_annotation.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_coverage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_installed.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_panel.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_registry.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata/viral_subsets.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata.egg-info/dependency_links.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata.egg-info/entry_points.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata.egg-info/requires.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/orfdata.egg-info/top_level.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/setup.cfg +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/test.sh +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/aggregate_evidence.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905474.soft +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905474_KL9_fpkm.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905476.soft +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905476_KL10_fpkm.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905478.soft +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905478_KL11_fpkm.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905479.soft +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/GSM1905479_KL12_fpkm.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/geo-series.soft +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/methods.pdf +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/paper.xml +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/pmc-metadata.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/qconcat.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/copy/workbook.xlsx +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/internal-stop/gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/internal-stop/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/internal-stop/ncrna.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/internal-stop/protein.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/internal-stop/rna.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/ncrna.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/protein.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ensembl/rna.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346111.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346111.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346114.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346114.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346115.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346115.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346116.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346116.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346117.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346117.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346118.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346118.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346120.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346120.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346122.metadata.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/GSM346122.quant.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ingolia/readMe.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/kaabinejadian/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/kaabinejadian/Results.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/kaabinejadian/manifest-v1.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/kaabinejadian/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/kaabinejadian/sdrf.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/geo.soft.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/paper.xml +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/peptides.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/project.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/proteinGroups.txt +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/mammary_stroma/rna.csv.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/S3.xlsx +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/ensembl107.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/ensembl107.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/human-ensembl107.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/human.bed +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/human.pep.fa +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/mouse.bed +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/ncorf_mammals/mouse.pep.fa +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/ensembl106.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/ensembl106.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.bed.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.fasta.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.tsv.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/peptideatlas/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/peptideatlas/atlas_build.tsv.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/peptideatlas/ensembl.pep.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/peptideatlas/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/dog/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/dog/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/dog/protein.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/dog/search.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/human/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/human/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/human/protein.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/human/search.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/mouse/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/mouse/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/mouse/protein.tsv +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/mouse/search.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/acquisition-missingness.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/definitions.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/dog-panel.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/membership-search-slice.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/memberships.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/native.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/parent-status-search-slice.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/parent-status.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/psm-parent-sets-search-slice.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/psm-parent-sets.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/search-slice.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/search-slice.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/study-slice.xml +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer/vendor/summary-samples.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/GSE325522_family.soft.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/GSE325523_family.soft.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/GSE325525_family.soft.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/counts.csv.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/dog-annotation.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/dog-expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/dog-manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/mouse-annotation.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/mouse-expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/mouse-manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/pfizer_rna/samples.xlsx +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/canis_lupus_familiaris.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/context-keys-v0.4.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/ensembl115.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/homo_sapiens.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/mitochondrial.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/mus_musculus.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/saccharomyces_cerevisiae.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/transcript_orf_v1_0.42.0.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/references/uniprot_literature.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/regions/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/regions/ingolia.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/SD3.xlsx +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/ensembl107.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/ensembl107.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/ensembl107.ncrna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/gencodeM25.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/gencodeM25.rna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/human-ensembl105.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/human-ensembl105.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/human-ensembl105.ncrna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/v3-manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/worm-ensembl105.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/worm-ensembl105.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/worm-ensembl105.ncrna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/yeast-ensembl115.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/yeast-ensembl115.dna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/yeast-ensembl115.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/zebrafish-ensembl115.cdna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/zebrafish-ensembl115.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/riborf/zebrafish-ensembl115.ncrna.fa.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/search_reference/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/search_reference/dog.fasta +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/search_reference/ensembl83-expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/search_reference/ensembl83-human.fasta.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/search_reference/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/README.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/generate.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v1.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v1.sqlite +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v2.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v2.sqlite +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v3.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v3.sqlite +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v4.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/storage/v4.sqlite +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/GRCh83.d1.vd1_virus_decoy.txt.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/NC_001526.4.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/genbank/HBV__X04615.1.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/genbank/HPV16__K02718.1.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/genbank/HPV35__X74477.1.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/genbank/HPV51__M62877.1.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/viral/genbank/HPV56__X74483.1.gb.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/NOTICE.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/annotation.gtf.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/copies.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/expected.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/manifest.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/protein.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/rna.zip +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/data/wang/search.fasta.gz +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_artifact_archives.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_bundle_readers.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_cache.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_catalog_registry.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_cli_audit.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_cli_dispatch.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_cli_options.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_copy.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_cross_reference_pairing.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_data_resources.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_dog_export_read_ahead.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_dog_ncorf_search.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_dog_peptides.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_ensembl.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_ensembl_search_reference.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_evidence_rules.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_evidence_summary.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_exit_statuses.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_export_sqlite_rows.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_extraction_budget.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_ftps_sqlite.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_genbank.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_genbank_equivalence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_genetic_codes.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_genomes.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_ingolia.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_initiation_context.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_liftover.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_local_build_queries.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_mammary_stroma.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_measurements.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_merge_catalogs.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_more_species.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_ncorf_mammals.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_numeric_vector.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_openprot.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_orf_cases.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_orf_gtf.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_package_dog_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_package_sqlite_archive.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_paired_selectors.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pairing.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_attribution.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_definitions.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_evidence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_lineage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_native.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_rna.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_pfizer_vendor.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_protein_set.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_proteome.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_proteome_external.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_proteome_fasta_tokens.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_proteome_producer_graph.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_reference_context.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_reference_ledger.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_reference_mapping.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_reference_orf.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_reference_table.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_refseq.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_region_targets.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_resume.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_riborf.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_search_reference.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_selectors.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_shared_protein_ids.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_source_cds.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_storage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_transcript_orf_serialization.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_uorf_catalog.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_verify_dog_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_bundle.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_cli.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_collections.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_completeness.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_coverage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_host_group.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_initiation.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_installed.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_origin_join.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_sources.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_viral_subsets.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tests/test_wang.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/README-dog-results.md +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/__init__.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/build_dog_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/build_gdc_viral_coverage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/build_hpv16_cds.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/build_reference_ledger.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/dog_result_plan.json +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/export_dog_lineage.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/export_dog_results.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/export_sqlite_rows.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/extraction_budget.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/ftps_sqlite.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/inspect_dog_results.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/normalize_dog_evidence.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/package_dog_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/package_sqlite_archive.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/verify_dog_dataset.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/verify_mammary_stroma.py +0 -0
- {orfdata-0.48.4 → orfdata-0.48.6}/tools/verify_riborf_native.py +0 -0
|
@@ -10,6 +10,8 @@ version="$($PYTHON -c 'from orfdata.version import __version__; print(__version_
|
|
|
10
10
|
if git rev-parse "v$version" >/dev/null 2>&1; then echo 'Version tag already exists' >&2; exit 1; fi
|
|
11
11
|
./lint.sh
|
|
12
12
|
./test.sh
|
|
13
|
+
# The whole collection, built from its pinned real records (one download from GitHub).
|
|
14
|
+
"$PYTHON" -m pytest tests/test_full_collection.py --real-data
|
|
13
15
|
"$PYTHON" -m build
|
|
14
16
|
"$PYTHON" -m twine check "dist/orfdata-$version.tar.gz" "dist/orfdata-$version-py3-none-any.whl"
|
|
15
17
|
if [[ "${1:-}" == --dry-run ]]; then exit 0; fi
|
|
@@ -32,6 +32,14 @@ default always has), and say what each kind left out. Use `--limit 0` for all
|
|
|
32
32
|
rows. `--json` always returns complete
|
|
33
33
|
results. See the [CLI guide](cli.md) for output formats and migration notes.
|
|
34
34
|
|
|
35
|
+
The `records` kind holds verbatim source documents rather than a reference you
|
|
36
|
+
query: `orfdata data fetch gdc-viruses-records` installs the 227 GenBank and
|
|
37
|
+
PaVE documents a `gdc-viruses` build requests (1.8 MB, pinned by checksum, from a
|
|
38
|
+
GitHub data release), so the collection can be rebuilt or checked without
|
|
39
|
+
asking NCBI or PaVE. `orfdata.source_records.read_records` returns them offline.
|
|
40
|
+
The release check, `pytest tests/test_full_collection.py --real-data`, builds the
|
|
41
|
+
whole collection from them and asserts its published counts.
|
|
42
|
+
|
|
35
43
|
Use `--kind` to disambiguate colliding resource names. For one resource,
|
|
36
44
|
`--version VERSION` selects a historical release and `--source-path ASSET=PATH`
|
|
37
45
|
provides already downloaded catalogue/dataset sources or genome files. Source
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"gdc-viruses-records": {
|
|
3
|
+
"species": "homo_sapiens",
|
|
4
|
+
"title": "Source documents of the gdc-viruses collection",
|
|
5
|
+
"url": "https://github.com/openvax/orfdata/releases/download/data-gdc-viruses-records-1/gdc-viruses-records.tar.gz",
|
|
6
|
+
"sha256": "fa4e15f38b665a937eef1481ff685171f61dba8fb99ddc9b3f41e96d55fa810a",
|
|
7
|
+
"size": 1834418,
|
|
8
|
+
"fetched": "2026-11-03",
|
|
9
|
+
"orfdata_version": "0.48.4",
|
|
10
|
+
"provider": "NCBI GenBank and the Papillomavirus Episteme"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -66,6 +66,12 @@ def data_info(name, *, kind=None, version=None, cache_root=None, verify_files=Fa
|
|
|
66
66
|
registry = DatasetRegistry(cache_root=cache_root)
|
|
67
67
|
result["sources"] = [s.source.to_dict() for s in registry.search_references(dataset, row.version)
|
|
68
68
|
if s.source.asset_id == asset]
|
|
69
|
+
elif row.kind == "records":
|
|
70
|
+
from dataclasses import asdict
|
|
71
|
+
|
|
72
|
+
from .source_records import pinned_records
|
|
73
|
+
|
|
74
|
+
result["source"] = asdict(next(r for r in pinned_records() if r.name == name))
|
|
69
75
|
elif row.kind == "chain":
|
|
70
76
|
from dataclasses import asdict
|
|
71
77
|
|
|
@@ -161,6 +167,10 @@ def fetch_data(name, *, kind=None, version=None, cache_root=None, force=False,
|
|
|
161
167
|
download_chain(chain.source_build, chain.target_build, species=chain.species,
|
|
162
168
|
cache_root=cache_root, force=force, accept_terms=accept_terms,
|
|
163
169
|
download_options=options)
|
|
170
|
+
elif row.kind == "records":
|
|
171
|
+
from .source_records import install_records
|
|
172
|
+
|
|
173
|
+
install_records(name, cache_root=cache_root, force=force, download_options=options)
|
|
164
174
|
elif row.kind == "viral":
|
|
165
175
|
from .downloads import install_collection
|
|
166
176
|
|
|
@@ -115,7 +115,7 @@ _COLLECTION_FIELDS = ("kind", "status", "collection", "path", "bundle_version",
|
|
|
115
115
|
|
|
116
116
|
def _add_discovery(parser, *, status=False):
|
|
117
117
|
parser.add_argument(
|
|
118
|
-
"--kind", choices=("viral", "catalog", "dataset", "reference", "genome", "chain"))
|
|
118
|
+
"--kind", choices=("viral", "catalog", "dataset", "reference", "genome", "chain", "records"))
|
|
119
119
|
parser.add_argument("--species", help="Only resources for this species, e.g. human or mouse")
|
|
120
120
|
parser.add_argument("--context", action="append",
|
|
121
121
|
help="Only resources in this context; repeat for a union")
|
|
@@ -153,7 +153,7 @@ def run(argv=None, prog="orfdata download"):
|
|
|
153
153
|
("fetch", "Install named resources, downloading or building as needed")):
|
|
154
154
|
command = commands.add_parser(verb, help=description)
|
|
155
155
|
command.add_argument("names", metavar="NAME", nargs="+" if verb == "fetch" else None)
|
|
156
|
-
command.add_argument("--kind", choices=("viral", "catalog", "dataset", "reference", "genome", "chain"))
|
|
156
|
+
command.add_argument("--kind", choices=("viral", "catalog", "dataset", "reference", "genome", "chain", "records"))
|
|
157
157
|
command.add_argument("--version", help="Exact resource version; defaults to its registered version")
|
|
158
158
|
_add_json(command)
|
|
159
159
|
if verb == "fetch":
|
|
@@ -351,6 +351,30 @@ def _chains(cache_root, verify_files):
|
|
|
351
351
|
return tuple(rows)
|
|
352
352
|
|
|
353
353
|
|
|
354
|
+
def _records(cache_root, verify_files):
|
|
355
|
+
from .source_records import pinned_records, records_registry
|
|
356
|
+
|
|
357
|
+
rows = []
|
|
358
|
+
for pin in pinned_records():
|
|
359
|
+
inspection = records_registry(pin, cache_root).inspect(
|
|
360
|
+
pin.name, "1", verify_files=verify_files)
|
|
361
|
+
rows.append(DataStatus(
|
|
362
|
+
kind="records",
|
|
363
|
+
name=pin.name,
|
|
364
|
+
version="1",
|
|
365
|
+
title=pin.title,
|
|
366
|
+
species=(pin.species,),
|
|
367
|
+
taxon_ids=(species_taxon(pin.species),),
|
|
368
|
+
contexts=(),
|
|
369
|
+
status=inspection.status,
|
|
370
|
+
path=str(inspection.path),
|
|
371
|
+
origin="download" if inspection.status == "available" else None,
|
|
372
|
+
acquire="download",
|
|
373
|
+
command=None,
|
|
374
|
+
))
|
|
375
|
+
return tuple(rows)
|
|
376
|
+
|
|
377
|
+
|
|
354
378
|
def list_data(
|
|
355
379
|
*,
|
|
356
380
|
kind: str | None = None,
|
|
@@ -365,13 +389,13 @@ def list_data(
|
|
|
365
389
|
"""List known data resources and local state without acquiring anything.
|
|
366
390
|
|
|
367
391
|
``kind`` may be ``viral``, ``catalog``, ``dataset``, ``reference``,
|
|
368
|
-
``genome`` or ``
|
|
392
|
+
``genome``, ``chain`` or ``records``. ``species`` accepts ORFdata's species aliases.
|
|
369
393
|
``installed`` can be true or false to select usable resources or
|
|
370
394
|
unavailable ones; ``local=True`` selects every resource with local files,
|
|
371
395
|
usable, damaged or unreadable, as ``orfdata data status`` shows them. ``verify_files=True`` hashes pinned files and
|
|
372
396
|
validates the viral bundle.
|
|
373
397
|
"""
|
|
374
|
-
kinds = ("viral", "catalog", "dataset", "reference", "genome", "chain")
|
|
398
|
+
kinds = ("viral", "catalog", "dataset", "reference", "genome", "chain", "records")
|
|
375
399
|
if kind == "all":
|
|
376
400
|
kind = None
|
|
377
401
|
if kind is not None and kind not in kinds:
|
|
@@ -402,6 +426,7 @@ def list_data(
|
|
|
402
426
|
"reference": _references,
|
|
403
427
|
"genome": _genomes,
|
|
404
428
|
"chain": _chains,
|
|
429
|
+
"records": _records,
|
|
405
430
|
}
|
|
406
431
|
rows = []
|
|
407
432
|
for current in kinds if kind is None else (kind,):
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Verbatim source documents a viral collection is built from, pinned so they can be installed.
|
|
2
|
+
|
|
3
|
+
A viral collection downloads a GenBank or PaVE document per genome, in about 35
|
|
4
|
+
requests. These are those documents as fetched on a known day, in one pinned
|
|
5
|
+
archive, so a collection can be rebuilt, or checked against its published counts,
|
|
6
|
+
without the network and without upstream revisions changing the result. As with
|
|
7
|
+
chain files, :func:`install_records` (or ``orfdata data fetch``) downloads and
|
|
8
|
+
checks the archive once; :func:`read_records` then reads it offline.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
import json
|
|
12
|
+
import tarfile
|
|
13
|
+
from dataclasses import dataclass
|
|
14
|
+
from importlib.resources import files
|
|
15
|
+
|
|
16
|
+
from .cache import content_digest, get_data_dir, pinned_registry
|
|
17
|
+
from .errors import NotInstalledError
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@dataclass(frozen=True)
|
|
21
|
+
class PinnedRecords:
|
|
22
|
+
"""An archive of source documents pinned by URL, size and SHA-256."""
|
|
23
|
+
|
|
24
|
+
name: str
|
|
25
|
+
species: str
|
|
26
|
+
title: str
|
|
27
|
+
url: str
|
|
28
|
+
sha256: str
|
|
29
|
+
size: int
|
|
30
|
+
fetched: str
|
|
31
|
+
orfdata_version: str
|
|
32
|
+
provider: str
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def filename(self):
|
|
36
|
+
return self.url.rsplit("/", 1)[-1]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def pinned_records():
|
|
40
|
+
"""The pinned archives, without downloading any."""
|
|
41
|
+
pins = json.loads(files("orfdata").joinpath("data/source_records.json").read_text())
|
|
42
|
+
return tuple(PinnedRecords(name, **entry) for name, entry in sorted(pins.items()))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _pinned(name):
|
|
46
|
+
found = {pin.name: pin for pin in pinned_records()}
|
|
47
|
+
if name not in found:
|
|
48
|
+
raise ValueError(f"No pinned source records {name!r}; pinned: {', '.join(found) or 'none'}")
|
|
49
|
+
return found[name]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def records_registry(pin, cache_root=None):
|
|
53
|
+
"""Return the DataCache registry that installs a pinned archive.
|
|
54
|
+
|
|
55
|
+
The release is named ``pin.name``, version ``"1"``, and its store is
|
|
56
|
+
``source-records/<name>/<digest of the pin>`` in the cache, so a new pin never
|
|
57
|
+
reuses an old file. Nothing is downloaded until the registry is asked to.
|
|
58
|
+
"""
|
|
59
|
+
assets = {pin.filename: dict(url=pin.url, sha256=pin.sha256, size=pin.size)}
|
|
60
|
+
return pinned_registry(pin.name, "1", assets,
|
|
61
|
+
get_data_dir(cache_root) / "source-records" / pin.name
|
|
62
|
+
/ content_digest(assets))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def install_records(name, *, cache_root=None, force=False, source_path=None, download_options=None):
|
|
66
|
+
"""Download the pinned archive and return its path; its SHA-256 and size must match the pin.
|
|
67
|
+
|
|
68
|
+
``source_path`` installs a copy you already have instead, checked the same way.
|
|
69
|
+
"""
|
|
70
|
+
pin = _pinned(name)
|
|
71
|
+
registry = records_registry(pin, cache_root)
|
|
72
|
+
registry.download(pin.name, "1", force=force,
|
|
73
|
+
source_paths=None if source_path is None else {pin.filename: str(source_path)},
|
|
74
|
+
**(download_options or {}))
|
|
75
|
+
return registry.local_path(pin.name, "1", asset=pin.filename)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def read_records(name, *, cache_root=None):
|
|
79
|
+
"""The installed archive's documents as ``{file name: bytes}``, still gzipped as published.
|
|
80
|
+
|
|
81
|
+
File names read ``<abbreviation>__<source>__<identifier>.<suffix>.gz``. Nothing
|
|
82
|
+
is downloaded: an archive that is not installed raises NotInstalledError.
|
|
83
|
+
"""
|
|
84
|
+
pin = _pinned(name)
|
|
85
|
+
registry = records_registry(pin, cache_root)
|
|
86
|
+
if registry.inspect(pin.name, "1", verify_files=True).status != "available":
|
|
87
|
+
raise NotInstalledError(
|
|
88
|
+
f"{name!r} is not installed or fails its checksum; install it with: "
|
|
89
|
+
f"orfdata data fetch {name} --kind records")
|
|
90
|
+
path = registry.local_path(pin.name, "1", asset=pin.filename)
|
|
91
|
+
with tarfile.open(path, "r:gz") as archive:
|
|
92
|
+
return {member.name.removeprefix("./"): archive.extractfile(member).read()
|
|
93
|
+
for member in archive if member.isfile()}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.48.6"
|
|
@@ -83,6 +83,7 @@ orfdata/rna.py
|
|
|
83
83
|
orfdata/search_reference.py
|
|
84
84
|
orfdata/sequence.py
|
|
85
85
|
orfdata/source_cds.py
|
|
86
|
+
orfdata/source_records.py
|
|
86
87
|
orfdata/version.py
|
|
87
88
|
orfdata/viral.py
|
|
88
89
|
orfdata/viral_annotation.py
|
|
@@ -102,6 +103,7 @@ orfdata/data/catalogs.json
|
|
|
102
103
|
orfdata/data/chains.json
|
|
103
104
|
orfdata/data/datasets.json
|
|
104
105
|
orfdata/data/genomes.json
|
|
106
|
+
orfdata/data/source_records.json
|
|
105
107
|
orfdata/data/ires/rfam-15.1-human-ires.json
|
|
106
108
|
orfdata/data/orf-evidence/AUTHOR-LICENSE.txt
|
|
107
109
|
orfdata/data/orf-evidence/NOTICE.txt
|
|
@@ -161,6 +163,7 @@ tests/test_exit_statuses.py
|
|
|
161
163
|
tests/test_export_sqlite_rows.py
|
|
162
164
|
tests/test_extraction_budget.py
|
|
163
165
|
tests/test_ftps_sqlite.py
|
|
166
|
+
tests/test_full_collection.py
|
|
164
167
|
tests/test_genbank.py
|
|
165
168
|
tests/test_genbank_equivalence.py
|
|
166
169
|
tests/test_genetic_codes.py
|
|
@@ -196,6 +199,7 @@ tests/test_proteome.py
|
|
|
196
199
|
tests/test_proteome_external.py
|
|
197
200
|
tests/test_proteome_fasta_tokens.py
|
|
198
201
|
tests/test_proteome_producer_graph.py
|
|
202
|
+
tests/test_real_viral_records.py
|
|
199
203
|
tests/test_reference_context.py
|
|
200
204
|
tests/test_reference_ledger.py
|
|
201
205
|
tests/test_reference_mapping.py
|
|
@@ -209,6 +213,7 @@ tests/test_search_reference.py
|
|
|
209
213
|
tests/test_selectors.py
|
|
210
214
|
tests/test_shared_protein_ids.py
|
|
211
215
|
tests/test_source_cds.py
|
|
216
|
+
tests/test_source_records.py
|
|
212
217
|
tests/test_storage.py
|
|
213
218
|
tests/test_transcript_orf_serialization.py
|
|
214
219
|
tests/test_uorf_catalog.py
|
|
@@ -42,7 +42,7 @@ version = {attr = "orfdata.version.__version__"}
|
|
|
42
42
|
include = ["orfdata*"]
|
|
43
43
|
|
|
44
44
|
[tool.setuptools.package-data]
|
|
45
|
-
orfdata = ["data/uorf-evidence/*", "data/orf-evidence/*", "data/ires/*", "data/viral/*", "data/datasets.json", "data/catalogs.json", "data/chains.json", "data/genomes.json"]
|
|
45
|
+
orfdata = ["data/uorf-evidence/*", "data/orf-evidence/*", "data/ires/*", "data/viral/*", "data/datasets.json", "data/catalogs.json", "data/chains.json", "data/genomes.json", "data/source_records.json"]
|
|
46
46
|
|
|
47
47
|
[tool.ruff]
|
|
48
48
|
target-version = "py311"
|
|
@@ -54,3 +54,4 @@ ignore = ["E501"]
|
|
|
54
54
|
|
|
55
55
|
[tool.pytest.ini_options]
|
|
56
56
|
testpaths = ["tests"]
|
|
57
|
+
markers = ["real_data: needs the pinned real source records, downloaded from GitHub (run with --real-data)"]
|
|
@@ -216,3 +216,17 @@ def serve_records(monkeypatch, genbank=(), alternate=()):
|
|
|
216
216
|
|
|
217
217
|
monkeypatch.setattr(record_sources, "fetch", fetch)
|
|
218
218
|
return asked
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def pytest_addoption(parser):
|
|
222
|
+
parser.addoption("--real-data", action="store_true",
|
|
223
|
+
help="Also run the checks that download the pinned real source records")
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def pytest_collection_modifyitems(config, items):
|
|
227
|
+
if config.getoption("--real-data"):
|
|
228
|
+
return
|
|
229
|
+
skip = pytest.mark.skip(reason="needs the pinned real source records; run with --real-data")
|
|
230
|
+
for item in items:
|
|
231
|
+
if "real_data" in item.keywords:
|
|
232
|
+
item.add_marker(skip)
|
|
@@ -9,7 +9,7 @@ from orfdata.cli import run
|
|
|
9
9
|
from orfdata.downloads import collection_state, default_collections
|
|
10
10
|
from orfdata.install import _selected_collections
|
|
11
11
|
|
|
12
|
-
KINDS = {"viral", "catalog", "dataset", "reference", "genome", "chain"}
|
|
12
|
+
KINDS = {"viral", "catalog", "dataset", "reference", "genome", "chain", "records"}
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
def test_every_kind_is_listed_with_an_acquisition_command():
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""The whole gdc-viruses collection, built offline from its pinned real source records.
|
|
2
|
+
|
|
3
|
+
Opt in with ``pytest --real-data``: the one download is the pinned archive from
|
|
4
|
+
GitHub (``orfdata data fetch gdc-viruses-records``), never NCBI or PaVE. This is
|
|
5
|
+
the check the release process runs, because defects in real records (a protein
|
|
6
|
+
ID shared after sanitizing, a lineage whose last name is not the genus, a
|
|
7
|
+
slippage CDS that reads a base twice) have not shown in the synthetic suite.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
import gzip
|
|
11
|
+
|
|
12
|
+
import pytest
|
|
13
|
+
from conftest import serve_records
|
|
14
|
+
|
|
15
|
+
from orfdata import download_viral_references, viral_references
|
|
16
|
+
from orfdata.source_records import install_records, read_records
|
|
17
|
+
|
|
18
|
+
pytestmark = pytest.mark.real_data
|
|
19
|
+
|
|
20
|
+
NAME = "gdc-viruses-records"
|
|
21
|
+
REFERENCES = 201
|
|
22
|
+
ORFS = 1758
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@pytest.fixture(scope="module")
|
|
26
|
+
def collection(tmp_path_factory):
|
|
27
|
+
root = str(tmp_path_factory.mktemp("full-collection"))
|
|
28
|
+
install_records(NAME, cache_root=root)
|
|
29
|
+
genbank, alternate = {}, {}
|
|
30
|
+
for filename, raw in read_records(NAME, cache_root=root).items():
|
|
31
|
+
source, identifier = filename.removesuffix(".gz").split("__", 1)
|
|
32
|
+
if source == "genbank":
|
|
33
|
+
accession = identifier.removesuffix(".gb")
|
|
34
|
+
genbank[accession] = genbank[accession.split(".")[0]] = gzip.decompress(raw).decode()
|
|
35
|
+
else:
|
|
36
|
+
alternate[identifier.removesuffix(".json")] = gzip.decompress(raw)
|
|
37
|
+
patch = pytest.MonkeyPatch()
|
|
38
|
+
serve_records(patch, genbank, alternate)
|
|
39
|
+
try:
|
|
40
|
+
download_viral_references(species="human", cache_root=root)
|
|
41
|
+
finally:
|
|
42
|
+
patch.undo()
|
|
43
|
+
return root
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def test_the_collection_offers_the_published_counts(collection):
|
|
47
|
+
references = viral_references(cache_root=collection)
|
|
48
|
+
assert len(references) == REFERENCES
|
|
49
|
+
assert sum(len(item.orfs) for item in references) == ORFS
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def test_eight_source_cds_are_left_out_and_each_for_a_known_reason(collection):
|
|
53
|
+
"""Three ambiguous bases, two starts off the source protein, two HTLV-1 slippages, one EBV splice."""
|
|
54
|
+
import re
|
|
55
|
+
|
|
56
|
+
left_out = sum(int(match.group(1)) for item in viral_references(cache_root=collection)
|
|
57
|
+
if (match := re.search(r"(\d+) of \d+ source CDS not offered", item.scope)))
|
|
58
|
+
assert left_out == 8
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"""Real GenBank and PaVE records, through the same download and binding path as a collection.
|
|
2
|
+
|
|
3
|
+
Synthetic records only hold the cases their author thought of. Each record here
|
|
4
|
+
is a real source record (three trimmed to the features that matter) that once
|
|
5
|
+
hit a defect the synthetic suite missed: what a defect looked like on real data
|
|
6
|
+
is pinned by the expectations below. The records live in ``tests/data/viral_records``.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import gzip
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
import pandas as pd
|
|
13
|
+
import pytest
|
|
14
|
+
from conftest import VIRAL_CONTEXT, serve_records
|
|
15
|
+
|
|
16
|
+
from orfdata import download_viral_references, viral_reference, viral_references
|
|
17
|
+
from orfdata import viral_panel as viral_panel_module
|
|
18
|
+
from orfdata.record_sources import GENBANK_SOURCE, reference_source
|
|
19
|
+
from orfdata.viral_annotation import name_transcripts, unique_source_proteins
|
|
20
|
+
|
|
21
|
+
DATA = Path(__file__).parent / "data" / "viral_records"
|
|
22
|
+
|
|
23
|
+
# abbreviation, accession: every one a record of the GDC collection.
|
|
24
|
+
PANEL = (("HBV", "X04615.1"), ("HTLV-1", "AF033817.1"), ("HPV63", "X70828.1"),
|
|
25
|
+
("EBV", "AJ507799.2"), ("HPV171", "KF006398.1"), ("HPV175", "KC108721.1"))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def _record(name):
|
|
29
|
+
return gzip.open(DATA / f"{name}.gb.gz", "rt").read()
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@pytest.fixture(scope="module")
|
|
33
|
+
def collection(tmp_path_factory):
|
|
34
|
+
"""Download the real records as a collection and return the cache root."""
|
|
35
|
+
patch = pytest.MonkeyPatch()
|
|
36
|
+
inventory = pd.DataFrame([
|
|
37
|
+
{"index": index, "name": abbreviation, "abbreviation": abbreviation,
|
|
38
|
+
"refseq": "", "genbank": accession, "pave_id": "", "pave_notes": "",
|
|
39
|
+
"bundled_reference_id": "", "coding_models": pd.NA, "status": "not_bundled",
|
|
40
|
+
"available": False, "contexts": (VIRAL_CONTEXT,)}
|
|
41
|
+
for index, (abbreviation, accession) in enumerate(PANEL, 1)])
|
|
42
|
+
inventory["coding_models"] = inventory["coding_models"].astype("Int64")
|
|
43
|
+
patch.setattr(viral_panel_module, "viral_panel_coverage", lambda **options: inventory)
|
|
44
|
+
serve_records(patch, {accession: _record(accession) for _, accession in PANEL})
|
|
45
|
+
ledger = reference_source(GENBANK_SOURCE).build_ledger(inventory, timeout=1)
|
|
46
|
+
patch.setattr(viral_panel_module, "_primary_ledger",
|
|
47
|
+
lambda collection, rows: ledger.loc[rows["abbreviation"]])
|
|
48
|
+
root = tmp_path_factory.mktemp("real-records")
|
|
49
|
+
download_viral_references(species="human", cache_root=str(root))
|
|
50
|
+
patch.undo()
|
|
51
|
+
return str(root)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def _offered(collection, accession):
|
|
55
|
+
reference = viral_reference(accession, cache_root=collection)
|
|
56
|
+
return reference, list(reference.orfs)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def test_every_real_record_becomes_an_installed_reference(collection):
|
|
60
|
+
found = {item.id for item in viral_references(cache_root=collection)}
|
|
61
|
+
assert {accession for _, accession in PANEL} <= found
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def test_the_group_is_the_genus_not_the_last_lineage_name(collection):
|
|
65
|
+
groups = {accession: viral_reference(accession, cache_root=collection).group
|
|
66
|
+
for _, accession in PANEL}
|
|
67
|
+
assert groups == {"X04615.1": "Orthohepadnavirus", "AF033817.1": "Deltaretrovirus",
|
|
68
|
+
"X70828.1": "Mupapillomavirus", "AJ507799.2": "Lymphocryptovirus",
|
|
69
|
+
"KF006398.1": "Gammapapillomavirus", "KC108721.1": "Gammapapillomavirus"}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def test_the_isolation_host_is_taken_from_the_record_when_it_names_one(collection):
|
|
73
|
+
hosts = {accession: viral_reference(accession, cache_root=collection).host_taxon_ids
|
|
74
|
+
for _, accession in PANEL}
|
|
75
|
+
assert hosts["KF006398.1"] == hosts["KC108721.1"] == (9606,)
|
|
76
|
+
assert hosts["X04615.1"] == hosts["AF033817.1"] == hosts["X70828.1"] == ()
|
|
77
|
+
named = viral_reference("KF006398.1", cache_root=collection)
|
|
78
|
+
assert "X04615.1" not in {item.id for item in viral_references(
|
|
79
|
+
host="human", cache_root=collection)}
|
|
80
|
+
assert "KF006398.1" in named.host_source
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def test_hbv_polymerase_wraps_the_circular_origin_and_is_offered(collection):
|
|
84
|
+
reference, offered = _offered(collection, "X04615.1")
|
|
85
|
+
assert reference.coding_models == 4 and "not offered" not in reference.scope
|
|
86
|
+
wrapped = [orf for orf in offered
|
|
87
|
+
if any(a <= 10 for a, _ in orf.coding_blocks)
|
|
88
|
+
and any(b >= reference.length - 10 for _, b in orf.coding_blocks)]
|
|
89
|
+
assert len(wrapped) == 1
|
|
90
|
+
(orf,) = wrapped
|
|
91
|
+
assert len(orf.coding_sequence) % 3 == 0
|
|
92
|
+
assert sum(b - a + 1 for a, b in orf.coding_blocks) == len(orf.coding_sequence)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def test_htlv1_slippage_cds_that_read_a_base_twice_are_left_out(collection):
|
|
96
|
+
reference, offered = _offered(collection, "AF033817.1")
|
|
97
|
+
assert reference.coding_models == 4
|
|
98
|
+
assert "2 of 6 source CDS not offered as ORFs" in reference.scope
|
|
99
|
+
for orf in offered: # What is offered accounts for every base once.
|
|
100
|
+
assert sum(b - a + 1 for a, b in orf.coding_blocks) == len(orf.coding_sequence)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def test_hpv63_cds_whose_start_does_not_match_its_source_protein_is_left_out(collection):
|
|
104
|
+
reference, _ = _offered(collection, "X70828.1")
|
|
105
|
+
assert reference.coding_models == 6
|
|
106
|
+
assert "1 of 7 source CDS not offered as ORFs" in reference.scope
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@pytest.mark.parametrize("accession", ["KF006398.1", "KC108721.1"])
|
|
110
|
+
def test_a_cds_with_an_ambiguous_base_is_left_out_not_guessed(collection, accession):
|
|
111
|
+
reference, offered = _offered(collection, accession)
|
|
112
|
+
assert reference.coding_models == 6
|
|
113
|
+
assert "1 of 7 source CDS not offered as ORFs" in reference.scope
|
|
114
|
+
assert all(set(orf.coding_sequence) <= set("ACGT") for orf in offered)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def test_ebv_lmp2_spliced_back_across_the_terminal_repeat_is_left_out(collection):
|
|
118
|
+
"""The trimmed record keeps LMP2's two CDSs: one inside the repeat, one spliced across it."""
|
|
119
|
+
reference, offered = _offered(collection, "AJ507799.2")
|
|
120
|
+
assert reference.coding_models == len(offered) == 1
|
|
121
|
+
assert "1 of 2 source CDS not offered as ORFs" in reference.scope
|
|
122
|
+
# The CDS that begins at 166103 and continues from base 58 is the one left out.
|
|
123
|
+
assert all(a < 100000 for orf in offered for a, _ in orf.coding_blocks)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def test_hpv16_e6_and_e6_star_stay_distinct_through_their_sanitized_names():
|
|
127
|
+
"""The PaVE HPV16 record names E6 and E6*, which sanitize to the same token."""
|
|
128
|
+
from orfdata.record_sources import PAVE_SOURCE
|
|
129
|
+
|
|
130
|
+
pave = (DATA / "HPV16REF.json.gz").read_bytes()
|
|
131
|
+
patch = pytest.MonkeyPatch()
|
|
132
|
+
try:
|
|
133
|
+
serve_records(patch, alternate={"HPV16REF": gzip.decompress(pave)})
|
|
134
|
+
genome = reference_source(PAVE_SOURCE).record("HPV16REF", timeout=1)
|
|
135
|
+
finally:
|
|
136
|
+
patch.undo()
|
|
137
|
+
features = genome.coding_features
|
|
138
|
+
proteins = [feature["source_protein_id"] for feature in features]
|
|
139
|
+
assert any(name.endswith("E6*") for name in proteins) and "HPV16-E6" in proteins
|
|
140
|
+
named = name_transcripts("HPV16", features, unique_protein_ids=unique_source_proteins(features))
|
|
141
|
+
ids = [row["protein_id"] for row in named]
|
|
142
|
+
assert len(set(ids)) == len(ids)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""The pinned source-record archive is listed, described and installed like any other data."""
|
|
2
|
+
|
|
3
|
+
import hashlib
|
|
4
|
+
import io
|
|
5
|
+
import json
|
|
6
|
+
import tarfile
|
|
7
|
+
from dataclasses import replace
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
|
|
11
|
+
from orfdata import source_records
|
|
12
|
+
from orfdata.downloads import list_data
|
|
13
|
+
from orfdata.errors import NotInstalledError
|
|
14
|
+
|
|
15
|
+
NAME = "gdc-viruses-records"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def test_the_archive_is_listed_beside_other_data_and_missing_until_fetched(tmp_path):
|
|
19
|
+
(row,) = list_data(kind="records", cache_root=str(tmp_path))
|
|
20
|
+
assert (row.kind, row.name, row.version, row.status, row.acquire) == \
|
|
21
|
+
("records", NAME, "1", "missing", "download")
|
|
22
|
+
assert row.name in {item.name for item in list_data(cache_root=str(tmp_path))}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def test_the_pin_names_a_release_asset_by_checksum_and_size():
|
|
26
|
+
(pin,) = source_records.pinned_records()
|
|
27
|
+
assert pin.url.startswith("https://github.com/openvax/orfdata/releases/download/data-")
|
|
28
|
+
assert len(pin.sha256) == 64 and pin.size > 0 and pin.filename.endswith(".tar.gz")
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def test_nothing_is_read_before_the_archive_is_installed(tmp_path):
|
|
32
|
+
with pytest.raises(NotInstalledError, match="orfdata data fetch"):
|
|
33
|
+
source_records.read_records(NAME, cache_root=str(tmp_path))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def test_an_installed_archive_is_checked_against_its_pin_and_read_offline(tmp_path, monkeypatch):
|
|
37
|
+
buffer = io.BytesIO()
|
|
38
|
+
with tarfile.open(fileobj=buffer, mode="w:gz") as archive:
|
|
39
|
+
data = b"LOCUS X\n"
|
|
40
|
+
member = tarfile.TarInfo("genbank__X1.1.gb.gz")
|
|
41
|
+
member.size = len(data)
|
|
42
|
+
archive.addfile(member, io.BytesIO(data))
|
|
43
|
+
raw = buffer.getvalue()
|
|
44
|
+
local = tmp_path / "records.tar.gz"
|
|
45
|
+
local.write_bytes(raw)
|
|
46
|
+
(pin,) = source_records.pinned_records()
|
|
47
|
+
small = replace(pin, url=pin.url.rsplit("/", 1)[0] + "/records.tar.gz",
|
|
48
|
+
sha256=hashlib.sha256(raw).hexdigest(), size=len(raw))
|
|
49
|
+
monkeypatch.setattr(source_records, "pinned_records", lambda: (small,))
|
|
50
|
+
|
|
51
|
+
cache = str(tmp_path / "cache")
|
|
52
|
+
source_records.install_records(NAME, cache_root=cache, source_path=local)
|
|
53
|
+
assert source_records.read_records(NAME, cache_root=cache) == {"genbank__X1.1.gb.gz": data}
|
|
54
|
+
assert list_data(kind="records", cache_root=cache)[0].status == "available"
|
|
55
|
+
|
|
56
|
+
wrong = tmp_path / "wrong.tar.gz"
|
|
57
|
+
wrong.write_bytes(raw + b"x")
|
|
58
|
+
with pytest.raises(Exception, match="(?i)sha|size|checksum|match"):
|
|
59
|
+
source_records.install_records(NAME, cache_root=str(tmp_path / "other"), source_path=wrong)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def test_the_cli_describes_the_archive_offline(tmp_path, capsys):
|
|
63
|
+
from orfdata.cli import run
|
|
64
|
+
|
|
65
|
+
assert run(["data", "info", NAME, "--cache-root", str(tmp_path), "--json"]) in (0, None)
|
|
66
|
+
info = json.loads(capsys.readouterr().out)
|
|
67
|
+
assert info["kind"] == "records" and info["source"]["sha256"] and info["installed"] is False
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.48.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|