merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
427 stars 145 forks source link

Interactive interface, TypeError: Cannot read properties of undefined (reading 'angle') when trying to organize by length #2325

Open jwilliams648 opened 1 month ago

jwilliams648 commented 1 month ago

I received this error while trying to organize dendrogram by contig length after specifying a specific collection via anvi-interactive argument '-C'

Anvi'o version: 8-dev


TypeError: Cannot read properties of undefined (reading 'angle')
    at Drawer.<anonymous> (http://localhost:8080/app/js/drawer.js?rand=4b9247d67ed86382a840b4bb5d1a8638:1301:24)
    at Drawer.iterate_layers (http://localhost:8080/app/js/drawer.js?rand=4b9247d67ed86382a840b4bb5d1a8638:41:28)
    at Drawer.draw_layer_backgrounds (http://localhost:8080/app/js/drawer.js?rand=4b9247d67ed86382a840b4bb5d1a8638:1277:10)
    at Drawer.draw (http://localhost:8080/app/js/drawer.js?rand=4b9247d67ed86382a840b4bb5d1a8638:101:10)
    at m.fn.init.onShow (http://localhost:8080/app/js/main.js?rand=a8f7ecf29676ae6187c64c501cc62ff9:1850:28)
    at HTMLDivElement.<anonymous> (http://localhost:8080/app/lib/bootstrap-waitingfor/build/bootstrap-waitingfor.js?rand=6411a90638f2294580d0e655e5a65920:134:22)
    at HTMLDivElement.dispatch (http://localhost:8080/app/lib/jquery/dist/jquery.min.js?rand=9f1f9fc61c03415314095756b1de385e:4:8549)
    at r.handle (http://localhost:8080/app/lib/jquery/dist/jquery.min.js?rand=9f1f9fc61c03415314095756b1de385e:4:5252)
    at Object.trigger (http://localhost:8080/app/lib/jquery/dist/jquery.min.js?rand=9f1f9fc61c03415314095756b1de385e:4:7650)
    at HTMLDivElement.<anonymous> (http://localhost:8080/app/lib/jquery/dist/jquery.min.js?rand=9f1f9fc61c03415314095756b1de385e:4:15517)```
meren commented 1 month ago

Hey @metehaansever, can you please try to reproduce this? You can use anvi-self-test --suite mini -o TEST, and then anvi-interactive in the TEST directory with -C :)

metehaansever commented 1 month ago

I tried to reproduce the problem but It did work on my side. I suggest you @jwilliams648 to hard refresh your browser. And I just want to be sure are you on Anvio-dev or Anvio-8 ?

meren commented 1 month ago

@jwilliams648, what are your collection names (if they are starting with numbers it can cause some problems for the tree parsing library perhaps)?

jwilliams648 commented 1 month ago

Hmm, interesting. I'll try the refresh and see if that works. I am using anvio-dev and collection names start with letters.

meren commented 1 month ago

If you were to send us a private email with download links for your files (profile-db, contigs-db) we could also double-check things here :)