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

mgutils.js path command use in graph construction #1

Open
wushyer opened this issue Nov 17, 2024 · 2 comments
Open

mgutils.js path command use in graph construction #1

wushyer opened this issue Nov 17, 2024 · 2 comments

Comments

@wushyer
Copy link

wushyer commented Nov 17, 2024

Hi, I tried to run the pipeline but encountered one issue, code listed below. I didn't find any minigraph version with mgutils.js run a path subcommand. Could you please check this issue? Thanks.

paste *.call.bed
| mgutils.js path pathPrefixes.$chrom.txt - \

$chrom.paths.mgutils.gfa

Best,
Shuangyang

@mb47
Copy link
Owner

mb47 commented Nov 18, 2024

Hi Shuangyang,

sorry about that -- I just had a look at this. The addition of the path command to this minigraph script was suggested in a pull request in 2022 (lh3/minigraph#77) but from what I can tell this hasn't been merged into the master.

I must have manually downloaded the modified version of the script from the pull request and then added it locally to my PATH. I'd suggest you do the same -- see https://github.com/lh3/minigraph/pull/77/files.

best
Micha

@wushyer
Copy link
Author

wushyer commented Nov 18, 2024

Thanks Micha.

I downloaded this version and tried the command, but encountered the error below. Do you have any insights into this issue? Thank you!

paste *.call.bed|k8 /scratch-cbe/users/shuangyang.wu/huaishu-9/minigraph-barley/scripts/graphConstruction/minigraph/misc/mgutils.js path pathPrefixes.Chr04.txt - > test.gfa
/scratch-cbe/users/shuangyang.wu/huaishu-9/minigraph-barley/scripts/graphConstruction/minigraph/misc/mgutils.js:1403: TypeError: Cannot read property 'length' of undefined
if (!paths[index].length) {
^
TypeError: Cannot read property 'length' of undefined
at mg_cmd_path (/scratch-cbe/users/shuangyang.wu/huaishu-9/minigraph-barley/scripts/graphConstruction/minigraph/misc/mgutils.js:1403:30)
at main (/scratch-cbe/users/shuangyang.wu/huaishu-9/minigraph-barley/scripts/graphConstruction/minigraph/misc/mgutils.js:1477:26)
at /scratch-cbe/users/shuangyang.wu/huaishu-9/minigraph-barley/scripts/graphConstruction/minigraph/misc/mgutils.js:1483:1

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