Closed tpoterba closed 5 years ago
probably can unkey in python to fix this. also need to test.
also:
@tpoterba Do you have a specific example where this fails? I think the columns are already unkeyed before export with this line:
dataset = dataset._select_all(col_exprs=fam_exprs,
col_key=[],
row_exprs=bim_exprs,
entry_exprs=entry_exprs)
I tried making the Python test more robust where I permute the columns first so not in alphabetical order before exporting, but couldn't replicate the error.
The same is true for export_gen
.
I could be wrong, I encountered the reordering cols
warning during export_plink while looking at LD prune. will take a closer look today.
but if you're confident that it's working as intended, I am too!
I'm confident it's working.
ExportPLINK sorts the cols before exporting a .fam file