Sliding Window Extraction of Explicit Polymorphisms
REQUIRED:
-b
-g
-o
OPTIONAL:
-s
-d
-r
-w
--no_cleanup does not delete intermediate vcf files: default (FALSE)
--ultimate performs ultimate filtering for all homozygous calls checks all reads mapped to base for any alterate allele (will take longer)
REQUIRES Biopython with pysam module installed in your path!!
-vcf
-num_genotypes
To use this script there are certain requirements:
(1) Samtools and Bcftools must be in your path -> Updated to be compatible with latest versions
(2) To do this easily you can add the path in your shell script
(3) alignment Bam files must be sorted and indexed
(4) Include as many bam files as you need separated with '-b'
(5) Option to include previously generated vcf file for SWEEP filtering
(6) If input is vcf, you must still include bam files and genome for --ultimate filtering
(7) Example command line:
perl SWEEP.pl -b gen1.sorted.bam -b gen2.sorted.bam -g genome.fa -o output.vcf -s 1 -d 5 -r 0.25
(8) Example with input vcf:
perl SWEEP.pl -b gen1.sorted.bam -b gen2.sorted.bam -g genome.fa -o output.vcf -s 1 -d 5 -r 0.25 -vcf snps.vcf
-num_genotypes 2