Licence: GNU General Public License v3.0 (copy provided in directory)
Author: Tom van Wijk
Contact: [email protected]
Pipeline to perform SNP calling on raw sequence data. Currently only supports illumina paired-end read data and supplied with a Salmonella Dublin reference genome.
- Linux operating system. This software is developed on Linux Ubuntu 16.04
Experiences when using different operating systems may vary. - python 2.7.x
- python libraries as listed in the import section of mothur_amplicon_pipeline.py
- erne v2.1.1 or newer
- Burrows-Wheels Aligner v0.7.12 or newer
- Samtools v0.1.19 or newer
- Picard Tools v2.18.7 or newer
- VarScan 2.3.9 or newer
- Clone the SNP_pipeline repository to the desired location on your system.
git clone https://github.com/Papos92/SNP_pipeline.git
- Add the location of the SNP_pipeline directory to the PATH variable:
export PATH=$PATH:/path/to/SNP_pipeline
(It is recommended to add this command to your ~/.bashrc file) - Create path variable SNP_REF to the SNP_pipeline directory:
export SNP_REF=/path/to/SNP_pipeline
(It is recommended to add this command to your ~/.bashrc file) - Create path variable PICARD to picard.jar:
export PICARD=/path/to/picard.jar
(It is recommended to add this command to your ~/.bashrc file) - Create path variable VARSCAN to VarScan.vX.X.X.jar:
export VARSCAN=/path/to/VarScan.vX.X.X.jar
(It is recommended to add this command to your ~/.bashrc file)
Start the pipeline with the following command:
snp_pipeline.py -i 'inputdir' -o 'outputdir' -t 'threads' -x 'savetemp' -r 'reference'
-
'inputdir': location of input directory. (required)
Should only contain either the uncompressed (.fastq) or compressed (.fastq.gz) sequence files containing the raw sequences of the forward and reverse reads. For each sample, these fastq files need to be named with an '_R1' or '_R2' tag respectively and be furthermore identical. The data is expected to be free of primer-, barcode- and adapter sequences. Quality trimming is performed by the pipeline. -
'outputdir': location of output directory.
Default = subdirectory in inputdir -
'threads': Number of threads (virtual cpu cores) to be used.
Default = 8. -
'savetemp': Set to true so save the temporary files and directories generated by the pipeline.
default = false -
'reference': Set the reference genome to be used for creating alignments and calling SNP's.
default = NC_011205. (Salmonella Dublin)
It is possible to add your own reference genomes by adding the genomes to
the reference_file directory in .fasta format and run the following commands:
- Index the reference genomes using BWA:
bwa index 'genome'.fasta
- Create dictionary file of database for PICARD:
samtools faidx 'genome'.fasta
- Add 'genome'.cvs containing gene annotations, these are used for filtering snp's in the accessory genome.
You can now run the pipeline with de -r 'genome' parameter where 'genome' is the name of the reference files (without extension).