This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to convert txt or csv files into ped files?

I have the information "FID, IID, PID, MID, Sex, Pheno, Genotype1 allele A ...." with csv file.

I would like to convert this file into ped file for analyzing in plink software.

However, I could not find how to conduct this work.

Please let me know how to deal with this problem.

With R, python, or others... anything is fine.

plink ped r python

What have you tried? From what you're saying, it looks like you can extract pedigree information from the file you have and use it to create a ped, bim and fam file using vcftools/plink.

Thank you for your replay. I'm sorry that it was too late... but it had been solved.

Please add the solution as an answer so the question can be marked as solved.

Thank your for your comment. I'm sorry that it was too late... Fortunately, it had been solved.

0 answers

No answers yet.

Log in to answer this question.