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

Issue executing pafCoordsDotPlotly.R #20

Open
jsromanowski opened this issue May 10, 2023 · 3 comments
Open

Issue executing pafCoordsDotPlotly.R #20

jsromanowski opened this issue May 10, 2023 · 3 comments

Comments

@jsromanowski
Copy link

Hello all,

I have downloaded pafCoordsDotPlotly.R and have created a .paf file with my two .fa files using minimap2.
I am now trying to create my dot plot, however I am having issues executing pafCoordsDotPlotly.R in my terminal.

I used the following command:

"pafCoordsDotPlotly.R -i AaegL5.chrom1.minimap2.paf -o AaegL5.chrom1.plot -s -t 95"

I receive the following error:

"pafCoordsDotPlotly.R: command not found"

note: I am operating in the directory where the pafCoordsDotPlotly.R script is saved.

Any idea how to fix this?
Thanks

@emistasis
Copy link

I know this issue is almost a year old, but I figured I'd drop in with a possible way to resolve it in case any future users run into it.

My recommendation is to just run the script within RStudio. Make sure that you install the necessary packages beforehand, and then you should be able to run the script as follows:

install.packages(c("optparse", "ggplot2", "plotly"))

DotPlotly_lines <- paste("Rscript",
                         "pafCoordsDotPlotly.R",
                         "-i input.paf",
                         "-o output",
                         "-s",
                         "-t")
system(DotPlotly_lines)

Hope this helps!

@lonelyjoeparker
Copy link

It's a decent workaround. Would be helpful if the OP @jsromanowski posted OS and shell information to reproduce the error tho, plus ideally whether they've been able to run the example files and it's just their .paf which aren't working.

@lonelyjoeparker
Copy link

@emistasis if you're in contact with @tpoorten could you ask them to have a look at my PR #23 for issue #18 ? Ta!

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