Question: Extracting haplotypes from phased vcf file
1
gravatar for siddazra
10 months ago by
siddazra0
siddazra0 wrote:

I have a phased genotype VCF file(i.e haplotype in vcf format). I am interested only in the haplotypes that are there in phased vcf file. Please help or suggest some other way to do it.

haplotype tools • 1.1k views
ADD COMMENTlink written 10 months ago by siddazra0

what kind of output do you need ?

ADD REPLYlink written 10 months ago by Pierre Lindenbaum119k

I want it in standard haplotype format (.hap)

ADD REPLYlink written 10 months ago by siddazra0
2
gravatar for finswimmer
10 months ago by
finswimmer11k
Germany
finswimmer11k wrote:

Hello siddazra,

does bcftools convert with the --hapsample option do what you want?

Other solution is mention in this thread.

fin swimmer

ADD COMMENTlink modified 10 months ago • written 10 months ago by finswimmer11k

It worked. I used the command

bcftools convert --hapsample --vcf-ids file.vcf -o output

Thanks.

ADD REPLYlink modified 10 months ago by finswimmer11k • written 10 months ago by siddazra0

Fine :)

I moved my comment to an answer, so you can mark it as accepted.

fin swimmer

ADD REPLYlink written 10 months ago by finswimmer11k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1636 users visited in the last hour