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 untangle multiple reference file - potential bug #581

Open
Catriona-Miller opened this issue Jul 8, 2024 · 3 comments
Open

odgi untangle multiple reference file - potential bug #581

Catriona-Miller opened this issue Jul 8, 2024 · 3 comments

Comments

@Catriona-Miller
Copy link

Hi,

I have been trying to use chm13 instead of grch38 as a reference file for odgi untangle with the same code as your readthedocs tutorial. Since there are two chm13 paths for the areas I'm interested in, I've been using the -R flag with a file that lists the paths (e.g. attached) such as below:

(echo query.name query.start query.end ref.name ref.start ref.end score inv self.cov n.th | tr ' ' '\t'; odgi untangle -i VKORC1_gene_sorted.og -R target_chm13.txt --threads 8 -m 256 -P | bedtools sort -i - ) | awk '$8 == "-" { x=$6; $6=$5; $5=x; } { print }' | tr ' ' '\t' > chr16_chm13_VKORC1_untangle1.bed

However, reading the outputted bed file into R, it only ever uses one of the two chm13 paths as a reference. I've tried adding an extra blank line at the start of target_chm13.txt and tried swapping the order of the two paths but it always uses the second path as a reference. Unsure if this is a bug or a misunderstanding of the process on my end.
Thanks
target_chm13.txt

@ekg
Copy link
Contributor

ekg commented Jul 9, 2024 via email

@AndreaGuarracino
Copy link
Member

AndreaGuarracino commented Jul 11, 2024 via email

@Catriona-Miller
Copy link
Author

Thanks both. I set -n 2 but still I only ever get the second path as the ref path in output. E.g. see the two files that are output for the below code. The only difference is the order I've listed the two paths in target_chm13.txt

(echo query.name query.start query.end ref.name ref.start ref.end score
inv self.cov n.th | tr ' ' '\t'; odgi untangle -i VKORC1_gene_sorted.og
-R target_chm13.txt --threads 8 -m 256 -P -n 2 | bedtools sort -i - ) | awk '$8
== "-" { x=$6; $6=$5; $5=x; } { print }' | tr ' ' '\t' >
chr16_chm13_VKORC1_untangle1.bed

chr16_chm13_VKORC1_untangle_trial.txt
chr16_chm13_VKORC1_untangle_trial2.txt

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

3 participants