Customised calling of heterozygous snp
0
0
Entering edit mode
9.0 years ago
skdutta2091 ▴ 40

Dear friends,

I have a vcf file containing only snps (indels are removed) with a depth read of 15. I want to set a criteria to find heterozygous snp from that vcf file where a particular alternate allele is present in atleast 4 reads among the 15 reads or more in the alignment file (.bam).

Can anybody please tell me whether I need to script for this or not? Or are there any in built tools in vcftools for this kind of customised snp calling?

Regards

next-gen R SNP alignment • 2.0k views
ADD COMMENT
0
Entering edit mode

I think vcf-annotate in vcftools command can filter out snps with less than four alternate alleles like this:

cat your.vcf | vcf-annotate -r FILTER/MinAB 4 | grep -E "#|PASS" > filtered.vcf

However, I think you are better off re-calling variants in bam files with changed parameters in your variant caller - most callers have options of adjusting minimum number of alternate bases.

ADD REPLY

Login before adding your answer.

Traffic: 1290 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6