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

odgi flip -r/--ref-flips: flip with respect to a set of paths (used as references) #585

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

AndreaGuarracino
Copy link
Member

This helps preserve coordinate systems on paths (ref paths) that should not be reversed and orient all other paths on those ref paths.

Input graph:

odgi viz -i x.og -o x.png -z

x

Flipped graph:

odgi flip -i x.og -o - | odgi viz -i - -o x.png -z

x

Flipped graph by not flipping the chm13#chr6:31825263-31908622 path:

odgi flip -i x.og -o - -n <(echo chm13#chr6:31825263-31908622) | odgi viz -i - -o x.png -z

x

Flipped graph w.r.t. the chm13#chr6:31825263-31908622 path:

odgi flip -i x.og -o - -r <(echo chm13#chr6:31825263-31908622) | odgi viz -i - -o x.png -z

x

@AndreaGuarracino
Copy link
Member Author

It may also be useful to flip the graph nodes, not only paths.

@AndreaGuarracino AndreaGuarracino merged commit 2151dd8 into master Aug 9, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant