Giter Club home page Giter Club logo

Comments (5)

subwaystation avatar subwaystation commented on August 11, 2024

@brettChapman
Where there errors while you ran PGGB with a certain combination of parameters? Or was this independent of a PGGB run?
Could you please write the commands you used? Or give an example with a minimal data set?
Thanks!

from pggb.

brettChapman avatar brettChapman commented on August 11, 2024

Hi @subwaystation

These were errors I received after I had completed the PGGB run. It happened with some graphs but not all.

After I generated the smoothed GFA, they contained consensus paths (an earlier build of PGGB before consensus paths were dropped by default). I proceeded to remove the consensus paths and was left with VG graphs without the consensus. I then converted these to GFA so I could then build OG graphs with ODGI and visualise the 2D graphs without the consensus paths. Some ODGI runs complained that the graph was unsorted and suggested I run odgi sort with -O. See an error below for my 3H graph.

odgi viz -i barley_pangenome_graph_3H.gfa.og -o barley_pangenome_graph_3H.gfa.og.viz_mqc.png -x 1500 -y 500 -P 10 -b
[odgi::viz] error: the graph is not optimized. Please run 'odgi sort' using -O, --optimize

from pggb.

subwaystation avatar subwaystation commented on August 11, 2024

How did you remove the consensus graphs?
Note that odgi viz has the -I, --ignore-prefix option, which would allow you to ignore paths with a certain prefix.

from pggb.

brettChapman avatar brettChapman commented on August 11, 2024

Hi @subwaystation

I needed to remove the consensus paths because they were getting in the way when using sequenceTubeMap. The plan was to visualise interactively in sequenceTubeMap for our end users (barley breeders and geneticists). Lots of consensus paths would just confuse the visualisation. I ended up running vg chunk on the entire graph to get gene chunks into sequenceTubeMap because it currently can not visualise the whole pangenome graph at once.

I ran this code to remove the consensus paths:

vg convert -g test_graph.gfa -p > test_graph.pg
vg index test_graph.pg -x test_graph.xg
vg paths -x test_graph.xg -L | grep Consensus > consensus_paths.txt
vg paths -v test_graph.pg -p consensus_paths.txt -d > test_graph.noConsensus.vg
vg index test_graph.noConsensus.vg -x test_graph.noConsensus.xg

from pggb.

subwaystation avatar subwaystation commented on August 11, 2024

Seems like this is solved as mentioned in pangenome/odgi#282.

from pggb.

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.