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

cooltools virtual4c #519

Open
BenxiaHu opened this issue May 22, 2024 · 6 comments
Open

cooltools virtual4c #519

BenxiaHu opened this issue May 22, 2024 · 6 comments

Comments

@BenxiaHu
Copy link

hello cooltools developers,
cooltools virtual4c can generate a bigwig for a region of interest.

I just wonder whether cooltools virtual4c can generate a bigwig file for multiple regions (loci) of interest.

Best,
Benxia

@Phlya
Copy link
Member

Phlya commented May 22, 2024

You have to run it one by one for each region you want... If I understand correctly what you are asking.

@Phlya
Copy link
Member

Phlya commented May 22, 2024

Although it could be implemented to run for multiple regions at the same time, which would be much faster if you had a lot of regions. Is it something you need?

@BenxiaHu
Copy link
Author

yes

@BenxiaHu
Copy link
Author

I get an error.
the bigwig file can not be recongzed by IGV.
bad magnic number 0

@wangmhan
Copy link

wangmhan commented Jan 7, 2025

Hello, I'm facing the similar problem: cannot generate bigwig files. The viewpoint was not working, though I specified it.
cooltools, version 0.7.1

here is my code:
cooltools virtual4c -p 4 --bigwig -o test coolers_library_group/sample.mcool::/resolutions/5000 chr15:61754325-63935880

Any suggestions? Thank you!

@gfudenberg
Copy link
Member

hi @wangmhan -- the test cooler only has chr2 and chr17 so trying to export data for any other chromosome wouldn't work with that one!

There are some alternate coolers in: https://github.com/open2c/cooltools/tree/master/tests/data
You can see if virtual4c for the test region works:

clr_path = op.join(request.fspath.dirname, "data/CN.mm9.1000kb.cool")

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