Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Created page with "== Overview == This page describes the procedure for pileup-based variant calling. The software package is currently in-house at Center for Statistical Genetics (CSG) at Univ..."
== Overview ==

This page describes the procedure for pileup-based variant calling. The software package is currently in-house at Center for Statistical Genetics (CSG) at University of Michigan, so only CSG individuals are able to perform analysis with this tool at this point. If you have questions, please contact Hyun Min Kang (hmkang@umich.edu).

== Outline of the Procedure ==

Pileup-based variant calling toolkit consists of the following procedure

# Detecting variant site from aligned sequence reads
# [[#Producing pileups of sequence reads at variant sites | Producing pileups of sequence reads at variant sites]]
# Detecting and estimating DNA contamination from the pileups
# Calculating contamination-aware genotype likelihoods and filtering statistics
# Perform SVM filtering to produce high quality variants
# Perform LD-aware genotyping to phase the sequence data to create sequence-based

Currently, only a small part of these procedure is described in this page. This document will be further updated later comprehensively.

== Producing pileups of sequence reads at variant sites ==

You can use the capt-pileup pipeline to produce pileups of sequence reads at variant sites. Below are brief usage.

% /net/fantasia/home/hmkang/bin/captTest/bin/capt-pileup
Usage:
capt pileup [options]

Required Options (Run epacts single -man or see wiki for more info):
-loci STR Input genomic position to perform pileup
-index STR Index file containing sample IDs and BAM file path
-out STR Output prefix

Key Options (Run capt pileup -man or see wiki for more info):
-help Print out brief help message [OFF]
-man Print the full documentation in man page style [OFF]
-ref STR Reference FASTA file [/data/local/ref/karma.ref/human.g1k.v37.fa]
-max-depth INT Maximum depth to pile up
-ignore-MQ Do not report mapping quality
-ignore-cycle Do not report the read cycle
-samtools STR The full path of samtools binary [/usr/cluster/bin/samtools]
-bgzip STR The full path of bgzip binary [/usr/cluster/bin/bgzip]
-tabix STR The full path of bgzip binary [/usr/cluster/bin/tabix]
-mosix-nodes STR Comma separated list of mosix nodes
-view-param STR Parameter for samtools view [-q 20 -F 0x0704]
-baq-param STR Parameter for samsools calmd (for BAQ) [-AEbr]
-clip-overlap STR Clip overlapping read fragments
-run INT Number of jobs to run in parallel []
-restart Restart jobs ignoring the previous outputs [OFF]

What you minimally need is the following list of input files
* loci file : two column file containing base positions containing the genomic position - [CHROM] [POS] - to collect pileups. The positions need to be sorted in genomic coordinate.
* index file : two column file containing [SAMPLE_ID] [FULL_PATH_OF_BAM_FILE]. The pileups will be performed across all samples.

Also you need --out [out_prefix] argument. Then [out_prefix].[sample_id].txt.gz files will be generated for pileups.

By default, the pipeline will produce [out_prefix].Makefile, and you need to run it by calling GNU make. You can use --run [INT] option to automatically start running make.

By default, the pileup procedure will do the following things
* At each specified genomic position, it will produce pileups containing the information about (1) base reads and strands (2) base qualities (3) mapping qualities and (4) cycles. --ignore-MQ or --ignore-cycle options can change this default option.
* QC-failed reads, reads with mapping quality less than 20 will be ignored during the pileups. --view-param will override this default.
* Extended BAQ is applied by default, and this can be overriden by --baq-param option.
* Overlapping pair of read fragments are not specially handled by default. **It is recommended** to explicitly turn on --clip-overlap option to clip either side of overlapping read fragment to improve the filtering performance.
* By default, it assume that it runs in one machine. If you are running in MOSIX enable cluster, mosix-nodes [node1,node2,node3,..,noden] will allow to spread the jobs to multiple nodes in parallel

Navigation menu