Start an LSF interactive job with pre-mounted volumes and docker:
LSF_DOCKER_VOLUMES="/storage1/fs1/dspencer/Active:/storage1/fs1/dspencer/Active /scratch1/fs1/dspencer:/scratch1/fs1/dspencer /storage1/fs1/timley/Active:/storage1/fs1/timley/Active $HOME:$HOME" bsub -G compute-dspencer -Is -g /mohamed/interactive -q general-interactive -R"select[mem>24000] rusage[mem=24000]" -M 24000000 -n 4 -a "docker(mdivr/nextflow:20230925)" /bin/bash -l
Configure your AWS credentials once per Nextflow environment:
nextflow secrets set AWS_ACCESS_KEY '<Your_Access_Key>'
nextflow secrets set AWS_SECRET_KEY '<Your_Secret_Key>'
# Verify that the secrets are correctly set
nextflow secrets list
Export the Dragen license credentials as environment variables:
export DRAGEN_USERNAME=<Username>
export DRAGEN_PASSWORD=<Password>
Execute the Nextflow workflow in your preferred mode:
Hybrid AWS/LSF:
NXF_HOME=${PWD}/.nextflow && \
nextflow run m-mahgoub/dragen-aws -r main -latest --dragen_username $DRAGEN_USERNAME --dragen_password $DRAGEN_PASSWORD -profile hybrid -bucket-dir s3://dspencer-dragen-data/tmp/ --outdir results
LSF-only:
NXF_HOME=${PWD}/.nextflow && \
nextflow run m-mahgoub/dragen-aws -r main -latest -profile ris --outdir results
Replace placeholders (<Username>
, <Password>
, <Your_Access_Key>
, <Your_Secret_Key>
) with actual values. Ensure AWS and LSF configurations are properly set before executing the workflows.