Skip to content Skip to footer

How to execute ONTvisc pipeline

Launch Tower Agent

Gadi and Setonix (HPC)

You need to start Tower Agent so that it can pick up the pipeline job when you launch it in Nextflow Tower. Follow the instructions in the How to set up/Launch Tower Agent portion of the guide.

Create a folder to which you will direct the execution of the pipeline

Gadi and Setonix (HPC)

You had to specify the Work directory (and optionally, the Launch directory) when you were adding the Compute Environment. Make sure these folders exist on the HPC.

Lyra (HPC)

Create folders where all the task work directories will be created (Work directory), and all the execution scripts, config files and logs will be stored (Launch directory). More information in the How to set up/Add a Compute Environment portion of the guide.

Launch the pipeline with the test configuration

Gadi and Setonix (Nextflow Tower)

In the Launchpad, select the ONTvisc pipeline you added in the How to set up/Add a pipeline portion of the guide and click Launch. You need to modify two fields before you click Launch.

Config profiles

Add the profile test in addition to singularity.

Pipeline parameters

When a test configuration is used, you do not need to specify any parameters. However, specifying the folder where the results will be generated is recommended. Copy and paste the following command and replace the directory.

outdir: <PATH WHERE YOU WANT THE RESULTS TO BE STORED>

Lyra (HPC)

Create a submission script in the Launch directory by copying and pasting the following command into your terminal (change the required paths first).

cat <<EOF > submit_test.sh
#!/bin/bash -l
#PBS -N test
#PBS -l select=1:ncpus=2:mem=4gb
#PBS -l walltime=24:00:00
#PBS -e <PATH TO THE ERROR FILE>
#PBS -o <PATH TO THE LOG FILE>

cd $PBS_O_WORKDIR
module load java
NXF_OPTS='-Xms1g -Xmx4g'

nextflow run eresearchqut/ontvisc \
	-profile singularity,test \
	--outdir <PATH WHERE YOU WANT THE RESULTS TO BE STORED>

EOF

Submit the script to the PBS scheduler by executing the command qsub submit_test.sh.

Monitoring

Nextflow Tower

Gadi, Setonix and Lyra

Tips on monitoring in the Seqera’s guide for Nextflow Tower

HPC

Gadi and Lyra

Execute the qstat -u <user-name> to see the pipeline’s progress.

Setonix

Execute the squeue -u <user-name> to see the pipeline’s progress.

Relaunching and resuming

Gadi and Setonix (Nextflow Tower)

Tips on relaunching and resuming the pipeline in the Seqera’s guide for Nextflow Tower

Lyra (HPC)

If you need to relaunch the pipeline, re-submit the script. Tips on resuming can be found in the two blog posts from Nextflow: Troubleshooting Nextflow resume and Demystifying Nextflow resume.

Results

The ONTvisc pipeline with the test configuration performs de novo assembly of the reads with Canu and compares the assembled contigs to a reference. If the pipeline is completed successfully, you should see the output files on HPC (and Nextflow Tower in the case of Gadi and Setonix).

HPC

Gadi, Setonix and Lyra

Follow the Output files/De novo assembly mode section of the ONTvisc pipeline’s wiki page to check what output should be expected.

Nextflow Tower

Gadi and Setonix

Three reports should be generated. Reports

Beyond test configuration

Other usage examples can be found on the GitHub Wiki/Running the pipeline page. The examples include Nextflow commands with the required parameters for each mode, e.g. Read classification analysis mode.