permission denied error
I added bedops-2.14.2 to path using:
export PATH=$PATH:"/media/C2F8EFBFF8EFAFB9/bedops-2.14.2"
and am trying to run:
dnascopev@ubuntu:/media/C2F8EFBFF8EFAFB9$ gunzip --stdout gencode.v21.annotation.gtf.gz \
> | gtf2bed - \
> | grep "exon" \
> > gencode.exons.bed
bash: /media/C2F8EFBFF8EFAFB9/bedops-2.14.2/bin/gtf2bed: Permission denied
I can not figure out why I am getting the error? Thank you :).
• 2,954 views
•
link
1 answer
It looks like the file isn't set as an executable or you lack privileges for that directory.
sudo chmod +x /media/C2F8EFBFF8EFAFB9/bedops-2.14.2/bin/gtf2bed
If that doesn't work, try moving the executable off of the media device and into a new directory such as /usr/local/bin
• 0 views
•
link
Log in to answer this question.
gtf2bedis not executable, not really a bioinformatics question, butchmod +xmight help youLMGTFY http://stackoverflow.com/questions/18960689
Hello cmccabe!
We believe that this post does not fit the main topic of this site.
Please Google. Ask stackoverflow if you must.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Thank you and I apologize :).
add this in
.bashrcfileexport PATH=$PATH:"/media/C2F8EFBFF8EFAFB9/bedops-2.14.2/"