How to Convert PED to FASTA

Share Tweet

You may need the conversion of PED files to FASTA format in your studies for further analyses. Use below script for this purpose.

PED to FASTA converter on GitHub

Gets first 6 columns of each line as header line and the rest as the sequence replacing 0s with Ns and organizes it into a FASTA file.

Note 0s are for missing nucleotides defined by default in PLINK

How to run:

perl "C:\path\to\PED_File"
Share Tweet


Please start a discussion down below or send me an email!