Skip to content

Latest commit

 

History

History

S8-variant-coverage

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

S8 Pipeline - Coverage of variants from a bam file

Author: Philippe Sanio

The S8 pipeline maps the mean coverage of a sequence.bam file to a given variants.vcf file. For the extraction of the coverage Mosdepth is bing used.

Pipeline

  • Inputs
    • sequence.bam
    • variants.vcf
  • Output:
    • plots with the coverage mapped to the variant call.

S8 Pipeline

Mosdepth

For the coverage extraction mosdepth is being used. In this example the coverage is being calculated for each basepair (bp), the binsize of 10bp and a quality of above 20. The output will be used for S8 pipeline.

mosdepth -n -b 1 -t 12 -Q 20 ./coverage ./sequence.bam

The option -x (dont look at internal cigar operations) is not activated to ensure counting coverage for indels.

S8

The S8 pipeline maps the mean coverage for each variant in the .vcf file and outputs a plot for each varient type

python s8 coverage.per-base.bed.gz variants.vcf

Results

Sample 1: HG002 GRCh38

Results for sample HG002-GRCh38-Hiseqx-40X: Chr 1,6 and 18:

coverage varient mapping