Closed standage closed 2 years ago
Looks great! I apparently do not have write access for this repo. Not sure why because I was able to merge my PR a few weeks ago.
@danejo3 Yeah, I thought you and @RyanBerger98 already had write privileges. Just added now!
This PR adds several improvements to
microhapulator.api.balance()
and the correspondingmhpl8r balance
command for computing interlocus balance. Now, in addition to printing histogram in ASCII text to the terminal, there is support for generating a high-resolution plot suitable for reports or documents. MicroHapulator also now performs a chi-square goodness of fit test, with an assumption of uniform coverage across markers, using normalized read counts. The reported chi-square statistic measures the extent of imbalance, and can be compared among samples sequenced using the same panel: the minimum value of 0 represents perfectly uniform coverage, while the maximum value of D occurs when all reads map to a single marker (D is the degrees of freedom, or the number of markers minus 1).Updated usage statement for
mhpl8r balance
.And this is the updated API documentation.
Partially addresses #119.