Bcftools equivalent of vcftools conversion to ped & map
1
0
Entering edit mode
23 months ago
dec986 ▴ 370

I am converting a VCF to ped & map thus in vcftools

vcftools --gzvcf ZZZZZTYT.vcf.gz --plink --out ZZZZZTYT

which works fine.

However, I have been searching and searching, can bcftools do the same with a bcf?

bcftools • 1.1k views
ADD COMMENT
2
Entering edit mode
23 months ago

You should unlearn this vcftools command.

  1. The .ped + .map format has been obsolete for close to a decade. The plink .bed+.bim+.fam binary format is simultaneously much more efficient and able to store more information (minor alleles not present in the immediate dataset are not lost). Or if you want to keep your data as human-readable text, just keep using VCF; plink has had much better support for VCF than .ped + .map since 2017.
  2. Even when there is a legitimate reason to convert to .ped + .map (e.g. to use a 15-year-old script), you are better off using plink2 --vcf ... --export ped or plink2 --bcf ... --export ped for this conversion.
ADD COMMENT

Login before adding your answer.

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