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
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.
...
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 nextflow run consgenome -profile conda -resume |
Step 5:
Launch the pipeline
Code Block |
---|
qsub launch.pbs |
Step 6:
Monitor on the Nextflow Tower
...
Step 7:
Once finished, examine the results in the results folder.
...