richarddurbin / pbwt

Implementation of Positional Burrows-Wheeler Transform for genetic data
100 stars 37 forks source link

Added -writePhase and fixed a bug in the locations read by -readPhase #37

Closed danjlawson closed 8 years ago

danjlawson commented 9 years ago

-writePhase is useful to be able to run ChromoPainter on pre-existing PBWT files. Also, -readPhase was not quite correct for v2 files. This should make both of these work properly.

The writeTransposedHaplotypes is implemented naively, but this should be OK as any Phase file that can be used, can also be written and read. Multiple passes appear to be necessary to transpose without creating the whole L by N data matrix in memory.