Skip to content

Commit

Permalink
feat(IPVC-2386): create second docker-compose yaml for one off tasks,…
Browse files Browse the repository at this point in the history
… move workflow and script to misc directory, add misc directory to dockerfile
  • Loading branch information
bsgiles73 committed May 6, 2024
1 parent deaf12f commit 4a07607
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN pip install pysam
WORKDIR /opt/repos/uta/
COPY pyproject.toml ./
COPY etc ./etc
COPY misc ./misc
COPY sbin ./sbin
COPY src ./src
RUN pip install -e .[dev]
Expand Down
9 changes: 0 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ services:
- ${UTA_ETL_LOG_DIR}:/uta-extract/logs
working_dir: /opt/repos/uta
network_mode: host
uta-extract-historical:
image: uta-update
command: sbin/uta-extract-historical /ncbi-dir /uta-extract/work /uta-extract/logs
volumes:
- ${UTA_ETL_NCBI_DIR}:/ncbi-dir
- ${UTA_ETL_WORK_DIR}:/uta-extract/work
- ${UTA_ETL_LOG_DIR}:/uta-extract/logs
working_dir: /opt/repos/uta
network_mode: host
seqrepo-load:
image: uta-update
command: sbin/seqrepo-load /usr/local/share/seqrepo ${UTA_ETL_OLD_SEQREPO_VERSION} /seqrepo-load/work /seqrepo-load/logs
Expand Down
14 changes: 14 additions & 0 deletions misc/refseq-historical-backfill/docker-compose-backfill.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# docker compose file for the RefSeq historical backfill procedure

version: '3'

services:
uta-extract-historical:
image: uta-update
command: misc/refseq-historical-backfill/uta-extract-historical /ncbi-dir /uta-extract/work /uta-extract/logs
volumes:
- ${UTA_ETL_NCBI_DIR}:/ncbi-dir
- ${UTA_ETL_WORK_DIR}:/uta-extract/work
- ${UTA_ETL_LOG_DIR}:/uta-extract/logs
working_dir: /opt/repos/uta
network_mode: host
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ file_path="$relative_path/GCF_000001405.40-RS_2023_03_knownrefseq_alns.gff.gz"
download_ncbi_file $file_path $ncbi_dir

# extract intermediate files from genbank file
python sbin/ncbi_extract_gbff.py "$ncbi_dir/$relative_path/GCF_000001405.40-RS_2023_03_knownrefseq_rna.gbff.gz" \
python misc/refseq-historical-backfill/ncbi_extract_gbff.py \
"$ncbi_dir/$relative_path/GCF_000001405.40-RS_2023_03_knownrefseq_rna.gbff.gz" \
--output_dir "$working_dir" 2>&1 | tee "$log_dir/ncbi-parse-historical-ggbb.log"

# extract exonset intermediate file from gff file
Expand Down

0 comments on commit 4a07607

Please sign in to comment.