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

what kind of output do you need ?

ADD REPLYlink written 11 days ago by Pierre Lindenbaum108k

I want it in standard haplotype format (.hap)

ADD REPLYlink written 11 days ago by siddazra0
1
gravatar for finswimmer
11 days ago by
finswimmer2.8k
Germany
finswimmer2.8k 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 11 days ago • written 11 days ago by finswimmer2.8k

It worked. I used the command

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

Thanks.

ADD REPLYlink modified 10 days ago by finswimmer2.8k • written 10 days ago by siddazra0

Fine :)

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

fin swimmer

ADD REPLYlink written 10 days ago by finswimmer2.8k
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: 949 users visited in the last hour