-
Notifications
You must be signed in to change notification settings - Fork 6
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
Prepare the normalized hic input for CHESS #35
Comments
Since this seems to be a point of misunderstanding, I just want to note that CHESS uses FAN-C internally also for Juicer files. As I mentioned in the issue you linked, in my opinion you can just use the Juicer file generated from your HiC-Pro data directly as CHESS input without the need for further FAN-C preprocessing. Also see here: https://fan-c.readthedocs.io/en/latest/fanc-executable/compatibility.html |
Dear @kaukrise Thank you. I have tried Juicer, and the hic file looks like following, as you said, this can be directly used as
Best wishes, |
Juicer scales matrices back up to the original number of reads after normalisation. Hence, the results you are seeing are not very strange, but absolutely expected for unequal read depth. As CHESS comparisons are based on O/E matrices, this is already taken into account. (To fix your image, though, scale the matrices to the same read depth before calculating the log2-fold change.) |
Dear @kaukrise , Thank you. Do you mean that Also, can you share us how to do the scaling in the example_analysis? All the best, |
Dear @kaukrise Sorry for bothering you again. Could you show us an example about scaling the matrices to the same read depth when visualing the results? Thank you. Best, |
There are several ways of doing this. If you used FAN-C to do the normalisation with default settings for KR or ICE norm, there is no need to scale matrices. If you have other types of normalisation, you can explicitly calculate a scaling factor for the whole matrix using import fanc
hic1 = fanc.load('/path/to/first.hic')
hic2= fanc.load('/path/to/second.hic')
s = hic1.scaling_factor(hic2) Then you would use |
Hi @liz-is I found that you have downsampled the data to sequencing depth in the preprint , thus it is necessary to keep the data set with the similar depth before running CHESS comparisons. More, it seems that you applied a downsampling algorithm to BAM file, is this right? Thanks for your attention. Best wishes, |
Hi, In the preprint we used |
Dear all,
Recently, I found that FAN-C ran slowly and have discussed here (vaquerizaslab/fanc#42). I will try the pipeline recommended by @kaukrise . Does anyone have experience to prepare the input for CHESS without using FAN-C? Hope you can share us your experience.
Best wishes,
Zheng zhuqing
The text was updated successfully, but these errors were encountered: