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

Cutadapt permission denied #1192

Closed
ntromas opened this issue Nov 5, 2020 · 5 comments
Closed

Cutadapt permission denied #1192

ntromas opened this issue Nov 5, 2020 · 5 comments

Comments

@ntromas
Copy link

ntromas commented Nov 5, 2020

Hi Ben,

I wonder if you have already met this issue with Rstudio.
When I added the path to cutadapt, system2(cutadapt, args= "--version") gave me:
sh:1: path cutadapt: permission denied

I guess I need to give privileges to RStudio but not sure how. Any idea?

Cheers,

Nico

@benjjneb
Copy link
Owner

benjjneb commented Nov 5, 2020

Do you have control over the filestystem that cutadapat is on?
If it's a unix-like, you can use chmod to change the permissions to allow anyone to execute cutadapt. `chmod 777 path/to/cutadapt-binary'

@ntromas
Copy link
Author

ntromas commented Nov 5, 2020

It works now. The issue was that I installed cutadapt during an open session of RStudio. When I reload RStudio it worked...
Thanks for your quick advice!

Cheers

@ntromas
Copy link
Author

ntromas commented Nov 23, 2020 via email

@benjjneb benjjneb closed this as completed May 3, 2021
@marwa38
Copy link

marwa38 commented Oct 30, 2022

Hi @benjjneb

Anyway to use cutadapt in rstudio that I am using in UNIX?
I installed via bioconda in unix but couldn't use in r when I tried library().
Any way to compile the source code in unix and then use in R? give me more details please so that I could try
I tried to use .exe but got the error: sh: 1: ./cutadapt.exe: Exec format error in r and in Unix I got bash: ./cutadapt.exe: cannot execute binary file: Exec format error which makes sense I know I can't use this .exe in UNIX

thank you
M

@benjjneb
Copy link
Owner

benjjneb commented Nov 3, 2022

@marwa38

cutadapt is a command line program, it is not run in R. You can use system calls in R to run command line functions, see the ITS tutorial for an example of that.

In order to use cutadapt in unix, you will need to install it there. See: https://cutadapt.readthedocs.io/en/stable/installation.html

I'm not sure how you did this before, but there shouldn't be an .exe files involved, as those are executable files on Windows, and won't run on unix.

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