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

Question about downscaling 10-kb matrix to 8192 bp resolution #25

Closed
zhang-jiankun opened this issue Apr 28, 2023 · 4 comments
Closed

Comments

@zhang-jiankun
Copy link

Hi @tanjimin ,

I really enjoyed using C.Origami, but I got a naive question that has been bothering me for a while. I was wondering how to downscale the 10-kb experimental Hi-C matrix to 8192 bp resolution in order to match the model outputs.

Best,

Jiankun

@tanjimin
Copy link
Owner

tanjimin commented May 1, 2023

Hi Jiankun, this is the line where I performed transformation:

mat = resize(mat, (self.image_scale, self.image_scale), anti_aliasing=True)

@zhang-jiankun
Copy link
Author

Hi @tanjimin,

This is very clear. I would like to convert C.Origami prediction or even perturbed matrix to .cool file, and perform downstream analyses using the cooler package (https://cooler.readthedocs.io/en/latest/). Is it reasonable to resize the 256 x 256 output back to 210 x 210 and generate new cool file? I was also wondering if there is an implementation in the C.Origami repo.

Any advice would be greatly appreciated!

Best,

Jiankun

@tanjimin
Copy link
Owner

Yes, that is doable. This is also a feature I am currently working on: #24 although I don't have plan to include perturbed matrix. You can try to implement it and do a pull request!

@zhang-jiankun
Copy link
Author

I got it. Thank you for your help!

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