Prepared by the eResearch Office, QUT.
...
subject sex status sample lane fastq1 fastq2
Example sample.tsv
Code Block |
---|
Subject01 XX 0 Sample01 1 /work/group/data/subject01-sample01_R1.fastq.gz /work/group/data/subject01-sample01_R2.fastq.gz Subject02 XX 0 Sample01 1 /work/group/data/subject02-sample01_R1.fastq.gz /work/group/data/subject02-sample01_R2.fastq.gz |
...
Code Block |
---|
nextflow run /nf-cire/sarek -profile singularity --input 'input.tsv' --genome 'GRCh38' --tools 'HaplotypeCaller,mpileup,snpEFF' |
Or, create a nextflow.config file to store the options in a different place.
...
In the folder you have created for this run create launch.pbs
Code Block |
---|
#!/bin/bash -l #PBS -N MySarekRun #PBS -l walltime=168:00:00 #PBS -l select=1:ncpus=1:mem=5gb cd $PBS_O_WORKDIR NXF_OPTS='-Xms1g -Xmx4g' module load java nextflow run nf-core/sarek |
...
Code Block |
---|
#!/bin/bash -l #PBS -N MySarekRun #PBS -l walltime=168:00:00 #PBS -l select=1:ncpus=1:mem=5gb cd $PBS_O_WORKDIR NXF_OPTS='-Xms1g -Xmx4g' module load java #specify the nextflow version to use to run the workflow export NXF_VER=22.06.1-edge nextflow run nf-core/sarek -profile singularity \ --input sample.tsv -name GRCh38_FBS1_LNCAP \ --genome GRCh38 --tools HaplotypeCaller,snpEff,VEP \ --generate_gvcf \ -r 3.1.1 |
Submitting the job
Once you have created the folder for the run, the input.tsv file, nextflow.config and launch.pbs you are ready to submit.
...