orfdata 0.45.0__tar.gz → 0.46.0__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.45.0/orfdata.egg-info → orfdata-0.46.0}/PKG-INFO +1 -1
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/downstream.md +25 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/__init__.py +2 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/proteome.py +7 -3
- orfdata-0.46.0/orfdata/version.py +1 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral.py +89 -17
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_cli.py +2 -2
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_coverage.py +28 -3
- orfdata-0.46.0/orfdata/viral_installed.py +259 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_panel.py +22 -2
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_subsets.py +1 -1
- {orfdata-0.45.0 → orfdata-0.46.0/orfdata.egg-info}/PKG-INFO +1 -1
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata.egg-info/SOURCES.txt +2 -0
- orfdata-0.46.0/tests/test_viral_installed.py +164 -0
- orfdata-0.45.0/orfdata/version.py +0 -1
- {orfdata-0.45.0 → orfdata-0.46.0}/LICENSE +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/MANIFEST.in +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/deploy.sh +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/catalogs.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/cli-design.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/cli.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/copy-yeast.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/coverage.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/dog-data-sources.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/dog-peptides.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/downloads.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/examples.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/human-tissue.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/index.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/ingolia-yeast.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/mammary-stroma.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/measurements.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/pairing.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/pfizer-peptides.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/pfizer-protein.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/pfizer-rna.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/proteome.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/reference.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/search-references.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/source-references.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/species.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/storage.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/stylesheets/docs.css +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs/viral.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/docs.sh +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/lint.sh +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/mkdocs.yml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/_pinned_genome.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/_structure.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/artifact_archives.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/build.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/catalog.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/catalog_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/catalog_manifest.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/catalogs.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/cli_output.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/cli_parser.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/catalogs.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/chains.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/datasets.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/genomes.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/ires/rfam-15.1-human-ires.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/orf-evidence/AUTHOR-LICENSE.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/orf-evidence/NOTICE.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/orf-evidence/catalog.json.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/orf-evidence/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/uorf-evidence/AUTHOR-LICENSE.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/uorf-evidence/NOTICE.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/uorf-evidence/catalog.json.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/uorf-evidence/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/gdc-grch38-d1-vd1-coverage.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/gdc-grch38-d1-vd1-genbank.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/gdc-grch38-d1-vd1-pave.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/hpv16-refseq-CDS.json.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data/viral/subsets.yaml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/data_resources.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/dataset_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/datasets.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/download_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/downloads.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/ensembl.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/errors.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/evidence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/evidence_summary.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/fasta.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/genbank.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/genomes.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/genomes_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/gtf.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/initiation_context.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/install.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/liftover.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/liftover_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/measurements.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/model.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/net.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/numeric_vector.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/pairing.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/proteome_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/record_sources.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/reference.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/reference_ledger.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/reference_mapping.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/reference_table.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/refseq.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/rna.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/search_reference.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sequence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/__init__.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/copy.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/ingolia.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/kaabinejadian.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/mammary_stroma.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/ncorf_mammals.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/openprot.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/peptideatlas.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_attribution.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_definitions.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_evidence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_lineage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_native.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_queries.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_rna.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/pfizer_vendor.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/riborf.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/riborf_native.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/sources/wang.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_annotation.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata/viral_registry.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata.egg-info/dependency_links.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata.egg-info/entry_points.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata.egg-info/requires.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/orfdata.egg-info/top_level.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/pyproject.toml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/setup.cfg +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/test.sh +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/conftest.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/aggregate_evidence.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905474.soft +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905474_KL9_fpkm.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905476.soft +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905476_KL10_fpkm.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905478.soft +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905478_KL11_fpkm.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905479.soft +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/GSM1905479_KL12_fpkm.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/geo-series.soft +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/methods.pdf +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/paper.xml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/pmc-metadata.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/qconcat.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/copy/workbook.xlsx +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/internal-stop/gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/internal-stop/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/internal-stop/ncrna.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/internal-stop/protein.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/internal-stop/rna.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/ncrna.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/protein.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ensembl/rna.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346111.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346111.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346114.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346114.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346115.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346115.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346116.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346116.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346117.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346117.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346118.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346118.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346120.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346120.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346122.metadata.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/GSM346122.quant.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ingolia/readMe.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/kaabinejadian/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/kaabinejadian/Results.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/kaabinejadian/manifest-v1.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/kaabinejadian/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/kaabinejadian/sdrf.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/geo.soft.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/paper.xml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/peptides.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/project.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/proteinGroups.txt +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/mammary_stroma/rna.csv.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/S3.xlsx +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/ensembl107.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/ensembl107.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/human-ensembl107.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/human.bed +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/human.pep.fa +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/mouse.bed +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/ncorf_mammals/mouse.pep.fa +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/ensembl106.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/ensembl106.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.bed.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.fasta.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/openprot/mouse-openprot-2_2-altprots+isoforms-min_2_pep-GRCm39.106.tsv.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/peptideatlas/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/peptideatlas/atlas_build.tsv.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/peptideatlas/ensembl.pep.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/peptideatlas/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/dog/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/dog/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/dog/protein.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/dog/search.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/human/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/human/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/human/protein.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/human/search.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/mouse/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/mouse/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/mouse/protein.tsv +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/mouse/search.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/acquisition-missingness.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/definitions.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/dog-panel.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/membership-search-slice.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/memberships.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/native.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/parent-status-search-slice.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/parent-status.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/psm-parent-sets-search-slice.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/psm-parent-sets.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/search-slice.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/search-slice.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/study-slice.xml +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer/vendor/summary-samples.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/GSE325522_family.soft.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/GSE325523_family.soft.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/GSE325525_family.soft.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/counts.csv.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/dog-annotation.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/dog-expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/dog-manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/mouse-annotation.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/mouse-expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/mouse-manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/pfizer_rna/samples.xlsx +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/canis_lupus_familiaris.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/context-keys-v0.4.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/ensembl115.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/homo_sapiens.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/mitochondrial.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/mus_musculus.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/saccharomyces_cerevisiae.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/transcript_orf_v1_0.42.0.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/references/uniprot_literature.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/regions/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/regions/ingolia.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/SD3.xlsx +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/ensembl107.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/ensembl107.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/ensembl107.ncrna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/gencodeM25.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/gencodeM25.rna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/human-ensembl105.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/human-ensembl105.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/human-ensembl105.ncrna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/v3-manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/worm-ensembl105.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/worm-ensembl105.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/worm-ensembl105.ncrna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/yeast-ensembl115.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/yeast-ensembl115.dna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/yeast-ensembl115.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/zebrafish-ensembl115.cdna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/zebrafish-ensembl115.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/riborf/zebrafish-ensembl115.ncrna.fa.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/search_reference/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/search_reference/dog.fasta +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/search_reference/ensembl83-expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/search_reference/ensembl83-human.fasta.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/search_reference/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/README.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/generate.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v1.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v1.sqlite +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v2.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v2.sqlite +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v3.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v3.sqlite +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v4.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/storage/v4.sqlite +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/GRCh83.d1.vd1_virus_decoy.txt.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/NC_001526.4.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/genbank/HBV__X04615.1.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/genbank/HPV16__K02718.1.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/genbank/HPV35__X74477.1.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/genbank/HPV51__M62877.1.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/viral/genbank/HPV56__X74483.1.gb.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/NOTICE.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/annotation.gtf.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/copies.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/expected.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/manifest.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/protein.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/rna.zip +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/data/wang/search.fasta.gz +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_artifact_archives.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_catalog_registry.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_cli_audit.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_cli_options.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_copy.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_cross_reference_pairing.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_data_resources.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_dog_export_read_ahead.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_dog_ncorf_search.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_dog_peptides.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_downloads.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_ensembl.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_ensembl_search_reference.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_evidence_rules.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_evidence_summary.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_exit_statuses.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_export_sqlite_rows.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_extraction_budget.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_ftps_sqlite.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_genbank.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_genbank_equivalence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_genetic_codes.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_genomes.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_ingolia.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_initiation_context.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_liftover.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_local_build_queries.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_mammary_stroma.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_measurements.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_merge_catalogs.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_more_species.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_ncorf_mammals.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_numeric_vector.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_openprot.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_orf_cases.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_orf_gtf.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_package_dog_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_package_sqlite_archive.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_paired_selectors.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pairing.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_attribution.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_definitions.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_evidence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_lineage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_native.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_rna.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_pfizer_vendor.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_protein_set.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_proteome.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_proteome_external.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_proteome_fasta_tokens.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_proteome_producer_graph.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_reference_context.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_reference_ledger.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_reference_mapping.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_reference_orf.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_reference_table.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_refseq.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_region_targets.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_resume.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_riborf.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_search_reference.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_selectors.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_storage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_transcript_orf_serialization.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_uorf_catalog.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_verify_dog_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_bundle.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_cli.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_collections.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_completeness.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_coverage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_initiation.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_origin_join.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_sources.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_viral_subsets.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tests/test_wang.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/README-dog-results.md +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/__init__.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/build_dog_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/build_gdc_viral_coverage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/build_hpv16_cds.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/build_reference_ledger.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/dog_result_plan.json +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/export_dog_lineage.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/export_dog_results.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/export_sqlite_rows.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/extraction_budget.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/ftps_sqlite.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/inspect_dog_results.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/normalize_dog_evidence.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/package_dog_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/package_sqlite_archive.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/verify_dog_dataset.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/verify_mammary_stroma.py +0 -0
- {orfdata-0.45.0 → orfdata-0.46.0}/tools/verify_riborf_native.py +0 -0
|
@@ -51,6 +51,31 @@ the checksummed reference directory. The same object goes to isovar with the
|
|
|
51
51
|
tumour RNA alignment, and to topiary or vaxrank with an MHC predictor, wherever
|
|
52
52
|
those take a genome.
|
|
53
53
|
|
|
54
|
+
### Coding references by exact sequence
|
|
55
|
+
|
|
56
|
+
Isovar asks ORFdata for coding references by exact genome sequence, not through
|
|
57
|
+
a PyEnsembl genome. `viral_references()`, `viral_orfs()` and
|
|
58
|
+
`viral_panel_coverage()` read every installed collection as well as the bundled
|
|
59
|
+
HPV16 catalogue, so a collection installed with `orfdata data fetch` supplies
|
|
60
|
+
Isovar's viral models for every contig it holds. Only CDSs that translate
|
|
61
|
+
exactly to their source protein are offered; `viral_references()` says in each
|
|
62
|
+
reference's `scope` how many were left out, and they remain in the
|
|
63
|
+
transcriptome layer. Installed references carry no host or group until those are
|
|
64
|
+
curated, so `host=` and `group=` still select bundled references.
|
|
65
|
+
|
|
66
|
+
### Declaring the genome for vaxrank
|
|
67
|
+
|
|
68
|
+
A PyEnsembl genome over viral contigs has no species, so vaxrank cannot check it
|
|
69
|
+
against the analysis host. `viral_reference_context(references)` states it, for
|
|
70
|
+
the species the collection targets, and validates against `viral_genome()`:
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
from orfdata import viral_genome, viral_reference_context
|
|
74
|
+
|
|
75
|
+
genome = viral_genome(references)
|
|
76
|
+
context = viral_reference_context(references) # Pass as vaxrank's reference_context.
|
|
77
|
+
```
|
|
78
|
+
|
|
54
79
|
Four things are worth knowing before the first run:
|
|
55
80
|
|
|
56
81
|
- **Contig names are the source `accession.version`**, such as `AY446894.2`,
|
|
@@ -101,6 +101,7 @@ from .viral_panel import (
|
|
|
101
101
|
select_viral_references,
|
|
102
102
|
viral_annotation_survey,
|
|
103
103
|
viral_genome,
|
|
104
|
+
viral_reference_context,
|
|
104
105
|
viral_reference_summary,
|
|
105
106
|
)
|
|
106
107
|
from .viral_registry import ViralCollection, viral_collection, viral_collections
|
|
@@ -117,6 +118,7 @@ __all__ = [
|
|
|
117
118
|
"viral_reference",
|
|
118
119
|
"viral_reference_sequence",
|
|
119
120
|
"viral_references",
|
|
121
|
+
"viral_reference_context",
|
|
120
122
|
"download_viral_inventory",
|
|
121
123
|
"viral_contexts",
|
|
122
124
|
"viral_panel_coverage",
|
|
@@ -950,6 +950,10 @@ class _ViralInput:
|
|
|
950
950
|
def _viral_reference_input(reference: ViralReference) -> _ViralInput:
|
|
951
951
|
if not isinstance(reference, ViralReference):
|
|
952
952
|
raise TypeError("Expected a ViralReference")
|
|
953
|
+
if reference.bundle is not None:
|
|
954
|
+
raise ValueError(
|
|
955
|
+
f"{reference.id} comes from an installed collection, which records no source host "
|
|
956
|
+
"or source-record hash; Proteome viral layers take bundled references until #104")
|
|
953
957
|
proteins = ProteinSet(
|
|
954
958
|
name=f"{reference.virus_type}@{reference.id}",
|
|
955
959
|
proteins=tuple((orf.orf_id, orf.protein_sequence) for orf in reference.orfs),
|
|
@@ -982,7 +986,7 @@ def _viral_inputs(selection, host_taxon_id, *, host_taxon_ids=None, host_source=
|
|
|
982
986
|
if selection is None or selection is False:
|
|
983
987
|
return ()
|
|
984
988
|
if selection is True or selection == "all":
|
|
985
|
-
references = viral_references(host=host_taxon_id)
|
|
989
|
+
references = viral_references(host=host_taxon_id, installed=False)
|
|
986
990
|
if not references:
|
|
987
991
|
raise ValueError(f"No bundled viral references for host taxon {host_taxon_id}")
|
|
988
992
|
selection = _canonical_viral_references(references)
|
|
@@ -1017,9 +1021,9 @@ def _viral_inputs(selection, host_taxon_id, *, host_taxon_ids=None, host_source=
|
|
|
1017
1021
|
resolved.append(_viral_reference_input(item))
|
|
1018
1022
|
elif isinstance(item, str):
|
|
1019
1023
|
try:
|
|
1020
|
-
reference = viral_reference(item)
|
|
1024
|
+
reference = viral_reference(item, installed=False)
|
|
1021
1025
|
except ValueError:
|
|
1022
|
-
matches = viral_references(host=host_taxon_id, virus_type=item)
|
|
1026
|
+
matches = viral_references(host=host_taxon_id, virus_type=item, installed=False)
|
|
1023
1027
|
if not matches:
|
|
1024
1028
|
raise ValueError(f"No bundled viral reference ID or virus type matches {item!r} "
|
|
1025
1029
|
f"for host taxon {host_taxon_id}") from None
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.46.0"
|
|
@@ -52,20 +52,28 @@ class ViralReference:
|
|
|
52
52
|
products: tuple[ViralProduct, ...]
|
|
53
53
|
scope: str
|
|
54
54
|
catalogue_sha256: str
|
|
55
|
+
bundle: str | None = None # The installed collection this came from; None when bundled.
|
|
55
56
|
|
|
56
57
|
@cached_property
|
|
57
58
|
def dna(self):
|
|
58
59
|
"""Complete, checksum-verified forward FASTA bases for this reference."""
|
|
60
|
+
if self.bundle is not None:
|
|
61
|
+
from .viral_installed import installed_sequence
|
|
62
|
+
return installed_sequence(self)
|
|
59
63
|
return viral_reference_sequence(self.id)
|
|
60
64
|
|
|
61
65
|
@cached_property
|
|
62
66
|
def orfs(self):
|
|
63
67
|
"""Source-defined CDS paths placed on this exact reference."""
|
|
68
|
+
if self.bundle is not None:
|
|
69
|
+
from .viral_installed import installed_orfs
|
|
70
|
+
return installed_orfs(self)
|
|
64
71
|
return viral_orfs(reference_id=self.id)
|
|
65
72
|
|
|
66
73
|
def to_dict(self):
|
|
67
74
|
"""Return serializable metadata without loading DNA or ORF models."""
|
|
68
75
|
row = asdict(self)
|
|
76
|
+
row.pop("bundle") # A local path is not part of the reference's identity.
|
|
69
77
|
row["host_taxon_ids"] = list(self.host_taxon_ids)
|
|
70
78
|
row["products"] = list(row["products"])
|
|
71
79
|
row["virus"] = dict(group=row.pop("group"), type=row.pop("virus_type"),
|
|
@@ -103,9 +111,44 @@ def _reference(row, data):
|
|
|
103
111
|
scope=data["scope"], catalogue_sha256=_CATALOG_SHA256)
|
|
104
112
|
|
|
105
113
|
|
|
106
|
-
def
|
|
114
|
+
def _every_reference(installed, cache_root):
|
|
115
|
+
"""Bundled references, then those of installed collections the bundle does not already hold.
|
|
116
|
+
|
|
117
|
+
A collection's genome with the sequence of a bundled reference is that
|
|
118
|
+
reference, so it is listed once, as the bundled one. A different sequence
|
|
119
|
+
under a bundled ID would make the ID ambiguous, so that installed genome is
|
|
120
|
+
ignored with a warning, as is a collection that is damaged: bundled
|
|
121
|
+
lookups never fail because of what is installed.
|
|
122
|
+
"""
|
|
123
|
+
data = _catalog()
|
|
124
|
+
found = [_reference(row, data) for row in data["references"]]
|
|
125
|
+
if not installed:
|
|
126
|
+
return found
|
|
127
|
+
import warnings
|
|
128
|
+
|
|
129
|
+
from .viral_installed import installed_references
|
|
130
|
+
|
|
131
|
+
held = {item.sequence_sha256 for item in found}
|
|
132
|
+
taken = {item.id: item for item in found}
|
|
133
|
+
for item in installed_references(cache_root):
|
|
134
|
+
if item.sequence_sha256 in held:
|
|
135
|
+
continue
|
|
136
|
+
if item.id in taken:
|
|
137
|
+
warnings.warn(f"Ignoring installed viral reference {item.id!r}: the bundled catalogue "
|
|
138
|
+
f"already uses that ID for a different sequence ({item.bundle})",
|
|
139
|
+
stacklevel=3)
|
|
140
|
+
continue
|
|
141
|
+
held.add(item.sequence_sha256)
|
|
142
|
+
taken[item.id] = item
|
|
143
|
+
found.append(item)
|
|
144
|
+
return found
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
def viral_references(*, host=None, group=None, virus_type=None, installed=True, cache_root=None):
|
|
107
148
|
"""Find released viral references by documented host, group and type.
|
|
108
149
|
|
|
150
|
+
References of installed collections are listed after the bundled ones.
|
|
151
|
+
|
|
109
152
|
Parameters
|
|
110
153
|
----------
|
|
111
154
|
host : str or int, optional
|
|
@@ -115,6 +158,15 @@ def viral_references(*, host=None, group=None, virus_type=None):
|
|
|
115
158
|
Convenience group label, such as ``"HPV"``; not a taxonomy rank.
|
|
116
159
|
virus_type : str, optional
|
|
117
160
|
Named virus type, such as ``"HPV16"``; distinct from ICTV species.
|
|
161
|
+
installed : bool, default True
|
|
162
|
+
Also list the references of collections installed under ``cache_root``.
|
|
163
|
+
This reads local files only. An installed reference has a ``bundle``,
|
|
164
|
+
an empty ``group`` and ``ictv_species`` (a collection records neither),
|
|
165
|
+
and host associations only where its inventory states them, so
|
|
166
|
+
``host=`` and ``group=`` select bundled references until those are
|
|
167
|
+
curated (#104). Pass ``False`` for the bundled catalogue alone.
|
|
168
|
+
cache_root : path, optional
|
|
169
|
+
Where collections are installed; the default ORFdata cache otherwise.
|
|
118
170
|
|
|
119
171
|
Returns
|
|
120
172
|
-------
|
|
@@ -134,30 +186,34 @@ def viral_references(*, host=None, group=None, virus_type=None):
|
|
|
134
186
|
if any(value is not None and (not isinstance(value, str) or not value)
|
|
135
187
|
for value in (group, virus_type)):
|
|
136
188
|
raise ValueError("group and virus_type must be nonempty names")
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
and (group is None or row["virus"]["group"].casefold() == group.casefold())
|
|
142
|
-
and (virus_type is None or row["virus"]["type"].casefold() == virus_type.casefold()))
|
|
189
|
+
return tuple(item for item in _every_reference(installed, cache_root)
|
|
190
|
+
if (host_taxon_id is None or host_taxon_id in item.host_taxon_ids)
|
|
191
|
+
and (group is None or item.group.casefold() == group.casefold())
|
|
192
|
+
and (virus_type is None or item.virus_type.casefold() == virus_type.casefold()))
|
|
143
193
|
|
|
144
194
|
|
|
145
|
-
def viral_reference(reference_id):
|
|
146
|
-
"""Return one exact viral reference by stable ID, without positional selection.
|
|
147
|
-
|
|
148
|
-
|
|
195
|
+
def viral_reference(reference_id, *, installed=True, cache_root=None):
|
|
196
|
+
"""Return one exact viral reference by stable ID, without positional selection.
|
|
197
|
+
|
|
198
|
+
Installed collections are searched after the bundled catalogue; see
|
|
199
|
+
:func:`viral_references`.
|
|
200
|
+
"""
|
|
201
|
+
matches = [item for item in _every_reference(installed, cache_root) if item.id == reference_id]
|
|
149
202
|
if len(matches) != 1:
|
|
150
203
|
raise ValueError("No unique released viral reference ID matches this name")
|
|
151
|
-
return
|
|
204
|
+
return matches[0]
|
|
152
205
|
|
|
153
206
|
|
|
154
|
-
def viral_reference_sequence(reference_id):
|
|
155
|
-
"""Return
|
|
207
|
+
def viral_reference_sequence(reference_id, *, installed=True, cache_root=None):
|
|
208
|
+
"""Return checksum-verified reference bases for one exact ID.
|
|
156
209
|
|
|
157
210
|
The sequence uses the forward FASTA alphabet (T rather than U) and may
|
|
158
211
|
represent a virus whose biological genome is RNA. No network is accessed.
|
|
212
|
+
An ID not in the bundled catalogue is looked up in installed collections.
|
|
159
213
|
"""
|
|
160
214
|
matches = [row for row in _catalog()["references"] if row["id"] == reference_id]
|
|
215
|
+
if not matches and installed:
|
|
216
|
+
return viral_reference(reference_id, cache_root=cache_root).dna
|
|
161
217
|
if len(matches) != 1:
|
|
162
218
|
raise ValueError("No unique released viral reference ID matches this name")
|
|
163
219
|
row = matches[0]
|
|
@@ -168,7 +224,8 @@ def viral_reference_sequence(reference_id):
|
|
|
168
224
|
return sequence
|
|
169
225
|
|
|
170
226
|
|
|
171
|
-
def viral_orfs(reference_sequence=None, *, reference_id=None, contig=None
|
|
227
|
+
def viral_orfs(reference_sequence=None, *, reference_id=None, contig=None, installed=True,
|
|
228
|
+
cache_root=None):
|
|
172
229
|
"""Load source-defined CDSs for one exactly matching viral DNA reference.
|
|
173
230
|
|
|
174
231
|
Parameters
|
|
@@ -183,6 +240,14 @@ def viral_orfs(reference_sequence=None, *, reference_id=None, contig=None):
|
|
|
183
240
|
contig : str, optional
|
|
184
241
|
The caller's name for this exact DNA in an alignment reference. The
|
|
185
242
|
original versioned source identity remains on every ORF's context.
|
|
243
|
+
installed : bool, default True
|
|
244
|
+
Also match the references of collections installed under ``cache_root``
|
|
245
|
+
(see :func:`viral_references`). An installed collection offers a source
|
|
246
|
+
CDS as an ORF only when its annotation is complete, translation starts
|
|
247
|
+
at the first base and the source claims no recoding; the others stay in
|
|
248
|
+
its transcriptome layer. Local files only; nothing is downloaded.
|
|
249
|
+
cache_root : path, optional
|
|
250
|
+
Where collections are installed; the default ORFdata cache otherwise.
|
|
186
251
|
|
|
187
252
|
Returns
|
|
188
253
|
-------
|
|
@@ -200,12 +265,19 @@ def viral_orfs(reference_sequence=None, *, reference_id=None, contig=None):
|
|
|
200
265
|
"""
|
|
201
266
|
if (reference_sequence is None) == (reference_id is None):
|
|
202
267
|
raise ValueError("Provide exactly one of reference_sequence or reference_id")
|
|
203
|
-
sequence = (viral_reference_sequence(reference_id
|
|
204
|
-
else str(reference_sequence).upper())
|
|
268
|
+
sequence = (viral_reference_sequence(reference_id, installed=installed, cache_root=cache_root)
|
|
269
|
+
if reference_id is not None else str(reference_sequence).upper())
|
|
205
270
|
fingerprint = hashlib.sha256(sequence.encode("ascii")).hexdigest()
|
|
206
271
|
data = _catalog()
|
|
207
272
|
matches = [row for row in data["references"] if row["sequence_sha256"] == fingerprint
|
|
208
273
|
and row["length"] == len(sequence)]
|
|
274
|
+
if not matches and installed:
|
|
275
|
+
from .viral_installed import installed_orfs, installed_references
|
|
276
|
+
|
|
277
|
+
found = [item for item in installed_references(cache_root)
|
|
278
|
+
if item.sequence_sha256 == fingerprint and item.length == len(sequence)]
|
|
279
|
+
if len(found) == 1:
|
|
280
|
+
return installed_orfs(found[0], sequence=sequence, contig=contig)
|
|
209
281
|
if len(matches) != 1:
|
|
210
282
|
raise ValueError("No unique released viral coding reference matches this DNA; "
|
|
211
283
|
"inspect viral_references() for available sequence identities")
|
|
@@ -227,8 +227,8 @@ def _show_coverage(args, parser):
|
|
|
227
227
|
rows = viral_panel_coverage(
|
|
228
228
|
available=available, virus=args.virus, search=args.search,
|
|
229
229
|
contexts=args.context, exclude_contexts=args.exclude_context,
|
|
230
|
-
context_match=args.context_match)
|
|
231
|
-
all_rows = viral_panel_coverage()
|
|
230
|
+
context_match=args.context_match, installed=False)
|
|
231
|
+
all_rows = viral_panel_coverage(installed=False)
|
|
232
232
|
except ValueError as error:
|
|
233
233
|
parser.fail(error)
|
|
234
234
|
if args.format == "json":
|
|
@@ -17,9 +17,11 @@ column dtype meaning
|
|
|
17
17
|
``genbank`` str the GenBank accession the panel lists, or ``""``
|
|
18
18
|
``pave_id`` str the PaVE reference the panel lists, or ``""``
|
|
19
19
|
``pave_notes`` str the panel's own note about that PaVE reference
|
|
20
|
-
``bundled_reference_id`` str the
|
|
20
|
+
``bundled_reference_id`` str the coding reference ``viral_orfs(reference_id=...)``
|
|
21
|
+
loads for this row, or ``""``
|
|
21
22
|
``coding_models`` Int64 how many source CDS models that reference carries
|
|
22
|
-
``status`` str ``source_cds_bundled
|
|
23
|
+
``status`` str ``source_cds_bundled``, ``source_cds_installed``,
|
|
24
|
+
``installed_without_cds`` or ``not_bundled``
|
|
23
25
|
``available`` bool whether ``bundled_reference_id`` is set
|
|
24
26
|
``contexts`` object tuple of context names this row belongs to
|
|
25
27
|
======================== ====== ======================================================
|
|
@@ -149,7 +151,7 @@ def normalize_viral_contexts(contexts, *, allow_unknown=False):
|
|
|
149
151
|
|
|
150
152
|
def viral_panel_coverage(panel=None, *, collection=None, available=None, virus=None,
|
|
151
153
|
search=None, contexts=None, exclude_contexts=None,
|
|
152
|
-
context_match="any"):
|
|
154
|
+
context_match="any", installed=True, cache_root=None):
|
|
153
155
|
"""Every inventory row of one collection, named by panel or by collection.
|
|
154
156
|
|
|
155
157
|
Returns a frame whose columns are :data:`COVERAGE_COLUMNS`, described in
|
|
@@ -157,6 +159,13 @@ def viral_panel_coverage(panel=None, *, collection=None, available=None, virus=N
|
|
|
157
159
|
ORFdata. This is an inventory and coverage query, not a selection of
|
|
158
160
|
protein sequences. The released coding references are available separately
|
|
159
161
|
through ``viral_references()``.
|
|
162
|
+
|
|
163
|
+
With ``installed=True`` (the default) a row whose genome is in the
|
|
164
|
+
collection installed under ``cache_root`` reports that installed reference:
|
|
165
|
+
``source_cds_installed`` when it offers ORFs, ``installed_without_cds``
|
|
166
|
+
when its source annotates none the bundle can place. The lookup is local;
|
|
167
|
+
``installed=False`` gives the packaged ledger alone. A row the bundled
|
|
168
|
+
catalogue already covers stays ``source_cds_bundled``.
|
|
160
169
|
"""
|
|
161
170
|
chosen = _collection_for(panel, collection)
|
|
162
171
|
if available is not None and type(available) is not bool:
|
|
@@ -171,6 +180,22 @@ def viral_panel_coverage(panel=None, *, collection=None, available=None, virus=N
|
|
|
171
180
|
raise ValueError("context_match must be 'any' or 'all'")
|
|
172
181
|
|
|
173
182
|
frame = _coverage(chosen)
|
|
183
|
+
if installed:
|
|
184
|
+
from .viral_installed import installed_coverage
|
|
185
|
+
|
|
186
|
+
held = installed_coverage(chosen, cache_root)
|
|
187
|
+
if held:
|
|
188
|
+
frame = frame.copy()
|
|
189
|
+
for position, row in frame.iterrows():
|
|
190
|
+
if row["bundled_reference_id"] != "" or row["abbreviation"] not in held:
|
|
191
|
+
continue
|
|
192
|
+
genome_id, models = held[row["abbreviation"]]
|
|
193
|
+
frame.loc[position, "coding_models"] = models
|
|
194
|
+
frame.loc[position, "status"] = ("source_cds_installed" if models
|
|
195
|
+
else "installed_without_cds")
|
|
196
|
+
if models:
|
|
197
|
+
frame.loc[position, "bundled_reference_id"] = genome_id
|
|
198
|
+
frame.loc[position, "available"] = True
|
|
174
199
|
keep = pd.Series(True, index=frame.index)
|
|
175
200
|
if selected:
|
|
176
201
|
match = any if context_match == "any" else all
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"""Viral coding references read from installed collections.
|
|
2
|
+
|
|
3
|
+
A collection installed with ``orfdata data fetch`` (or ``download viral``) is
|
|
4
|
+
the genome, transcriptome and proteome layers plus their tables. The bundled
|
|
5
|
+
catalogue answers ``viral_references()``, ``viral_orfs()`` and
|
|
6
|
+
``viral_panel_coverage()`` for HPV16; this module lets the same three
|
|
7
|
+
functions answer for every installed collection, from the bundle's own files
|
|
8
|
+
and with no second format. Lookup is offline: nothing here downloads, and a
|
|
9
|
+
collection that is not installed contributes nothing.
|
|
10
|
+
|
|
11
|
+
A source CDS is offered as an ORF only when it binds exactly: the annotation is
|
|
12
|
+
complete, translation starts at the first base, the source claims no recoding,
|
|
13
|
+
and the bases translate to the source protein from a start and stop codon the
|
|
14
|
+
source supports. The rest stay in the transcriptome layer, where PyEnsembl
|
|
15
|
+
still sees them, and ``coding_models`` counts only the ORFs offered. Today that
|
|
16
|
+
leaves out frameshifts and recoding (#65) and a CDS wrapping a circular origin,
|
|
17
|
+
such as HBV's polymerase (#66), which SourceRNA cannot yet hold.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import hashlib
|
|
21
|
+
import re
|
|
22
|
+
import warnings
|
|
23
|
+
from functools import lru_cache
|
|
24
|
+
from pathlib import Path
|
|
25
|
+
|
|
26
|
+
import pandas as pd
|
|
27
|
+
|
|
28
|
+
from .model import TranscriptORF
|
|
29
|
+
from .reference import ReferenceContext, canonical_species
|
|
30
|
+
from .rna import SourceRNA
|
|
31
|
+
|
|
32
|
+
_COMPLEMENT = str.maketrans("ACGT", "TGCA")
|
|
33
|
+
_DECLARED = ("alternative", "declared", "non_canonical")
|
|
34
|
+
_UNESTABLISHED = ("partial", "unknown")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def _bundles(cache_root, only=None):
|
|
38
|
+
"""Each installed collection (or just ``only``) with its opened files; unreadable ones are skipped."""
|
|
39
|
+
from . import viral_panel
|
|
40
|
+
from .viral_registry import viral_collections
|
|
41
|
+
|
|
42
|
+
found = []
|
|
43
|
+
for collection in (viral_collections() if only is None else (only,)):
|
|
44
|
+
species = canonical_species(collection.target_species)
|
|
45
|
+
try:
|
|
46
|
+
path = viral_panel._installed_bundle(cache_root, species, collection)
|
|
47
|
+
if path is None:
|
|
48
|
+
continue
|
|
49
|
+
files = viral_panel._existing_bundle(path, species=species, collection=collection)
|
|
50
|
+
except (ValueError, OSError) as error:
|
|
51
|
+
warnings.warn(f"Ignoring the installed {collection.name} viral references: {error}",
|
|
52
|
+
stacklevel=4)
|
|
53
|
+
continue
|
|
54
|
+
found.append((collection, files))
|
|
55
|
+
return tuple(found)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def _fasta(path):
|
|
59
|
+
sequences, name, parts = {}, None, []
|
|
60
|
+
with path.open() as stream:
|
|
61
|
+
for line in stream:
|
|
62
|
+
if line.startswith(">"):
|
|
63
|
+
if name is not None:
|
|
64
|
+
sequences[name] = "".join(parts).upper()
|
|
65
|
+
name, parts = line[1:].split()[0], []
|
|
66
|
+
else:
|
|
67
|
+
parts.append(line.strip())
|
|
68
|
+
if name is not None:
|
|
69
|
+
sequences[name] = "".join(parts).upper()
|
|
70
|
+
return sequences
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@lru_cache(maxsize=8)
|
|
74
|
+
def _tables(files):
|
|
75
|
+
"""Genome rows, transcript rows, exon paths and genome sequences of one bundle.
|
|
76
|
+
|
|
77
|
+
The bundle's checksums are verified once per process, the first time any of
|
|
78
|
+
its tables is read. A bundle is a versioned directory that is never edited, so
|
|
79
|
+
this is cached for the process; a replaced bundle is a new directory.
|
|
80
|
+
"""
|
|
81
|
+
from . import viral_panel
|
|
82
|
+
|
|
83
|
+
viral_panel._verify_checksums(files.path)
|
|
84
|
+
read = {"dtype": str, "sep": "\t", "keep_default_na": False}
|
|
85
|
+
genomes = pd.read_csv(files.genome_table, **read)
|
|
86
|
+
transcripts = pd.read_csv(files.transcript_table, **read)
|
|
87
|
+
exons = {}
|
|
88
|
+
with files.annotation_gtf.open() as stream:
|
|
89
|
+
for line in stream:
|
|
90
|
+
fields = line.rstrip("\n").split("\t")
|
|
91
|
+
if len(fields) == 9 and fields[2] == "exon":
|
|
92
|
+
attributes = dict(re.findall(r'(\w+) "([^"]*)"', fields[8]))
|
|
93
|
+
exons.setdefault(attributes["transcript_id"], []).append(
|
|
94
|
+
(int(attributes["exon_number"]), int(fields[3]), int(fields[4]), fields[6]))
|
|
95
|
+
# Exon numbers give transcript order, which differs from coordinate order
|
|
96
|
+
# for a minus-strand gene and for a gene joined across a circular origin.
|
|
97
|
+
exons = {name: (tuple((start, end) for _, start, end, _ in sorted(rows)), rows[0][3])
|
|
98
|
+
for name, rows in exons.items()}
|
|
99
|
+
sequences = _fasta(files.genome_fasta)
|
|
100
|
+
for row in genomes.itertuples():
|
|
101
|
+
found = sequences.get(row.genome_id, "")
|
|
102
|
+
if (len(found) != int(row.length_nt)
|
|
103
|
+
or hashlib.sha256(found.encode("ascii")).hexdigest() != row.genome_sha256):
|
|
104
|
+
raise ValueError(f"Viral genome {row.genome_id} does not match its table: {files.path}")
|
|
105
|
+
return genomes, transcripts, exons, sequences, _fasta(files.protein_fasta)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def _candidates(transcripts):
|
|
109
|
+
"""The transcripts worth binding: complete, starting at the first base, with no claimed recoding."""
|
|
110
|
+
return transcripts[(transcripts["annotation_complete"] == "yes")
|
|
111
|
+
& (transcripts["codon_start"] == "1")
|
|
112
|
+
& (transcripts["recoding"] == "")]
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _species(name):
|
|
116
|
+
return re.sub(r"[^a-z0-9]+", "_", name.lower()).strip("_")
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def _bind(files, genome_id, sequence, label):
|
|
120
|
+
"""Bind a genome's candidate CDSs; returns ``(orfs, skipped)``.
|
|
121
|
+
|
|
122
|
+
A CDS that does not translate exactly to its source protein is skipped and
|
|
123
|
+
named in ``skipped`` with the reason, so one odd feature does not make the
|
|
124
|
+
rest of the reference unusable and nothing is dropped without a record.
|
|
125
|
+
"""
|
|
126
|
+
genomes, transcripts, exons, _, proteins = _tables(files)
|
|
127
|
+
row = genomes[genomes["genome_id"] == genome_id].iloc[0]
|
|
128
|
+
context = ReferenceContext(
|
|
129
|
+
taxon_id=int(row.viral_taxon_id), species=_species(row["name"]), genome_build=genome_id,
|
|
130
|
+
annotation_name=files.collection, annotation_version=row.accession_version,
|
|
131
|
+
sequence_sha256=row.genome_sha256)
|
|
132
|
+
source = f"{files.collection} inventory {row.accession_version}"
|
|
133
|
+
orfs, skipped = [], []
|
|
134
|
+
for item in _candidates(transcripts[transcripts["genome_id"] == genome_id]).itertuples():
|
|
135
|
+
blocks, strand = exons[item.transcript_id]
|
|
136
|
+
coding = "".join(sequence[a - 1:b] if strand == "+" else
|
|
137
|
+
sequence[a - 1:b].translate(_COMPLEMENT)[::-1] for a, b in blocks)
|
|
138
|
+
try:
|
|
139
|
+
rna = SourceRNA(
|
|
140
|
+
id=f"{row.accession_version}:CDS:{item.protein_id}", sequence=coding,
|
|
141
|
+
reference=context, source=source, contig=label, strand=strand, exons=blocks,
|
|
142
|
+
gene_name=item.gene, biotype="source_CDS_fragment")
|
|
143
|
+
orf = TranscriptORF.at(
|
|
144
|
+
rna, 0, orf_id=item.protein_id, source=source,
|
|
145
|
+
protein=proteins[item.protein_id].removesuffix("*"),
|
|
146
|
+
translation_table=int(item.translation_table), orf_type="reference_CDS",
|
|
147
|
+
# How the source starts the CDS: a non-ATG start it declares is passed
|
|
148
|
+
# on, and a start it does not establish is read as an ordinary codon.
|
|
149
|
+
start_codon=item.start_codon if item.initiation in _DECLARED else None,
|
|
150
|
+
start_complete=item.initiation not in _UNESTABLISHED)
|
|
151
|
+
if orf.coding_sequence != coding or not orf.stop_complete:
|
|
152
|
+
raise ValueError("coding boundaries do not translate exactly")
|
|
153
|
+
except (ValueError, KeyError) as error:
|
|
154
|
+
skipped.append((item.protein_id, str(error)))
|
|
155
|
+
else:
|
|
156
|
+
orfs.append(orf)
|
|
157
|
+
return tuple(orfs), tuple(skipped)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
@lru_cache(maxsize=512)
|
|
161
|
+
def _placed(files, genome_id):
|
|
162
|
+
"""The ORFs and skipped CDSs of one genome under its own name; cached for the process."""
|
|
163
|
+
return _bind(files, genome_id, _tables(files)[3][genome_id], genome_id)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
@lru_cache(maxsize=8)
|
|
167
|
+
def _references_of(files, collection_name):
|
|
168
|
+
"""One bundle's references, built once per process."""
|
|
169
|
+
from .viral import ViralProduct, ViralReference
|
|
170
|
+
|
|
171
|
+
genomes, transcripts, _, sequences, _ = _tables(files)
|
|
172
|
+
catalogue = hashlib.sha256((files.path / "SHA256SUMS").read_bytes()).hexdigest()
|
|
173
|
+
references = []
|
|
174
|
+
for row in genomes.itertuples():
|
|
175
|
+
sequence = sequences[row.genome_id]
|
|
176
|
+
orfs, _ = _placed(files, row.genome_id)
|
|
177
|
+
held = int((transcripts["genome_id"] == row.genome_id).sum())
|
|
178
|
+
left = f"; {held - len(orfs)} of {held} source CDS not offered as ORFs" if held > len(orfs) else ""
|
|
179
|
+
references.append(ViralReference(
|
|
180
|
+
id=row.genome_id, species=_species(row.name), taxon_id=int(row.viral_taxon_id),
|
|
181
|
+
host_taxon_ids=tuple(int(value) for value in row.source_host_taxon_ids.split(",") if value),
|
|
182
|
+
host_source="", group="", virus_type=row.abbreviation, ictv_species="",
|
|
183
|
+
taxonomy_source=f"{collection_name} inventory", length=len(sequence),
|
|
184
|
+
sequence_md5=hashlib.md5(sequence.encode("ascii"), usedforsecurity=False).hexdigest(),
|
|
185
|
+
sequence_sha256=row.genome_sha256, native_to_reference_rotation=0,
|
|
186
|
+
source_accession=row.accession_version, source_sha256="", source_url="",
|
|
187
|
+
coding_models=len(orfs),
|
|
188
|
+
products=tuple(ViralProduct(orf.orf_id, orf.transcript.gene_name or "", "")
|
|
189
|
+
for orf in orfs),
|
|
190
|
+
scope=(f"Source CDS features of the installed {collection_name} collection "
|
|
191
|
+
f"({files.path.name}); not complete transcript models{left}"),
|
|
192
|
+
catalogue_sha256=catalogue, bundle=str(files.path)))
|
|
193
|
+
return tuple(references)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
def installed_references(cache_root=None):
|
|
197
|
+
"""Every reference of every installed collection, as :class:`ViralReference` rows.
|
|
198
|
+
|
|
199
|
+
A genome whose bases an earlier one already has is listed once, so an exact
|
|
200
|
+
sequence names one reference. A collection that is damaged is ignored with a
|
|
201
|
+
warning rather than failing the lookup.
|
|
202
|
+
"""
|
|
203
|
+
references, seen = [], set()
|
|
204
|
+
for collection, files in _bundles(cache_root):
|
|
205
|
+
try:
|
|
206
|
+
found = _references_of(files, collection.name)
|
|
207
|
+
except (ValueError, OSError, KeyError) as error:
|
|
208
|
+
warnings.warn(f"Ignoring the installed {collection.name} viral references: {error}",
|
|
209
|
+
stacklevel=4)
|
|
210
|
+
continue
|
|
211
|
+
for item in found:
|
|
212
|
+
if item.sequence_sha256 not in seen:
|
|
213
|
+
seen.add(item.sequence_sha256)
|
|
214
|
+
references.append(item)
|
|
215
|
+
return tuple(references)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def _files_at(bundle):
|
|
219
|
+
from . import viral_panel
|
|
220
|
+
from .viral_registry import viral_collections
|
|
221
|
+
|
|
222
|
+
for collection in viral_collections():
|
|
223
|
+
species = canonical_species(collection.target_species)
|
|
224
|
+
try:
|
|
225
|
+
return viral_panel._existing_bundle(
|
|
226
|
+
Path(bundle), species=species, collection=collection)
|
|
227
|
+
except (ValueError, OSError):
|
|
228
|
+
continue
|
|
229
|
+
raise ValueError(f"Not an installed viral reference collection: {bundle}")
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def installed_sequence(reference):
|
|
233
|
+
"""Checksum-verified bases of one installed reference."""
|
|
234
|
+
return _tables(_files_at(reference.bundle))[3][reference.id]
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def installed_orfs(reference, *, sequence=None, contig=None):
|
|
238
|
+
"""Source CDS paths of one installed reference, placed with SourceRNA and TranscriptORF.at."""
|
|
239
|
+
label = contig if contig is not None else reference.id
|
|
240
|
+
if not isinstance(label, str) or not label:
|
|
241
|
+
raise ValueError("contig must be a nonempty name")
|
|
242
|
+
files = _files_at(reference.bundle)
|
|
243
|
+
stored = _tables(files)[3][reference.id]
|
|
244
|
+
if (sequence is None or sequence == stored) and label == reference.id:
|
|
245
|
+
return _placed(files, reference.id)[0]
|
|
246
|
+
sequence = stored if sequence is None else sequence
|
|
247
|
+
return _bind(files, reference.id, sequence, label)[0]
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def installed_coverage(collection, cache_root=None):
|
|
251
|
+
"""For one collection's installed genomes: abbreviation -> (genome ID, ORFs offered).
|
|
252
|
+
|
|
253
|
+
Empty when the collection is not installed.
|
|
254
|
+
"""
|
|
255
|
+
found = {}
|
|
256
|
+
for _, files in _bundles(cache_root, only=collection):
|
|
257
|
+
for row in _tables(files)[0].itertuples():
|
|
258
|
+
found[row.abbreviation] = (row.genome_id, len(_placed(files, row.genome_id)[0]))
|
|
259
|
+
return found
|
|
@@ -1074,7 +1074,7 @@ def download_viral_references(
|
|
|
1074
1074
|
) from error
|
|
1075
1075
|
|
|
1076
1076
|
def build(directory):
|
|
1077
|
-
inventory = viral_panel_coverage(collection=collection.name)
|
|
1077
|
+
inventory = viral_panel_coverage(collection=collection.name, installed=False)
|
|
1078
1078
|
primaries = _primary_ledger(collection, inventory)
|
|
1079
1079
|
_write_bundle(directory, collection, inventory, primaries, timeout=timeout,
|
|
1080
1080
|
prefer_reference_molecule=prefer_reference_molecule,
|
|
@@ -1200,7 +1200,7 @@ def _selected_abbreviations(contexts, excluded_contexts, context_match, subsets)
|
|
|
1200
1200
|
"""The inventory entries a context and subset selection resolves to."""
|
|
1201
1201
|
inventory = viral_panel_coverage(
|
|
1202
1202
|
contexts=contexts or None, exclude_contexts=excluded_contexts or None,
|
|
1203
|
-
context_match=context_match)
|
|
1203
|
+
context_match=context_match, installed=False)
|
|
1204
1204
|
if subsets:
|
|
1205
1205
|
selected = list(viral_subset_abbreviations(subsets))
|
|
1206
1206
|
inventory = inventory[inventory["abbreviation"].isin(selected)]
|
|
@@ -1496,6 +1496,26 @@ def viral_annotation_survey(*, contexts=None, exclude_contexts=None, context_mat
|
|
|
1496
1496
|
})
|
|
1497
1497
|
|
|
1498
1498
|
|
|
1499
|
+
def viral_reference_context(reference_set: ViralReferenceFiles):
|
|
1500
|
+
"""The :class:`ReferenceContext` that declares what :func:`viral_genome` opens.
|
|
1501
|
+
|
|
1502
|
+
A PyEnsembl genome over viral contigs carries no species, so consumers that
|
|
1503
|
+
check a host reference against the analysis (vaxrank's ``reference_context``)
|
|
1504
|
+
need it stated. The context names the collection's *target* species, the
|
|
1505
|
+
analysis the set is for; it asserts no source host. It validates against the
|
|
1506
|
+
genome ``viral_genome(reference_set)`` returns.
|
|
1507
|
+
"""
|
|
1508
|
+
from .reference import ReferenceContext
|
|
1509
|
+
|
|
1510
|
+
collection = viral_collection(reference_set.collection)
|
|
1511
|
+
return ReferenceContext(
|
|
1512
|
+
taxon_id=reference_set.target_taxon_id,
|
|
1513
|
+
species=canonical_species(reference_set.target_species),
|
|
1514
|
+
genome_build=f"{collection.panel}-viral",
|
|
1515
|
+
annotation_name=f"orfdata-{collection.name}",
|
|
1516
|
+
annotation_version=bundle_version(collection))
|
|
1517
|
+
|
|
1518
|
+
|
|
1499
1519
|
def viral_genome(
|
|
1500
1520
|
reference_set: ViralReferenceFiles,
|
|
1501
1521
|
*,
|
|
@@ -40,7 +40,7 @@ def _registry():
|
|
|
40
40
|
raise ValueError("Unsupported viral subset metadata")
|
|
41
41
|
if not isinstance(data.get("subsets"), dict) or not isinstance(data.get("aliases"), dict):
|
|
42
42
|
raise ValueError("Invalid viral subset metadata")
|
|
43
|
-
known = set(viral_panel_coverage()["abbreviation"])
|
|
43
|
+
known = set(viral_panel_coverage(installed=False)["abbreviation"])
|
|
44
44
|
for name, record in data["subsets"].items():
|
|
45
45
|
required = {"title", "description", "abbreviations", "source_urls", "limitations"}
|
|
46
46
|
if not isinstance(name, str) or not isinstance(record, dict) or required - set(record):
|