Comments (8)
The code is here. Just a DFS. I think it doesn't guarantee to find all nodes within a radius, but the nodes it finds should be ok.
Lines 6 to 43 in 5f7fe55
from gfatools.
Probably I should change DFS to BFS...
from gfatools.
Got you! Do I understand correctly that the current implementation will produce weird result in a quite common case of querying the subgraph around the path in the graph?
from gfatools.
the current implementation will produce weird result in a quite common case of querying the subgraph around the path in the graph?
I don't think so. The nodes gfatools brings should be correct.
from gfatools.
Maybe I am missing something, but it seems that if I ask for radius 3 then when I start with the first segment in the path I will reach the 4-th segment from it. Then 4-th segment will already be visited and we will not start the 'fresh' DFS from it, missing its neighbours. I can try to allocate some time next week to provide an example missing relevant vertices.
from gfatools.
gfatools may have false negatives, but it should not have false positives. If you can provide an example, I can explore BFS. Thanks.
from gfatools.
You are correct, it will not have false positives. If you think that false negatives are not a problem please close the issue :)
from gfatools.
Thanks for the confirmation. I will mark this as a question and close it. Nonetheless, I still want to come back to subgraph extraction at some point to address the false negative part. BFS sounds the better approach anyway.
from gfatools.
Related Issues (20)
- Format clarification HOT 2
- Fields in bubble output HOT 1
- blacklisting region from a region file
- gfa view subgraph radius definition HOT 4
- Is there support for translation between stable coordinate and segment/local coordinate for GAF? HOT 1
- Add a License HOT 4
- can I convert single line path from complex structures into fasta files HOT 1
- GFA2 format from miniasm not properly converting to fasta HOT 1
- About "--bf" the bloom filter
- gfatools bubble doesn't work on GFA after bubble popping with gfatools asm
- conversion of GFA to rGFA HOT 4
- Invalid GAF is produced HOT 1
- "A" line produced by gfatools asm
- Can I extract path sequences from GFA or rGFA by pathname?
- meaning of NM:i:5 AS:f:56.3 dv:f:0.0694444 id:f:0.930556 cg:Z:4=1X2=1I38=1D5=1I5=1X13=? HOT 2
- How to convert fastG to GFA?
- Using `gfatools asm`
- The question about format of fasta using gfatoos gfa2fa
- Online GfaViewer on gfaServer HOT 5
- gfatools view to subset a gfa file HOT 2
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 gfatools.