Describe the bug
In compress_fragment_indices(), the frag_start_col has already been sorted in ascending order. Therefore, there is no need to use sort_values() before calling compress_fragment_indices. Doing so may disrupt the order of nAA or other sequential attributes.
Similarly, using sort_index() might compromise the ordered nature of frag_start_col. To prevent this, it should be replaced with reset_index().
changes
- fix bug
- adding test and test data
Describe the bug
In
compress_fragment_indices(), thefrag_start_colhas already been sorted in ascending order. Therefore, there is no need to usesort_values()before callingcompress_fragment_indices. Doing so may disrupt the order ofnAAor other sequential attributes.Similarly, using
sort_index()might compromise the ordered nature offrag_start_col. To prevent this, it should be replaced withreset_index().changes