tools: repository names Trinity
Browse files
tools/colab_scidata_worker.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
"""Colab worker: mirror the two largest free-egress sources into STAR-future/
|
| 2 |
|
| 3 |
Run inside Colab (free egress), after `HF_TOKEN` is available as `TOK`:
|
| 4 |
-
exec(open(hf_hub_download('STAR-future/
|
| 5 |
|
| 6 |
* PubChem Compound SDF (~350 *.sdf.gz): downloaded and uploaded in batches of ~BATCH_GB, so the Colab disk never fills.
|
| 7 |
* PDB mmCIF (~1,100 two-letter folders, ~240k files): packed into tar shards of ~BATCH_GB (HF does badly with
|
|
@@ -20,7 +20,7 @@ from pathlib import Path
|
|
| 20 |
|
| 21 |
from huggingface_hub import HfApi, hf_hub_download
|
| 22 |
|
| 23 |
-
REPO = "STAR-future/
|
| 24 |
WORK = Path("/content/scidata")
|
| 25 |
BATCH_GB = float(os.environ.get("SCIDATA_BATCH_GB", "25"))
|
| 26 |
PUBCHEM = "https://ftp.ncbi.nlm.nih.gov/pubchem/Compound/CURRENT-Full/SDF/"
|
|
|
|
| 1 |
+
"""Colab worker: mirror the two largest free-egress sources into STAR-future/Trinity-SciData, in batches.
|
| 2 |
|
| 3 |
Run inside Colab (free egress), after `HF_TOKEN` is available as `TOK`:
|
| 4 |
+
exec(open(hf_hub_download('STAR-future/Trinity-SciData', 'tools/colab_scidata_worker.py', repo_type='dataset', token=TOK)).read())
|
| 5 |
|
| 6 |
* PubChem Compound SDF (~350 *.sdf.gz): downloaded and uploaded in batches of ~BATCH_GB, so the Colab disk never fills.
|
| 7 |
* PDB mmCIF (~1,100 two-letter folders, ~240k files): packed into tar shards of ~BATCH_GB (HF does badly with
|
|
|
|
| 20 |
|
| 21 |
from huggingface_hub import HfApi, hf_hub_download
|
| 22 |
|
| 23 |
+
REPO = "STAR-future/Trinity-SciData"
|
| 24 |
WORK = Path("/content/scidata")
|
| 25 |
BATCH_GB = float(os.environ.get("SCIDATA_BATCH_GB", "25"))
|
| 26 |
PUBCHEM = "https://ftp.ncbi.nlm.nih.gov/pubchem/Compound/CURRENT-Full/SDF/"
|