This is a test version of Biostars. For the public version, visit https://www.biostars.org.
cut mt,x and unknown chromosomes

I have many 'Un' (I think this is unknown chromosomes SNP) in a vcf file. how can I split or cut mt,x and unknown chromosomes from vcf?

vcf snp snp

Make a bed file with chr coordinates (chromosome length). Intersect VCF with the chr bed file using bedtools.

1 answer

Use grep; see my previous answer in the vcf2bed question.

Log in to answer this question.