Question: Extracting haplotypes from phased vcf file
1
gravatar for siddazra
6 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 • 675 views
ADD COMMENTlink written 6 months ago by siddazra0

what kind of output do you need ?

ADD REPLYlink written 6 months ago by Pierre Lindenbaum115k

I want it in standard haplotype format (.hap)

ADD REPLYlink written 6 months ago by siddazra0
2
gravatar for finswimmer
6 months ago by
finswimmer8.0k
Germany
finswimmer8.0k 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 6 months ago • written 6 months ago by finswimmer8.0k

It worked. I used the command

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

Thanks.

ADD REPLYlink modified 6 months ago by finswimmer8.0k • written 6 months ago by siddazra0

Fine :)

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

fin swimmer

ADD REPLYlink written 6 months ago by finswimmer8.0k
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: 1547 users visited in the last hour