Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.52 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.52 KB

Spatial_SNV_plotter

Plots the distribution of heterozygous (het) and homozygous (hom) SNV calls from RedDog mapping pipeline output (see https://github.com/katholt/reddog for details). Generally we use this for assessing the spatial distribution of het SNVs and if these might be associated with either (a) a mixed sample or (b) recombination. For (a) these would be randomly distributed throughtout the genome sequences, and for (B) these would be clustered in specific regions in the sequence. We generally would assess this for sequences that have high levels of het SNVs compared to hom SNVs.  

A simplified plotting script similar to this which can summarise GHRU vcf files can be found at: https://github.com/zadyson/SNV_Stats_Generator  

What is in this repo?

SNV_plotter.R - R script for creating plots and summary tables suitable for sequence QC analysis using both high quality (q30.vcf) and heterozygous (het.vcf) files generated usign RedDog.  

SNV_plotter.R - Same as the above script but it is much faster as it only creates plots  

Example output (2 pages of figures per sample):

image

image

How do I run it?

Please refer to instructions in the header of each script and make sure you have the relevant packages installed (see library(X) commands in the scripts for details).