Skip to content

Commit

Permalink
Merge pull request #5 from mbhall88/master
Browse files Browse the repository at this point in the history
Add fall back on SRA if ENA fails
  • Loading branch information
rpetit3 authored Jun 1, 2022
2 parents 256ee89 + 4fe5719 commit 5e353ff
Show file tree
Hide file tree
Showing 4 changed files with 431 additions and 257 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.fastq.gz
*.json
.idea
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Lots of help from the following blog posts:
# https://jcristharif.com/conda-docker-tips.html
# https://opensourcelibs.com/lib/micromamba-docker
# https://uwekorn.com/2021/03/01/deploying-conda-environments-in-docker-how-to-do-it-right.html
FROM mambaorg/micromamba:0.23.3

ENV PYTHONDONTWRITEBYTECODE=true

COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yml

RUN micromamba install -y --freeze-installed -n base -f /tmp/env.yml \
&& micromamba clean -afy \
&& find /opt/conda/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/ -follow -type f -name '*.pyc' -delete \
&& find /opt/conda/ -follow -type f -name '*.js.map' -delete

COPY --chown=$MAMBA_USER:$MAMBA_USER fastq-dl.py /bin/fastq-dl
ENV PATH "$MAMBA_ROOT_PREFIX/bin:$PATH"
10 changes: 10 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
channels:
- conda-forge
- bioconda
dependencies:
- pigz
- executor
- python >=3.6
- sra-tools >=2.9
- wget
- requests
Loading

0 comments on commit 5e353ff

Please sign in to comment.