Closed LMH0066 closed 1 year ago
Hi, which version of FAN-C are you using?
I installed FAN-C for version 0.9.25 using poetry.
Could you send me a link to the public Hi-C file that is causing the issue? Then I can try to reproduce the error on my machine. Thanks!
Regarding your other question: there is a roundabout way to convert Juicer files into Cooler files with FAN-C, if that is what you are asking, but it is really inefficient. You're probably better off asking in the Juicer or Cooler forums! For completeness, though:
fanc hic --deepcopy juicer.hic@<resolution> converted.fanc
fanc to-cooler converted.fanc hic.cool
Thanks for your reply! I gain Hi-C from the NCBI website(https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE162511). The dataset author combines all Hi-C data into one compressed file, so I can't put one Hi-C data URL for you, but you can download data through the below operation.
Regarding the second question: because processing Hi-C data is very sparse, the use of matrix representation for processing has inefficient. Cooler pixel representation is the best way to process data quickly for me.
Hi, sorry for the delay, but I was on holiday last week.
The file did not have any normalisation information, which I did not encounter before. Here is a beta version of FAN-C which works with the file you provided:
Also, your command above will try to create a whole-genome 10kb full matrix, which will take a very long time and consume a lot of memory. Since there are only a few contacts in the file, I would recommend using a much lower resolution:
import fanc
# use NONE here to ignore the default KR norm
hic = fanc.load("GSM4382149_cortex-p001-cb_001.contacts.hic@2.5mb@NONE")
# extract 2.5Mb matrix
m = hic.matrix()
OK, I test it, and it works well! Thanks for your reply!
Hi there, When I use FANC to read public Hi-C data, it doesn't seem to work.
Also, does FANC have a method to convert juicer Hi-C into something similar to cooler pixel? This may be helpful for me to further process the data. Thank you so much in advance!!