Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Running error #6

Closed
wbyu opened this issue Apr 29, 2016 · 2 comments
Closed

Running error #6

wbyu opened this issue Apr 29, 2016 · 2 comments

Comments

@wbyu
Copy link

wbyu commented Apr 29, 2016

Hi Renser,

When I was using this command "python IOGA.py -r ~/reference/reference.fasta -n name -1 file_1.fq -2 file_2.fq -i 300 -t 5 -m 0 -v" to run, an error was reported as below:

Traceback (most recent call last):
File "/lustre/apps/bio-software/IOGA/IOGA.py", line 432, in
main(args.reference,args.name,args.forward,args.reverse,args.threads,args.insertsize,args.maxrounds,args.verbose)
File "/lustre/apps/bio-software/IOGA/IOGA.py", line 377, in main
source,FP,RP,final_iteration = IOGA_loop(name,ref,forward,reverse,insertsize,threads,maxrounds)
File "/lustre/apps/bio-software/IOGA/IOGA.py", line 350, in IOGA_loop
FP,RP = extract_reads(folder,prefix,rmdup_merged,forward,reverse)
File "/lustre/apps/bio-software/IOGA/IOGA.py", line 179, in extract_reads
for line in subprocess.check_output([config['samtools'],'view','-S',samfile],stderr=fnull).split('\n'):
File "/lustre/apps/bio-software/Anaconda2/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/lustre/apps/bio-software/Anaconda2/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/lustre/apps/bio-software/Anaconda2/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

Could you please tell me how to fix it? Thanks.

Best wishes,
Wen-Bin

@holmrenser
Copy link
Owner

Hi Wen-Bin,

It looks like the samtools that IOGA is running does not have the correct permissions, which results in the permission denied error. You can check what samtools is being used by IOGA by checking the config.json file in the folder where you installed IOGA.

Please let me know if you run into any additional problems.

@wbyu
Copy link
Author

wbyu commented Apr 29, 2016

Hi Renser,

Thanks for your prompt reply. Yes, this problem is permissions of samtools. It has fixed out, so it is working well now. Thank you again.
Best,
Wen-Bin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants