How to extract SNP with wrong REF in vcf file?
1
0
Entering edit mode
5.6 years ago
Zeason ▴ 10

Just like the topic: I got a vcf file contained plenty of SNPs, but some of SNPs seems got wrong ref. So i want to extract these snp with wrong ref. How can i do this jobs? Thanks a lot.

SNP • 1.1k views
ADD COMMENT
1
Entering edit mode
5.6 years ago

Please define 'wrong ref'. The issue may relate to this: A: Alternate nucleotide is more frequent than reference nucleotide. OMG I'm dizzy.

ADD COMMENT
0
Entering edit mode

What i mean is just like this : Chrom Pos Ref Alt 1 1200 A G

But in the published genome fasta file,the chromsome 1 position 1200 nucleotide is T。 So my snp`s ref is not same as the nucleotide in published genome fasta file. How can i extract this kind of snp from my vcf file ?

ADD REPLY
0
Entering edit mode

I see. Please take a look at the --check-ref option in bcftools norm:

-c, --check-ref <e|w|x|s>         check REF alleles and exit (e), warn (w), exclude (x), or set (s) bad sites [e]

You will also have to specify an input FASTA genome, of course.

ADD REPLY
0
Entering edit mode

thank you very much , i will try it

ADD REPLY

Login before adding your answer.

Traffic: 1746 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