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

'zsh: segmentation fault ' #147

Closed
violacimatti opened this issue Mar 27, 2024 · 1 comment
Closed

'zsh: segmentation fault ' #147

violacimatti opened this issue Mar 27, 2024 · 1 comment

Comments

@violacimatti
Copy link

this is my code:
import pyBigWig

bigwig_file = "MB12_H3K27me3copy.bw"

bw = pyBigWig.open(bigwig_file, 'w')

bw.addEntries(['chr3'], [103385937],ends=[103385938], values=[0.])

bw.close()

When I run it I don't know why but I get this error: zsh: segmentation fault
The file should be accessible and correct and I get this error only when I run pyBigwig

@dpryan79
Copy link
Collaborator

If memory serves you need to add the bigWig header with bw.addHeader([("chr3", 103385938)]) first. Remember that bigWig files are kind of like BAM files, they have a header that lists the contigs, their order and size.

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

2 participants