-
Notifications
You must be signed in to change notification settings - Fork 14
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
convert cool to FAN-C format #30
Comments
Hi, regarding your first issue, it looks like you are trying to obtain a submatrix from a region string. If that is the case, you are not using the correct syntax. Please have a look at the FAN-C documentation, which explains how to use the https://fan-c.readthedocs.io/en/latest/api/interfaces/matrix_interface.html Regarding your second issue, I may have a fix for you. Can you please download the following file and install it with
Cheers, |
thanks.
I just installed fanc-0.9.8. |
|
neither any warnings nor output
|
and I also ran |
Thanks, but I meant what the value of Your plotting error is highly unusual. The error suggests that you did not provide the case.cool file as in your command. Unless you made some error typing the command out, my only suggestion is to try plotting from a Python console: import fanc
import fanc.plotting as fancplot
hic = fanc.load("case.cool")
p = fancplot.SquareMatrixPlot(hic)
p.plot("chr18:3mb-70mb")
p.show() Since I don't know the resolution of your Hi-C file, I don't know how long the conversion will take. But Hi-C data is massive, and it may take a while. I don't have a way of speeding up your conversion other than subsetting the matrix, you just have to be patient. There should be a progress bar with an estimate how long it will take. Or you can use Juicer to convert your matrix, which is also compatible with FAN-C and CHESS and might run faster. |
thanks.
the resolution of my Hi-C contact matrix is 10kb I used the ICE-normalized contact matrix generated by HiC-Pro to perform CHESS analysis. Juicer currently does not support ICE normalization. So I am trying to convert convert iced contact matrix to cool, and then further convert cool to fanc and fanc to .hic using fanc |
You can convert directly from HiC-Pro to FAN-C using Regarding the lack of output. Did you also run |
Also, the Juicer KR balancing is equivalent to ICE normalisation. |
what I meant was that p.plot("chr1:10kb-20kb") has been running. I do not know what is going on. |
I admit that I don't understand why it would still be going on. According to your code snippet you are plotting a 10kb region. Which is exactly one pixel in your 10kb resolution matrix (which I think also does not make much sense). It should finish practically instantaneously. You could try working through the FAN-C tutorial to see if you encounter the same issues, or if it is specific to your input data. Your problems are quite unusual, and without having access to your original file I don't think I can debug this further. So you could provide me with the file somehow, if you are willing to share it. Otherwise I would recommend that you contact the Vaquerizas lab for a possible collaboration, and team up with one of their Hi-C (and FAN-C) experts. |
thanks. now I try to load the .hic file generated by Juicer, but I still get this error: |
Juicer drops the If that does not work, list the chromosomes present in the matrix with |
|
Sorry, but something about your original data does not look right. Can you successfully plot it using any available tool (Juicebox? HiGlass?) to ensure the matrix looks okay? Does Juicer handle the file alright? As I said above, I am at a loss what to try next without access to your data. |
You could also download one of the Juicer files from the 4D Nucleome Portal to test your FAN-C installation on: https://data.4dnucleome.org/files-processed/4DNFIOTPSS3L/, then go to processed files and download "contact matrix (hic)". Plot it with
At least then we can exclude that it is a FAN-C installation issue. |
I still got the same error after running |
If you get the same error with the downloaded dataset, then it is an installation issue. What operating system are you using? We are only supporting Unix-based systems. Can you try the same command in a clean virtual environment? I just double-checked that it works without issues with the latest version on my Unix machine. |
Hi,
I used
patient_hic = fanc.load(case)
to load cool Hi-C, and then runpatient_hic[region_string, region_string].data
to get data of interest.However, I did not get any result.
do you know what is going on?
best,
The text was updated successfully, but these errors were encountered: