A Nextflow pipeline based on ImmuneBuilder.
Follow this to install Nextflow: https://www.nextflow.io/docs/latest/getstarted.html
Follow the distribution specific installation instructions on the docker site:
https://docs.docker.com/engine/install/
nf-immunebuilder requires that the user be added to the docker group. Follow the "Manage Docker as a non-root user" post installation instructions here:
https://docs.docker.com/engine/install/linux-postinstall/
Then optionally pull the docker image:
docker pull ghcr.io/juyeongkim/immunebuilder:latestIf the docker image is not pulled, it will be pulled when the pipeline is run.
nextflow pull juyeongkim/nf-immunebuilderDownloaded pipeline are stored in the folder $HOME/.nextflow/assets.
| Parameter | Description |
|---|---|
--input |
Input directory with FASTA files (required) |
--output |
Output directorty to store PDB files (required) |
--max_retries |
Maximum number of time to execute ImmuneBuilder after failing refinement step with OpenMM (optional; default: 5) |
--save_embedding |
Save embedding numpy array as npy file (optional; default: false) |
cd /where/you/want/to/store/logs/and/intermediate/files
nextflow pull juyeongkim/nf-immunebuilder
nextflow run juyeongkim/nf-immunebuilder -r main --input /your/input/dir --output /your/output/dir --max_retries 10 --save_embedding trueAlternatively, you can run the pipeline on HPC with slurm. First, load the environment modules if they are available. If not, please follow the Apptainer and Nextflow documentation to install them first.
module load Apptainer/1.1.6 # newer versions might not work!
module load Nextflow
cd /where/you/want/to/store/logs/and/intermediate/files
nextflow pull juyeongkim/nf-immunebuilder
nextflow run juyeongkim/nf-immunebuilder -r main -profile cluster --input /your/input/dir --output /your/output/dir --max_retries 10 --save_embedding true# Pull docker image from GitHub
docker pull ghcr.io/juyeongkim/immunebuilder:latest
# Or build docker image
git clone https://github.com/juyeongkim/nf-immunebuilder.git
cd nf-immunebuilder
docker build -t ghcr.io/juyeongkim/immunebuilder:latest .cd /WHERE/YOUR/FASTA/FILES/ARE
docker run --volume $PWD:/data -it ghcr.io/juyeongkim/immunebuilder:latestcd /data
# your fasta file should have this format: https://github.com/brennanaba/ImmuneBuilder/tree/main#fasta-formatting
ABodyBuilder2 -v --fasta_file yourAntibody.fasta
cat ABodyBuilder2_output.pdb # default outpute file name