jbloomlab/dms_tools2

sites not ordered correctly in `dms2_batch_prefs` average preferences file

Closed this issue · 1 comments

I used dms2_batch_prefs to infer Env's preferences. The CSV file for the individual replicates look good. But, the CSV file for the averaged preferences has a small problem: the sites are not in the correct order. They appear to be ordered as if they were sorted as strings. E.g., whereas the file should start with (31, 32, ...) and end with (..., 701, 702), it instead starts with (100, 101, ...) and ends with (..., 98, 99).

This problem does not seem critical since the data is all there. But like it might be worth fixing from an aesthetic standpoint? Is there an easy fix? It gets a bit complicated since some of my sites are not in the HXB2 reference strain and so are numbered things like '184a'. So simply sorting the sites as integers would not be an option.

Fixed in this commit:
4a2f864