Giter Club home page Giter Club logo

Comments (10)

danydoerr avatar danydoerr commented on July 25, 2024 1

The visualization is not made for 1000 haplotypes. I suggest you use your own--a simple line plot will do just fine! In fact, also panacus is not yet optimized for such a pangenome size, but an implementation is underway...

from panacus.

subwaystation avatar subwaystation commented on July 25, 2024 1

I went for R, that's why I am asking :bowtie:
I see you are using a Seaborn color palette. I will get it going somehow!

from panacus.

danydoerr avatar danydoerr commented on July 25, 2024 1

There you go... const PCOLORS = ['#f77189', '#bb9832', '#50b131', '#36ada4', '#3ba3ec', '#e866f4']; -> https://github.com/marschall-lab/panacus/blob/f2a1ca8278ac4e087acfec5ea471aff072b1fa34/etc/lib.js#L5C1-L5C84

from panacus.

subwaystation avatar subwaystation commented on July 25, 2024

Do you have the HEX of all these colors somewhere for me? So I can at least make it look like it came from panacus ;)

from panacus.

danydoerr avatar danydoerr commented on July 25, 2024

I suggest the following: Take the panacus-visualize script, dump it in a Jupyter Notebook, re-use the functions, and change those that you want to improve on. The script is simple and easy to understand. That's at least what I am doing if I need to customize panacus output. At some point, I should provide such a notebook in the repository.

from panacus.

subwaystation avatar subwaystation commented on July 25, 2024

Alright, now panacus itself seems to be overwhelmed:

RUST_LOG=info panacus histgrowth ecoli2146.pan.explode.0.og.crush.gfa -c bp -q 0,1,0.5,0.1 -t 28 > ecoli2146.pan.explode.0.og.crush.gfa.histgrowth.tsv

This results in a huge number of NaN in the resulting TSV. Any ideas?
ecoli2146.pan.explode.0.og.crush.gfa.histgrowth.txt

The lengths of the paths vary a lot, maybe this is the problem?

from panacus.

danydoerr avatar danydoerr commented on July 25, 2024

I'm surprised that this doesn't work, and I suspect it's a fixable bug. @lucaparmigiani what do you think?

from panacus.

lucaparmigiani avatar lucaparmigiani commented on July 25, 2024

Thanks Simon for letting us know about the NaN!

It was indeed a bug and your graph was causing a f64 overflow!!
Now the values are handled better and it is fixed. You can run it on your graph :)

from panacus.

danydoerr avatar danydoerr commented on July 25, 2024

Thanks @lucaparmigiani

from panacus.

subwaystation avatar subwaystation commented on July 25, 2024

Indeed this solved the issue, thanks!

from panacus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.