Skip to content

Commit e370bb7

Browse files
update conda installation
1 parent 6435bf7 commit e370bb7

File tree

1 file changed

+14
-24
lines changed

1 file changed

+14
-24
lines changed

README.md

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -309,38 +309,28 @@ INPUT_DIR="[YOUR_INPUT_FOLDER]" # e.g. ./input
309309
OUTPUT_DIR="[YOUR_OUTPUT_FOLDER]" # e.g. ./output
310310
THREADS="[MAXIMUM_THREADS]" # e.g. 8
311311

312-
# create and activate an environment named clair3
313-
conda create -n clair3 python=3.9.0 -y
312+
# create and activate an environment named clair3 (require tensorflow version <2.16.1)
313+
conda create -c conda-forge -c bioconda -n clair3 python tensorflow=2.15.0 whatshap samtools parallel -y
314314
source activate clair3
315315

316-
# install pypy and packages in the environemnt
317-
conda install -c conda-forge pypy3.6 -y
318-
pypy3 -m ensurepip
319-
pypy3 -m pip install mpmath==1.2.1
320-
321-
# install python packages in environment
322-
conda install -c conda-forge tensorflow==2.8.0 -y
323-
conda install -c conda-forge pytables -y
324-
conda install -c anaconda pigz cffi==1.14.4 -y
325-
conda install -c conda-forge parallel=20191122 zstd -y
326-
conda install -c conda-forge -c bioconda samtools=1.15.1 -y
327-
conda install -c conda-forge -c bioconda whatshap=1.7 -y
328-
conda install -c conda-forge xz zlib bzip2 automake curl -y
329-
# tensorflow-addons is required in training
330-
pip install tensorflow-addons
316+
# install other packages to run C in environment
317+
conda install -c conda-forge xz zlib bzip2 automake curl pigz cffi make gcc g++ -y
331318

332-
# clone Clair3
319+
# clone Clair3 and compile longphase and cffi library for c implement
320+
cd ${HOME}
333321
git clone https://github.com/HKU-BAL/Clair3.git
334322
cd Clair3
335-
336-
# compile samtools, longphase and cffi library for c implement
337-
# after building, longphase binary is in `Clair3` folder
338323
source activate clair3 && make PREFIX=${CONDA_PREFIX}
339324

325+
# install pypy
326+
cd ${CONDA_PREFIX}/bin
327+
wget https://downloads.python.org/pypy/pypy3.10-v7.3.19-linux64.tar.bz2 && tar -jxvf ${CONDA_PREFIX}/bin/pypy3.10-v7.3.19-linux64.tar.bz2
328+
ln -sf pypy3.10-v7.3.19-linux64/bin/pypy3 ${CONDA_PREFIX}/bin/pypy3
329+
340330
# download pre-trained models
341-
mkdir models
342-
wget http://www.bio8.cs.hku.hk/clair3/clair3_models/clair3_models.tar.gz
343-
tar -zxvf clair3_models.tar.gz -C ./models
331+
cd ${HOME}/Clair3 && mkdir models
332+
wget http://www.bio8.cs.hku.hk/clair3/clair3_models/clair3_models.tar.gz && tar -zxvf clair3_models.tar.gz -C ./models
333+
344334

345335
# run clair3
346336
MODEL_NAME="[YOUR_MODEL_NAME]" # e.g. r1041_e82_400bps_sup_v500

0 commit comments

Comments
 (0)