You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To build the graph you want. you can't just use vg construct; it is meant for when you have a linear reference and then variation expressed as a VCF. It won't align any of the sequences in your FASTA against each other.
I ususally recommend building a graph from sequences with the minigraph-cactus pipeline, but that's kind of heavyweight and meant for full assemblies, not tiny sequences.
Since your sequences are so short and can't make too much of a hairball, you might have good luck with the pggb tool for squashing them together into a graph. Or, you could make a multiple alignment MAF of them (maybe making the names be of the form assembly.contig first) and then take that through the maf2hal tool and then the hal2vg tool to turn it into a vg graph.
You can also try the old vg msga tool in vg to try and build a graph. It's old and unmaintained, but these sequences are short and so it shouldn't be able to get into trouble.
(You definitely can't vg index -g graph.gam graph.vg; that makes a .gcsa file. You get a .gam file by aligning sequencing reads with vg map or vg giraffe or GraphAligner.)
Than you need to get the tube map working. You've posted a screenshot of what looks like quite an old version of the tube map, maybe the old Docker version. I'd recommend using the current version by following the installation instructions, or since your file is small you can upload it to the online demo server which we updated a couple weeks ago.
If you want to use your file via upload you don't need to use the import scripts in the README. You can instead:
Set "Data" to "custom"
Click "Configure Tracks"
Click "+"
Change from "mounted" to "upload"
Hit the "Browse" button and pick your .vg file
Close the track configuration dialog by hitting the "X" button in the upper right corner
Click in the "Region" box and type coordinates on one of your paths to look at, like Par_chr1_7788452-7790085:1-141.
Click the "Go" button
If you want to download the image, you can click "Download Image". But you might run into #448 and need to fix the resulting image in Inkscape.
Activity
adamnovak commentedon Jun 14, 2024
It sounds like you want to take those sequences, align them together, produce a graph from that, and visualize it.
You have a FASTA like this:
To build the graph you want. you can't just use
vg construct; it is meant for when you have a linear reference and then variation expressed as a VCF. It won't align any of the sequences in your FASTA against each other.I ususally recommend building a graph from sequences with the minigraph-cactus pipeline, but that's kind of heavyweight and meant for full assemblies, not tiny sequences.
Since your sequences are so short and can't make too much of a hairball, you might have good luck with the pggb tool for squashing them together into a graph. Or, you could make a multiple alignment MAF of them (maybe making the names be of the form
assembly.contigfirst) and then take that through themaf2haltool and then thehal2vgtool to turn it into a vg graph.You can also try the old
vg msgatool in vg to try and build a graph. It's old and unmaintained, but these sequences are short and so it shouldn't be able to get into trouble.I got this graph from
vg msga:graph.vg.zip
(You definitely can't
vg index -g graph.gam graph.vg; that makes a .gcsa file. You get a .gam file by aligning sequencing reads withvg maporvg giraffeor GraphAligner.)Then you can visualize that with vg's built-in tools and GraphViz:
That looks kind of plausible.
Than you need to get the tube map working. You've posted a screenshot of what looks like quite an old version of the tube map, maybe the old Docker version. I'd recommend using the current version by following the installation instructions, or since your file is small you can upload it to the online demo server which we updated a couple weeks ago.
If you want to use your file via upload you don't need to use the import scripts in the README. You can instead:
Par_chr1_7788452-7790085:1-141.If you want to download the image, you can click "Download Image". But you might run into #448 and need to fix the resulting image in Inkscape.
[-]http://localhost:3210/ from own data[/-][+]Visualizing a graph from short sequences[/+]pbreeder commentedon Aug 30, 2024
Many thanks for your kind detail explanations.
All the best