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

Does the "odgi sort " truncate the path? #529

Open
hui-liu opened this issue Sep 15, 2023 · 1 comment
Open

Does the "odgi sort " truncate the path? #529

hui-liu opened this issue Sep 15, 2023 · 1 comment

Comments

@hui-liu
Copy link

hui-liu commented Sep 15, 2023

Hi,

Do you know why the path of h1 (it is the reference sequence) in the sorted graph is truncated?

(1) the original graph was visualized using odgi viz.

odgi viz -i h1.full.og \
-o Chr10.png \
-M odgi_paths \
-t 24

unsorted

(2) the sorted graph was visualized using odgi viz and path of h1 is truncated.

odgi sort \
-i h1.full.og \
-o h1.full.sort.og \
-t 24

odgi viz -i h1.full.sort.og \
-o h1.sorted.png \
-M odgi_paths \
-t 24

sorted

@hui-liu hui-liu changed the title Does the "odgi sort " will truncate the path? Does the "odgi sort " truncate the path? Sep 15, 2023
@subwaystation
Copy link
Member

Hi @hui-liu,

odgi sort does not truncate any path. I suspect you see an artifact of odgi viz's 1D binning. Each pixel corresponds to several nucleotides, for example 100. If at least 50 of such nucleotides are traversed by a path, the pixel is colored for this path. If you are still in doubt if the sorting truncated your path, you can always use odgi paths -l -L to validate the length of the path in questions.

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