Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add functions to perform various checks on bioframes: is_sorted, is_overlapping, etc... #19

Closed
golobor opened this issue Apr 9, 2020 · 3 comments

Comments

@golobor
Copy link
Member

golobor commented Apr 9, 2020

No description provided.

@Phlya
Copy link
Member

Phlya commented Apr 9, 2020

How do you define sortedness for chromosomes?

@endrebak
Copy link

endrebak commented Jun 12, 2020

In pyranges I use the natural sort order.

from natsort import natsorted
natsort(["chr1", "chr11", "chr2"])
# ['chr1', 'chr2', 'chr11']

but I have only worked with human genomes. This might be the wrong order for other species? And it is not perfect. For human genomes, I would consider "chrM" to come after "chrX" and "chrY".

@golobor golobor mentioned this issue Apr 13, 2021
35 tasks
@gfudenberg
Copy link
Member

checks are now in bioframe.core.checks, sorting is now in bioframe.ops.sort_bedframe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants