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

Raw matrix from TADbit API and TADbit tools are different. #379

Open
pollicipes opened this issue Jul 18, 2022 · 2 comments
Open

Raw matrix from TADbit API and TADbit tools are different. #379

pollicipes opened this issue Jul 18, 2022 · 2 comments

Comments

@pollicipes
Copy link

pollicipes commented Jul 18, 2022

Hi again, David:

This might (probably) be related to this previous issue #377 (comment)

When I get raw matrices for a same chromosome using the TADbit Python API and using TADbit tools bin the matrices that I get are quite different. You can also see that the matrix obtained with the TADbit API is more dense.

MATRIX FROM TADBIT TOOLS:
Matrix from TADbit tools
MATRIX FROM API:
Matrix from API

You can also see the first 10x10 entries for both matrices: Some cells contain the same values, but others just don't. Some are different by orders of magnitude:

Screenshot 2022-07-18 at 13 10 47

Thank you! :)

@david-castillo
Copy link
Contributor

Hi Juan,

My bet is that it comes from the same issue. Can you paste the code that you use for the api so I can confirm it's the same problem?

Thanks

David

@pollicipes
Copy link
Author

pollicipes commented Jul 18, 2022

Hi David!

Yes, this is basically it:
I just load a bam containing only the valid pairs on the bam variable.

hic_data1 = load_hic_data_from_bam(bam,
                                   resolution=reso,
                                   region=region,
                                   ncpus=6)

hic_map(hic_data1,
        normalized=False, 
        resolution=reso,
        savedata="outfile.mat")

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