phasing genotype
3
0
Entering edit mode
2.1 years ago
FRANCESCA ▴ 10

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

genotype • 827 views
ADD COMMENT
1
Entering edit mode
2.1 years ago
4galaxy77 2.9k
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
2.1 years 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
2.1 years ago
bcftools query -f '%CHROM %POS %ID[ %TGT]\n' in.vcf
ADD COMMENT

Login before adding your answer.

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