libplinkio icon indicating copy to clipboard operation
libplinkio copied to clipboard

Add support for extra-chroms (string chromosomes)

Open bunop opened this issue 4 years ago • 1 comments

Dear all, I don't know if it possible or easy to implement at the current state of art of this library: will be possible to add support for the plink --allow-extra-chr option (more precisely deal with string chromosome like X,Y,Contig123456)? I saw in src/bim_parse.c that the chromosome field is converted in a integer value: will be sufficent to change this line and all the other chromosome declaration in code? Many thanks

bunop avatar Feb 24 '21 18:02 bunop

That makes a lot of sense I think. Not sure why I have them as int in the first place knowing very well about X. Lets change it and add some notes for next release saying it is backward incompatible.

mfranberg avatar Feb 25 '21 08:02 mfranberg