项目作者: Niranjanpandeshwar

项目描述 :
Bash Script which performs SNP calling
高级语言: Shell
项目地址: git://github.com/Niranjanpandeshwar/SNP_CDC_Bash_Script.git
创建时间: 2020-12-02T00:38:15Z
项目社区:https://github.com/Niranjanpandeshwar/SNP_CDC_Bash_Script

开源协议:

下载


SNP Variant Calling Pipeline

Customizing scripts

BWA - Burrows Wheeler Aligner

Basic script to perform mapping

  1. bwa mem sample.fasta read1.fastq read2.fastq > output.sam

Modify script to add a parameter for threads

  1. bwa -t 10 mem sample.fasta read1.fastq read2.fastq > output.sam

BWA mem with mismatch penalty

  1. bwa -t 10 -B 6 mem sample.fasta read1.fastq read2.fastq > output.sam

Instructions to run the pipeline through shell script

  1. Clone the git repository using the command below. A folder named SNP will be in your current working directory.
    1. git clone https://gitlab.com/Niranjanpandeshwar/snp
  2. Change directory into snp folder
    1. cd snp
  3. Run the “ll” command to see all the files and folders. You should see 3 folders named “input”, “reference” and “output”, a file named snp_script.sh and a Readme.md file. The input folder has some test fastq files. reference folder has a test fasta reference file. The output folder has the expected files.
    1. ll
  4. Run the script with the command below
    1. ./snp_script.sh -r reference/wildtype.fna -t p -p 2 -i input -o output
  5. All files in the input folder will be processed. The output is available in output folder.
    1. cd output