-
Notifications
You must be signed in to change notification settings - Fork 70
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
h5 to cool to cooltools compartments calling - KeyError: 'ignore_diags' #437
Comments
Hi kimj50, You did everything well, this is a problem on the cooltools part. I faced the same issue recently (as of yesterday actually). Since I'm a nice guy, here's the solution (although, it is not my call to fix that bug, as it is a cooltools problem): Go to After some tests, HiCExplorer compartment calling is performing more or less like cooltools. In a nutshell, if my bet is not wrong, you are working in Drosophila and you will still face the issue of having entire chromosomes with the correct information stored in EV2 instead of EV1 for some chromosomes (wrong EVs are looking like all positive values on one side of a chromosome arm, then all negative values on the other side). It will happen unless you remove the centromers from your matrices. This you can do with |
Here is the link of the cooltools issue I posted if you want to check the cool people answer: |
Thank you for the quick reply and being nice :). |
Can you post the full error message? |
File "/share/apps/hicexplorer/3.2/bin/cooltools", line 10, in in addition to changing "none" to "2", I also tried changing "is none" to "== 2". They give me the same error. Thank you |
Hi @kimj50, |
It works great! error msg if hicAdjustMatrix -> call-compartments: Biologically, we want to try this because we work with chromosomes that have two big flanking arms and a center. And we think there are compartments within compartments that is worth visualizing. Thank you, |
Well I think it is because hicAdjustMatrix is removing the weights somehow... |
As far as I know 'weight' is optional, so that's an error of the cooler API. |
Thank you for the amazing tool. I'm a biology phd student. So I am having a bit trouble working with tools.
#346
In light of the above issue, I wanted to try cooltools to call compartments.
I tried the following:
bowtie2 -> buildmatrix -> mergebins -> correction by ICE -> convertformat to cool -> cooltools
After cool format conversion:
File: 30kb_corrected.cool
Date: 2019-09-26T09:07:39.662113
Genome assembly: unknown
Size: 3,341
Bin_length: 30000
Number of chromosomes: 6
Non-zero elements: 5,384,106
The following columns are available: ['chrom' 'start' 'end' 'weight']
Generated by: HiCMatrix-11
Cooler library version: cooler-0.8.6.post0
HiCMatrix url: https://github.com/deeptools/HiCMatrix
Error using cooltools:
Traceback (most recent call last):
File "/share/apps/hicexplorer/3.2/bin/cooltools", line 10, in
sys.exit(cli())
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/cooltools/cli/call_compartments.py", line 146, in call_compartments
sort_metric=None)
File "/share/apps/hicexplorer/3.2/lib/python3.6/site-packages/cooltools/eigdecomp.py", line 314, in cooler_cis_eig
if ignore_diags is None
KeyError: 'ignore_diags'
I was wondering if I skipped some steps... or is the converted cool format just not compatible with cooltools? Thank you - Jun
The text was updated successfully, but these errors were encountered: