Reorder samples in a PLINK dataset
1
0
Entering edit mode
9.9 years ago
pufferfish ▴ 290

Is it possible to reorder samples in a PLINK dataset, per an order specified in a second file?

I've tried the --keep and --recode options, but they don't do it

plink • 8.8k views
ADD COMMENT
0
Entering edit mode

Interesting to know why would you need them to be ordered?

ADD REPLY
1
Entering edit mode

Some programs like PREST-plus need the data to be sorted by FID/IID to run properly.

ADD REPLY
8
Entering edit mode
9.9 years ago
plink --bfile [original fileset] --indiv-sort f [file describing new order] --make-bed --out [new prefix]

(More discussion at https://www.cog-genomics.org/plink2/data#indiv_sort .)

ADD COMMENT
0
Entering edit mode

ah.. plink2!

ADD REPLY

Login before adding your answer.

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