phasing genotype
3
0
Entering edit mode
18 months ago
FRANCESCA ▴ 10

How can I "translate" the genotype of my vcf file in alleles? For example: 0|1 vs A|T

genotype • 682 views
ADD COMMENT
1
Entering edit mode
18 months ago
4galaxy77 2.8k
bcftools query -f'%REF|%ALT\n' in.vcf > output.txt
G|A
T|A
C|T
G|A
C|T
C|T
A|G
T|C
T|C
T|C
G|A
ADD COMMENT
1
Entering edit mode
18 months ago
iraun 6.2k

If you want to reconstruct the haplotypes having a VCF with phased genotypes in place, I can recommend haplosaurus, developed by Ensembl.

ADD COMMENT
1
Entering edit mode
18 months ago
bcftools query -f '%CHROM %POS %ID[ %TGT]\n' in.vcf
ADD COMMENT

Login before adding your answer.

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