Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Needed to add a few hacks to the WDL and submit call to get things to work for the collections containers. When mounting works with JAWS they can be removed Example run: ``` In [2]: genomes = [ ...: "test-bucket/collections_image_test/NONE/CDM/FastGenomics/GCA_000008 ...: 085.1/GCA_000008085.1_ASM808v1_genomic.fna.gz", ...: "test-bucket/collections_image_test/NONE/CDM/FastGenomics/GCA_000010 ...: 565.1/GCA_000010565.1_ASM1056v1_genomic.fna.gz", ...: "test-bucket/collections_image_test/NONE/CDM/FastGenomics/GCA_000145 ...: 985.1/GCA_000145985.1_ASM14598v1_genomic.fna.gz", ...: "test-bucket/collections_image_test/NONE/CDM/FastGenomics/GCA_000147 ...: 015.1/GCA_000147015.1_ASM14701v1_genomic.fna.gz", ...: ] In [3]: genomess3 = [ ...: { ...: "file": f, ...: "data_id": f.split("/")[-1].split("_ASM")[0], ...: } ...: for f in genomes ...: ] In [4]: res = requests.post("http://localhost:5000/jobs", headers={"Authorizatio ...: n": f"Bearer {token_ci}"}, json={ ...: "cluster": "perlmutter-jaws", ...: "image": "ghcr.io/kbase/collections:checkm2_0.1.6", ...: "params": { ...: "environment": { ...: "DATA_ID_FILE": ...: { ...: "type": "manifest_file", ...: "manifest_file_format": "data_ids", ...: "manifest_file_header": "genome_id", ...: }, ...: "ENV": "NONE", ...: "KBASE_COLLECTION": "CDM", ...: "SOURCE_VER": "FastGenomics", ...: "LOAD_VER": "FastGenomics.1", ...: "ROOT_DIR": ".", ...: "JOB_ID": {"type": "container_number"}, ...: "THREADS_PER_TOOL_RUN": "4", ...: "SOURCE_FILE_EXT": ".fna.gz", ...: # Hack until mounting works ...: "CHECKM2DB": "/refdata/refdata/checkm2/1.0.1/uniref100.KO.1. ...: dmnd" ...: } ...: }, ...: "input_files": genomess3, ...: "input_roots": ["test-bucket/collections_image_test"], ...: "output_dir": "test-bucket/collections_image_test_out", ...: "runtime": 600, ...: "num_containers": 3, ...: "memory": "100GB", ...: }) ```
- Loading branch information