Thank you for the clear explanation chrchang523! The last command you provided worked like a charm.
• 0 views
•
link
I am new to plink and have a (hopefully) simple data management operation, but little idea of how to implement it. The essentials are listed here:
data.bed, data.fam, and data.bim.snps.txt containing a list of markers.snps.txt) as column headers with genotypes listed underneath.Question: How might I go about performing this task?
If you're fine with the main body of the file containing allele counts (0/1/2) rather than allele names, you can use
plink --bfile data --extract snps.txt --recodeA
and then use Unix cut to remove any header columns you don't want.
Otherwise,
plink --bfile data --extract snps.txt --recode compound-genotypes
(this requires PLINK 1.9) will almost get you there, but you'll need to add a header line on your own. Or
plink --bfile data --extract snps.txt --recode
works if you want two columns per SNP.
Thank you for the clear explanation chrchang523! The last command you provided worked like a charm.
Log in to answer this question.