Skip to content

Commit 8cdc61d

Browse files
authored
FlashPCA projection fix for single sample Projection (#9)
1 parent 9dd1f4e commit 8cdc61d

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

ImputationPipeline/ScoringPart.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ task ProjectArray {
203203
}
204204

205205
runtime {
206-
docker: "skwalker/flashpca:v1"
206+
docker: "quay.io/ckachuli/flashpca@sha256:85e9ee91bc552e46a0d69cc851b893419c8de6588c696458fc770eee526e381d" # a special version of flashpca which allows to project a single sample without erroring out at an unnecessary check
207207
disks: "local-disk 400 HDD"
208208
memory: mem + " GB"
209209
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM ubuntu:bionic
2+
RUN apt-get update && \
3+
apt-get -y install python2.7 python-pip libboost1.62-all-dev \
4+
libeigen3-dev git gnupg2 sudo wget ca-certificates
5+
RUN echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' \
6+
> /etc/apt/sources.list.d/cran.list
7+
RUN apt-key adv --keyserver keyserver.ubuntu.com \
8+
--recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
9+
RUN apt-get update
10+
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata
11+
RUN ln -fs /usr/share/zoneinfo/Australia/Melbourne /etc/localtime && \
12+
dpkg-reconfigure --frontend noninteractive tzdata
13+
RUN apt-get install -y r-base r-base-dev
14+
RUN apt-get install -y vim
15+
RUN useradd -m flashpca-user
16+
RUN chpasswd flashpca-user:password
17+
WORKDIR /home/flashpca-user
18+
USER flashpca-user
19+
RUN wget https://github.com/yixuan/spectra/archive/v0.8.1.tar.gz && \
20+
tar xvf v0.8.1.tar.gz
21+
ADD https://api.github.com/repos/kachulis/flashpca/git/refs/heads/ck_project_single_sample \
22+
version.json
23+
RUN git clone https://github.com/kachulis/flashpca.git
24+
RUN cd flashpca && \
25+
git checkout ck_project_single_sample &&\
26+
make all \
27+
EIGEN_INC=/usr/include/eigen3 \
28+
BOOST_INC=/usr/include/boost \
29+
SPECTRA_INC=$HOME/spectra-0.8.1/include &&\
30+
make flashpca_x86-64 \
31+
EIGEN_INC=/usr/include/eigen3 \
32+
BOOST_INC=/usr/include/boost \
33+
SPECTRA_INC=$HOME/spectra-0.8.1/include
34+
#RUN R -e "install.packages(c('abind', 'RcppEigen', 'BH', 'RSpectra'))"
35+
36+

0 commit comments

Comments
 (0)