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 pandas bug if no peaks found in find_and_score_peaks #25

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

annajbott
Copy link
Contributor

Fix:

There's a pandas bug if no peaks found in find_and_score_peaks (ValueError: Length mismatch: Expected axis has 0 elements, new values have 19 elements)

Issue documented here:
#20

Added if/else statement for if bed_file_out is empty. Print statement for bigwig file that has no peaks

@annajbott
Copy link
Contributor Author

Error also mentioned in issue: #18

Copy link
Owner

@LHentges LHentges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Succinct solution, looks perfect

@LHentges LHentges merged commit b9155c9 into LHentges:master Jul 31, 2024
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

Successfully merging this pull request may close these issues.

2 participants