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

Translating path coordinates to flattened pangenome coordinates #533

Open
gputzel opened this issue Sep 28, 2023 · 1 comment
Open

Translating path coordinates to flattened pangenome coordinates #533

gputzel opened this issue Sep 28, 2023 · 1 comment

Comments

@gputzel
Copy link

gputzel commented Sep 28, 2023

I have a pangenome with two paths, from which I have created a flattened pangenome (FASTA file) using odgi flatten. I also have a bed file with feature coordinates specific to a path. I understand that using odgi position I can translate those coordinates into pangenome coordinates (node, offset, strand). Is there a way to convert those, in turn, into coordinates associated with the flattened pangenome generated by odgi flatten?

@gputzel gputzel closed this as completed Sep 28, 2023
@gputzel gputzel reopened this Sep 28, 2023
@subwaystation
Copy link
Member

As far as I understood, the output of odgi flatten is the pangenomic sequence. And you want to translate a given path and nucleotide position to a pangenome position. You can do this with odgi panpos. First build a path index using odgi pathindex. Then you can feed this and the graph into odgi panpos.
There also exists odgi server where the idea is to keep the graph and the index in memory all the time so you can ask such queries without the I/O overloads of odgi panpos.

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