Skip to content

remove_unused_fragments() disrupts the order of other dataframe attributes like nAA #269

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions