Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of using vg view / generating dot files #7

Closed
ryan-williams opened this issue Mar 11, 2015 · 9 comments
Closed

Examples of using vg view / generating dot files #7

ryan-williams opened this issue Mar 11, 2015 · 9 comments

Comments

@ryan-williams
Copy link
Member

There don't seem to be any, from what I can see.

It seems like the default behavior emits GFA.

@ekg
Copy link
Member

ekg commented Mar 11, 2015

Here's how you output dot format:

vg view -d x.vg >x.dot

Every tool in vg is self-documenting. Just add -h or --help to the command line.

Also, any graph output can be piped into any other program. So you can pick up a tiny bit of one graph and then pipe it into vg view or vg align. For example, here we can index a graph we've made, then pick up the node with id 50 and its neighbors (defined by a BFS search with up to 5 steps):

vg index -s x.vg
vg find -n 50 -c 5 x.vg | vg view -d - | dot -Tpng -o barrio50.png

These should be added to the documentation. My preference is to start documenting things on the wiki.

@ryan-williams
Copy link
Member Author

cool, thanks @ekg. I'm happy to add some documentation things as I play around with vg a bit; are you suggesting creating this repo's GitHub wiki? Do you envision the README remaining a/the main source of documentation?

Also, while we're here, any interest in making some of the unchecked boxes from the README into issues?

@ekg
Copy link
Member

ekg commented Mar 14, 2015

I think we should start the wiki. The readme should be shorter and more
clear so people don't get confused.

And the unchecked boxes should absolutely be issues. It hasn't been an..
Issue because its been just me for the past four months. Pick your favorite
and let's jam.
On Mar 13, 2015 8:46 PM, "Ryan Williams" notifications@github.com wrote:

cool, thanks @ekg https://github.com/ekg. I'm happy to add some
documentation things as I play around with vg a bit; are you suggesting
creating this repo's GitHub wiki? Do you envision the README remaining
a/the main source of documentation?

Also, while we're here, any interest in making some of the unchecked boxes
from the README into issues?


Reply to this email directly or view it on GitHub
#7 (comment).

@ekg
Copy link
Member

ekg commented Mar 27, 2015

Have you had a chance to experiment further?

@ryan-williams
Copy link
Member Author

Sorry for the radio silence, was traveling and otherwise preoccupied but have time to work on variant-graph-related things now. Beginning the "empty checkbox" -> issue migration now, wave me off if that's not a good idea!

@ekg
Copy link
Member

ekg commented Apr 14, 2015

No, it's great! Go for it. Will you be interested in working on development?
On Apr 14, 2015 8:06 PM, "Ryan Williams" notifications@github.com wrote:

Sorry for the radio silence, was traveling and otherwise preoccupied but
have time to work on variant-graph-related things now. Beginning the "empty
checkbox" -> issue migration now, wave me off if that's not a good idea!


Reply to this email directly or view it on GitHub
#7 (comment).

@ryan-williams
Copy link
Member Author

Interested for sure; not sure I should commit to anything yet but if you have suggestions for pieces I could bite off easily I am all ears. I have yet to use vg beyond running it on its own test cases and trying to follow the GA4GH discussion around sub-graphs vs. side-graphs.

I've been thinking a lot (and coding a little) about what a good, interactive, web-based graph-viz story would look like. Can take that discussion over to #8 though.

@ekg
Copy link
Member

ekg commented Apr 14, 2015 via email

@ryan-williams
Copy link
Member Author

That sounds good @ekg; I don't see your email here but mine is ryan.blake.williams@gmail.com if you want to shoot me a note; setting up a call or something sounds great.

@ekg ekg closed this as completed Nov 23, 2015
@ekg ekg mentioned this issue Apr 5, 2019
xchang1 added a commit that referenced this issue Dec 6, 2021
@xiaoguizz xiaoguizz mentioned this issue Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants