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

Bug / problem at end of chromosomes #26

Open
ivargr opened this issue May 24, 2023 · 3 comments
Open

Bug / problem at end of chromosomes #26

ivargr opened this issue May 24, 2023 · 3 comments

Comments

@ivargr
Copy link

ivargr commented May 24, 2023

Hi!

I've spent some time debugging why sim3C seems to give too many read pairs where one read is at the end of a chromosome and the other at the beginning. Typically a visualization of a HiC-matrix looks like this, even on a completely random simulated genome:

image

Note the high interaction at the top right and lower left of the chromosome pictured.

After digging through the code, I noticed this:

image

I think it's problematic that this is not documented in any way or has not been fixed. I would put a warning in the Readme about this so users are aware.

@cerebis
Copy link
Owner

cerebis commented Jan 17, 2024

If the chromosome is circular, the interaction you're observing will occur. If, on the other hand, the employed reference is fragmentary, treating the sequences as linear should eliminate the feature.

Here is an example of a real Hi-C contact map E.coli [1]
483777_1_En_9_Fig1_HTML

[1] Thierry, A., & Cockram, C. (2022). Generating high-resolution Hi-C contact maps of bacteria. Methods in Molecular Biology (Clifton, N.J.), 2301, 183–195. https://doi.org/10.1007/978-1-0716-1390-0_9

@ivargr
Copy link
Author

ivargr commented Jan 17, 2024

Thanks for the reply!

I'm not sure I fully understand. If I do not have circular genomes, will the simulation then be wrong at the chromosome boundaries?

I agree that the simulation now makes sense for circular genomes, but my genomes are not.

@cerebis
Copy link
Owner

cerebis commented Jan 17, 2024 via email

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