Exclude mono morphic variants from VCF file
1
0
Entering edit mode
9.2 years ago
malik.moin • 0

Hello Everyone

I am trying to exclude all the mono-morphic variants from GWAS vcf file. I used GATK SelecttVaraint walker with -env option.

Not sure am i doing the right thing or there in another way to exclude them?

Regards Moeen

SNP • 1.9k views
ADD COMMENT
0
Entering edit mode

Do you mean to say if alt column has a . ?

awk '{ if ( $0~/^#/ ) { print } else if ( $5!="." ) { print } }' in.vcf > out.vcf
ADD REPLY
0
Entering edit mode

Thanks ...

i want to exclude non-variant sites.. which could be '.' or same alternate allele .

ADD REPLY
1
Entering edit mode
9.2 years ago
vcf-subset --exclude-ref in.vcf > out.vcf
ADD COMMENT

Login before adding your answer.

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