-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (32 loc) · 1.57 KB
/
Copy pathDockerfile
File metadata and controls
43 lines (32 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM bioconductor/bioconductor_docker:devel
# Update apt-get
RUN apt-get update
# Set python env
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install uv
RUN uv pip install torch==2.3.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
# RUN uv pip install git+https://github.com/databio/bedboss.git@dev#egg=bedboss
RUN uv pip install bedboss
RUN bedboss install-requirements
#RUN R -e "options(timeout = 2000); install.packages('http://big.databio.org/GenomicDistributionsData/GenomicDistributionsData_0.0.2.tar.gz', repos=NULL, type='source')"
## Download bedToBigBed binary from UCSC
#RUN wget -O /usr/local/bin/bedToBigBed http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedToBigBed \
# && chmod +x /usr/local/bin/bedToBigBed \
## Verify installation
#RUN bedToBigBed 2>&1 | grep "bedToBigBed"
# -p flag creates the directory if it doesn't exist
RUN mkdir -p /workdir/output
COPY ./production/config.yaml /workdir/config.yaml
## docker dosn't see refgenie from terminal if not installed like this:
#RUN pip install refgenie
#
## Configure refgenie:
#RUN refgenie init -c /workdir/refgenie/genome_config.yaml
#ENV REFGENIE="/workdir/refgenie/"
#
#RUN refgenie pull hg38/fasta --skip-read-lock -c /workdir/refgenie/genome_config.yaml
#RUN refgenie pull mm10/fasta --skip-read-lock -c /workdir/refgenie/genome_config.yaml
#RUN refgenie pull hg19/fasta --skip-read-lock -c /workdir/refgenie/genome_config.yaml
#CMD ["bash"]
CMD ["sh", "-c", "bedboss reprocess-all --bedbase-config /workdir/config.yaml --outfolder /workdir/output --limit ${UPLOAD_LIMIT:-1}"]