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

Fix to empty narmalised karyotype counts #20

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Conversation

Adoni5
Copy link
Contributor

@Adoni5 Adoni5 commented Oct 19, 2023

Closes #18
Doesn't close #19 - the root problem aka the underscoring

I've added some checked division/subs to calculating the index of the mid point of the normalised count arrays for karyotype data.

I've also added a warning to print the lack of contigs in the karyotype data if there are zero!

Added a unit test on one function and a docstring

Returns 0.0 if passed empty counts
Add docstring and tests for `median_phaseblock`
@wdecoster wdecoster merged commit 0bb1f33 into wdecoster:master Oct 19, 2023
@wdecoster
Copy link
Owner

Looks great!

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