-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from Australian-Structural-Biology-Computing/…
…add-helixfold3 Add HelixFold3
- Loading branch information
Showing
20 changed files
with
910 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Config file for defining DSL2 per module options and publishing paths | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Available keys to override module options: | ||
ext.args = Additional arguments appended to command in module. | ||
ext.args2 = Second set of arguments appended to command in module (multi-tool modules). | ||
ext.args3 = Third set of arguments appended to command in module (multi-tool modules). | ||
ext.prefix = File name prefix for output files. | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
process { | ||
withName: 'GUNZIP|COMBINE_UNIPROT|DOWNLOAD_PDBMMCIF|ARIA2_PDB_SEQRES' { | ||
publishDir = [ | ||
path: {"${params.outdir}/DBs/helixfold3/"}, | ||
mode: 'symlink', | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
] | ||
} | ||
|
||
withName: 'RUN_HELIXFOLD3' { | ||
if(params.use_gpu) { accelerator = 1 } | ||
publishDir = [ | ||
path: { "${params.outdir}/helixfold3/" }, | ||
mode: 'copy', | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }, | ||
pattern: '*.*' | ||
] | ||
} | ||
|
||
withName: 'NFCORE_PROTEINFOLD:HELIXFOLD3:MULTIQC' { | ||
publishDir = [ | ||
path: { "${params.outdir}/multiqc" }, | ||
mode: 'copy', | ||
saveAs: { filename -> filename.equals('versions.yml') ? null : "helixfold3_$filename" } | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Nextflow config file for running minimal tests | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Defines input files and everything required to run a fast and simple pipeline test. | ||
Use as follows: | ||
nextflow run nf-core/proteinfold -profile test_helixfold3,<docker/singularity> --outdir <OUTDIR> | ||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
stubRun = true | ||
|
||
// Limit resources so that this can run on GitHub Actions | ||
process { | ||
resourceLimits = [ | ||
cpus: 4, | ||
memory: '15.GB', | ||
time: '1.h' | ||
] | ||
} | ||
|
||
params { | ||
config_profile_name = 'Test profile' | ||
config_profile_description = 'Minimal test dataset to check pipeline function' | ||
|
||
// Input data to test helixfold3 | ||
mode = 'helixfold3' | ||
helixfold3_db = "${projectDir}/assets/dummy_db_dir" | ||
input = params.pipelines_testdata_base_path + 'proteinfold/testdata/samplesheet/v1.2/samplesheet.csv' | ||
} | ||
|
||
process { | ||
withName: 'RUN_HELIXFOLD3' { | ||
container = 'biocontainers/gawk:5.1.0' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 | ||
|
||
LABEL Author="[email protected]" \ | ||
title="nfcore/proteinfold_helixfold3" \ | ||
Version="0.9.0" \ | ||
description="Docker image containing all software requirements to run the RUN_HELIXFOLD3 module using the nf-core/proteinfold pipeline" | ||
|
||
ENV PYTHONPATH="/app/helixfold3:$PYTHONPATH" \ | ||
PATH="/conda/bin:/app/helixfold3:$PATH" \ | ||
PYTHON_BIN="/conda/envs/helixfold/bin/python3.9" \ | ||
ENV_BIN="/conda/envs/helixfold/bin" \ | ||
OBABEL_BIN="/conda/envs/helixfold/bin" | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y wget git && \ | ||
wget -q -P /tmp "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" && \ | ||
bash /tmp/Miniforge3-$(uname)-$(uname -m).sh -b -p /conda && \ | ||
rm -rf /tmp/Miniforge3-$(uname)-$(uname -m).sh /var/lib/apt/lists/* && \ | ||
apt-get autoremove -y && apt-get clean -y | ||
|
||
RUN git clone --single-branch --branch dev --depth 1 --no-checkout https://github.com/PaddlePaddle/PaddleHelix.git /app/helixfold3 && \ | ||
cd /app/helixfold3 && \ | ||
git sparse-checkout init --cone && \ | ||
git sparse-checkout set apps/protein_folding/helixfold3 && \ | ||
git checkout dev && \ | ||
mv apps/protein_folding/helixfold3/* . && \ | ||
rm -rf apps | ||
|
||
COPY environment_nfcore-proteinfold_helixfold3.yaml /app/helixfold3/ | ||
RUN /conda/bin/mamba env create --file=/app/helixfold3/environment_nfcore-proteinfold_helixfold3.yaml && \ | ||
/conda/bin/mamba install -y -c bioconda aria2 hmmer==3.3.2 kalign2==2.04 hhsuite==3.3.0 -n helixfold && \ | ||
/conda/bin/mamba install -y -c conda-forge openbabel -n helixfold && \ | ||
/conda/bin/mamba clean --all --force-pkgs-dirs -y && \ | ||
rm -rf /root/.cache && \ | ||
apt-get autoremove -y && apt-get remove --purge -y wget git && apt-get clean -y |
35 changes: 35 additions & 0 deletions
35
dockerfiles/environment_nfcore-proteinfold_helixfold3.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: helixfold | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- nvidia | ||
- biocore | ||
|
||
dependencies: | ||
- python=3.9 | ||
- cuda-toolkit=12.0 | ||
- cudnn=8.4.0 | ||
- nccl=2.14 | ||
- libgcc | ||
- libgomp | ||
- pip | ||
- aria2 | ||
- hmmer==3.4 | ||
- kalign2==2.04 | ||
- hhsuite==3.3.0 | ||
- openbabel | ||
- pip: | ||
- paddlepaddle-gpu==2.6.1 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html | ||
- absl-py==0.13.0 | ||
- biopython==1.79 | ||
- chex==0.0.7 | ||
- dm-haiku==0.0.4 | ||
- dm-tree==0.1.6 | ||
- docker==5.0.0 | ||
- immutabledict==2.0.0 | ||
- jax==0.2.14 | ||
- ml-collections==0.1.0 | ||
- pandas==1.3.4 | ||
- scipy==1.9.0 | ||
- rdkit-pypi==2022.9.5 | ||
- posebusters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.