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 MACS2 call under Python 3 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mruffalo
Copy link

@mruffalo mruffalo commented May 3, 2020

Under Python 3, the sequence (chromosome) names provided to MACS2 were retrieved as byte strings, then wrapped in str() before writing to disk. This resulted in sequence names like "b'chr1'", as in:

b'chr14'      46787083        46787310        AAACATCGAAGGACACCATCAAGT
b'chr3'       56262063        56262116        AAACATCGAAGGACACCATCAAGT
b'chr2'       103894442       103894639       AAACATCGAAGGACACCATCAAGT

Tested this fix under Python 2 and 3.

Under Python 3, the sequence (chromosome) names provided to MACS2 were
retrieved as byte strings, then wrapped in `str()` before writing to disk.
This resulted in sequence names like "b'chr1'", as in:

b'chr14'      46787083        46787310        AAACATCGAAGGACACCATCAAGT
b'chr3'       56262063        56262116        AAACATCGAAGGACACCATCAAGT
b'chr2'       103894442       103894639       AAACATCGAAGGACACCATCAAGT

Tested this fix under Python 2 and 3.
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.

1 participant