seqmat 0.1.55__tar.gz → 0.1.57__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.
- {seqmat-0.1.55/seqmat.egg-info → seqmat-0.1.57}/PKG-INFO +1 -1
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/__init__.py +1 -1
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/config.py +2 -2
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/utils.py +6 -9
- {seqmat-0.1.55 → seqmat-0.1.57/seqmat.egg-info}/PKG-INFO +1 -1
- {seqmat-0.1.55 → seqmat-0.1.57}/setup.py +1 -1
- {seqmat-0.1.55 → seqmat-0.1.57}/LICENSE +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/MANIFEST.in +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/README.md +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/examples/basic_usage.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/examples/data_inspection.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/requirements.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/cli.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/gene.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/lmdb_store.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/seqmat.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/sqlite_store.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat/transcript.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat.egg-info/SOURCES.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat.egg-info/dependency_links.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat.egg-info/entry_points.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat.egg-info/requires.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/seqmat.egg-info/top_level.txt +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/setup.cfg +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/tests/__init__.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/tests/test_gene.py +0 -0
- {seqmat-0.1.55 → seqmat-0.1.57}/tests/test_seqmat.py +0 -0
|
@@ -45,11 +45,11 @@ def get_prebuilt_data_base_url() -> str:
|
|
|
45
45
|
default pip-install downloads and build-from-sources conservation.
|
|
46
46
|
Resolution: SEQMAT_PREBUILT_DATA_BASE_URL env > config prebuilt_data_base_url > default (new bucket).
|
|
47
47
|
"""
|
|
48
|
-
env = os.environ.get("SEQMAT_PREBUILT_DATA_BASE_URL"
|
|
48
|
+
env = (os.environ.get("SEQMAT_PREBUILT_DATA_BASE_URL") or "").strip()
|
|
49
49
|
if env:
|
|
50
50
|
return env.rstrip("/")
|
|
51
51
|
config = load_config()
|
|
52
|
-
url = config.get("prebuilt_data_base_url"
|
|
52
|
+
url = (config.get("prebuilt_data_base_url") or "").strip()
|
|
53
53
|
if url:
|
|
54
54
|
return url.rstrip("/")
|
|
55
55
|
return _PREBUILT_DATA_BASE_URL_DEFAULT.rstrip("/")
|
|
@@ -592,7 +592,7 @@ def download_prebuilt_data(
|
|
|
592
592
|
"""
|
|
593
593
|
Download prebuilt genes.db and FASTA from the SeqMat S3 bucket.
|
|
594
594
|
Layout: {base}/{organism}/genes.db, {base}/{organism}/{organism}.fa.gz.
|
|
595
|
-
|
|
595
|
+
Conservation is not downloaded here; it is only fetched during build-from-sources.
|
|
596
596
|
"""
|
|
597
597
|
from .config import DEFAULT_ORGANISM_DATA
|
|
598
598
|
|
|
@@ -630,13 +630,7 @@ def download_prebuilt_data(
|
|
|
630
630
|
|
|
631
631
|
files["genes_db"] = _download_or_raise(genes_db_url, base_path, is_gz=False)
|
|
632
632
|
files["fasta_file"] = _download_or_raise(fasta_gz_url, base_path, is_gz=True)
|
|
633
|
-
files["cons_file"] = None
|
|
634
|
-
for ext in (".db", ".pkl"):
|
|
635
|
-
try:
|
|
636
|
-
files["cons_file"] = download(f"{base_url}/{organism}/conservation{ext}", base_path, skip_existing=skip_existing)
|
|
637
|
-
break
|
|
638
|
-
except Exception:
|
|
639
|
-
continue # Conservation optional for prebuilt path
|
|
633
|
+
files["cons_file"] = None # Conservation only downloaded during build-from-sources
|
|
640
634
|
return files
|
|
641
635
|
|
|
642
636
|
|
|
@@ -751,7 +745,10 @@ def setup_genomics_data(
|
|
|
751
745
|
config_paths['fasta_full_genome'] = str(files['fasta_file'])
|
|
752
746
|
cons_data = None
|
|
753
747
|
if files['cons_file'] is not None:
|
|
754
|
-
|
|
748
|
+
try:
|
|
749
|
+
cons_data = load_conservation(files['cons_file'])
|
|
750
|
+
except Exception:
|
|
751
|
+
cons_data = None # Invalid or empty conservation file; build without it
|
|
755
752
|
annotation_jobs = n_jobs if n_jobs is not None else max(1, cpu_count() - 1)
|
|
756
753
|
retrieve_and_parse_ensembl_annotations(
|
|
757
754
|
base_path,
|
|
@@ -8,7 +8,7 @@ long_description = (this_directory / "README.md").read_text()
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="seqmat",
|
|
11
|
-
version="0.1.
|
|
11
|
+
version="0.1.57",
|
|
12
12
|
author="Nicolas Lynn Vila",
|
|
13
13
|
author_email="nicolasalynn@gmail.com",
|
|
14
14
|
description="Lightning-fast gene manipulation and analysis library.",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|