question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError '<' when using zoomify

See original GitHub issue

I’m using

cooler zoomify -r 10000 -o data/Li_et_al_2015.mcool data/Li_et_al_2015.cool

and I’m returning

Traceback (most recent call last):
  File "/opt/conda/bin/cooler", line 8, in <module>
    sys.exit(cli())
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/cooler/cli/zoomify.py", line 146, in zoomify
    agg=agg)
  File "/opt/conda/lib/python3.6/site-packages/cooler/reduce.py", line 679, in zoomify_cooler
    resn, pred, mult = get_multiplier_sequence(resolutions, base_resolutions)
  File "/opt/conda/lib/python3.6/site-packages/cooler/reduce.py", line 366, in get_multiplier_sequence
    resn = np.array(sorted(bases.union(resolutions)))
TypeError: '<' not supported between instances of 'NoneType' and 'int'

The command works with other cool files I’m using, and I’m currently testing this with data I found online, so I don’t know its structure too well. What is going wrong here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
astrovsky01commented, May 21, 2020

I saw a PR saying it worked better now, but I think this should be ok for the moment. I appreciate the help!

0reactions
nvictuscommented, Jun 30, 2020

Closing as the original issue is fixed in #180

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create unique zoomifyContainer for zcomparisonpath
Hello there, how can I achieve the same uniqName in the case of zcomparisonpath? For example I have multiple zoomify containers on the...
Read more >
TypeError: cannot convert the series to <class 'float'> #259
I'm have a lot of "chromosomes" (genome assembly), and it is causing me to hit this line during zoomify - cooler/cooler/cli/zoomify.py Line ...
Read more >
Zoomify Support - Frequently Asked Questions
Zoomify is a tool that web designers use to make images 'zoomable', as well as a 'viewer' that web site visitors use to...
Read more >
Zoomify HTML5 V5 Feature Examples
New, dedicated, Zoomify Express Multi -Viewer enables many Zoomify Images in a single web page - without using iFrames, and with support for...
Read more >
83-Settings-ConstrainPan - Zoomify
The pan constrint feature can be adjusted using the HTML parameter zConstrainPan ('0'=false, '1'=loose (constrain image center to viewport edge), ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found