Comments (6)
I'm looking forward to the release of 0.8.0! Bandage has been very useful for me.
from bandage.
That wouldn't be too hard, but I should reiterate here that Bandage still doesn't support complex overlaps (with insertions/deletions). Even mismatches aren't really supported - if you extracted a path sequence through an overlap with a mismatch, the resulting sequence will always have the base from the earlier node in the path.
In the almost-finished release of Bandage (v0.8.0, now on the master branch), I did add a graph information dialog window which, among other things, shows the overlap range in the graph. So if that graph you're using has only one overlap size (as is the case for a SPAdes graph), then this will tell your answer. But if your graph has multiple different overlap sizes, then it won't help.
Can I ask: do your graphs have varying overlap sizes? And do they have (eek!) complex overlaps with mismatches and indels?
from bandage.
Can I ask: do your graphs have varying overlap sizes?
Yes, ABySS has varying overlap sizes.
And do they have (eek!) complex overlaps with mismatches and indels?
No, but this is typical of a GFA file output by @lh3's nanoasm
.
from bandage.
+1 for this feature request.
The case that I find myself in need of this feature is when looking at the larger variants, e.g. when a heterozygous SNP/small indel (true or not) site creates a bubble or tail, but the bubble/tail actually creates a noise in the graph.
It would be nice to be able to crush a bubble, or cut a tail if the mismatch is less than a certain value.
from bandage.
Steve,
I am planning on revamping the Bandage labels, including adding stuff like edge labels, so this feature is coming - I promise! Hopefully not too far in the future... ๐
Regarding your workflow for removing bubbles/tails, there is a way to manually do this. Bandage has some graph-editing functionality, though it's not particularly fleshed out.
If you have a simple bubble like this:
You can select the node you want to delete:
And then use Edit + Remove selection from graph (or shift-delete):
Then to simplify the graph you can use Edit + Merge all possible nodes:
And finally you might want to redraw the graph to make it look nice:
The Output menu then has options for saving your modified graph file to GFA. Be careful when editing, as there's no undo! (That would not be trivial to implement...)
This process will also work for getting rid of loose ends in the graph:
This process is manual and somewhat labour-intensive, and I'm not sure how many bubbles/tails you need to clean up. An automated way of doing this would be possible, but it would of course need a lot of parameters: how to choose which bubble path to keep, max size to simplify, etc. If you're interested in an automated approach, I'd be curious for your thoughts on this. What automated logic would be most useful for graph simplification?
from bandage.
For bubble popping ABySS has the PopBubbles
program at https://github.com/bcgsc/abyss/blob/master/PopBubbles/PopBubbles.cpp
For tip trimming, ABySS has the abyss-filtergraph
program at https://github.com/bcgsc/abyss/blob/master/FilterGraph/FilterGraph.cc
Both come with ABySS, and you can install them easily on Mac or Linux using Homebrew or Linuxbrew.
Both support GFA and Graphviz (.gv or .dot) format graphs.
from bandage.
Related Issues (20)
- export bubble unitigs?
- Are you guys still working on this? HOT 1
- Install error 1 HOT 2
- Load CSV data - extension request HOT 2
- "save path sequence to fasta" command line option HOT 1
- mac shortcut key problem HOT 1
- Bandage AppImage/AppDir requires the shared libraries libGL.so.1, libfontconfig.so.1, and libfreetype.so.6 HOT 5
- tilting BLAST hits titles
- Overlaps counted twice in "Total length (no overlaps)" calculation? HOT 1
- Packaging and compiling Bandage
- fasta file from other assembly
- What is the shape representing?
- Bandage image HOT 1
- can bandage display a verkko assembly?
- help with compiling for bioconda HOT 3
- Add size scale to static pngยดs.
- Issue in opening mac terminal
- Can't open graph path files
- install error HOT 8
- Node Custom Properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bandage.