Goal
Enable the study of new strains of Dengue viruses by producing de novo assembled genomic scaffolds, comparison to reference genomes, variant calling and generation of a reference guided consensus genome.
Pre-requisites
Nextflow Nextflow nf nextflow quick start
Basic unix command line knowledge (example: https://researchcomputing.princeton.edu/education/external-online-resources/linux ; https://swcarpentry.github.io/shell-novice/ )
Familiarity with one unix text editors (example Vi/Vim or Nano):
ConsGenome workflow
Installing
The nextflow based ConsGenome workflow is available on the HPC. To download a copy of the workflow to your home folder the following steps are needed on the HPC
Code Block |
---|
module load java nextflow pull file:///work/pipelines/eresearch/consgenome.git |
Running the pipeline
Step 1:
Create a folder to hold the output of the pipeline. The results folder will be created here.
Step 2:
Prepare the index.csv file. This file will contain a list of sample ids and the full path to the paired samples. Read 1 and Read 2 must be specified separately.
...
Code Block | ||
---|---|---|
| ||
sampleid,read1,read2 sample01,/full/path/to/sample01_r1.fq.gz,/full/path/to/sample01_r2.fq.gz |
Step 3:
Create a nextflow.config file (if needed). If you need to override any of the pipeline defaults, put them in this file.
Code Block |
---|
params { genome = "/path/to/genome/reference.fa" } |
Step 4:
Create a PBS launch script. I.e.. Copy this into launch.pbs
Code Block |
---|
#!/bin/bash -l
#PBS -N jobname
#PBS -l walltime=48:00:00
#PBS -l select=1:ncpus=1:mem=5gb
#PBS -m abe
cd $PBS_O_WORKDIR
NXF_OPTS='-Xms1g -Xmx4g'
module load java
singularity remote use QUT
nextflow run consgenome -resume
singularity remote use SylabsCloud
chmod -R g+rwX results/
chmod -R g+rwX work/ |
If you wish to use the conda version of the pipeline use this script:
Code Block |
---|
#!/bin/bash -l
#PBS -N jobname
#PBS -l walltime=48:00:00
#PBS -l select=1:ncpus=1:mem=5gb
#PBS -m abe
cd $PBS_O_WORKDIR
NXF_OPTS='-Xms1g -Xmx4g'
module load java
nextflow run consgenome -profile conda -resume
chmod -R g+rwX results/
chmod -R g+rwX work/ |
Step 5:
Launch the pipeline
Code Block |
---|
qsub launch.pbs |
see the progress of the job
Code Block |
---|
qjobs
#or
qstat -u $USER |
Step 6:
Monitor on the Nextflow Tower
...
Code Block |
---|
vi ~/.nextflow/config #or do the following vi $HOME/.nextflow/config |
Step 7:
Once finished, examine the results in the results folder.
...