weird python error
1
0
Entering edit mode
4.4 years ago
2405592M ▴ 140

Hi people!

I downloaded this program and I'm trying to generate a tRNA database but I keep getting the following error:

Traceback (most recent call last):
  File "maketrnadb.py", line 73, in <module>
    getmaturetrnas.main(trnascan=[scanfile], genome=genomefile,gtrnafa=gtrnafafile,bedfile=dbname+"-maturetRNAs.bed",maturetrnatable=dbname+"-trnatable.txt",trnaalignment=dbname+"-trnaalign.stk",locibed=dbname+"-trnaloci.bed",maturetrnafa=dbname+"-maturetRNAs.fa")
  File "/mnt/data/BMOHAMED/TRAX/tRAX-master/getmaturetrnas.py", line 113, in main
    cmrun = subprocess.Popen(cmcommand, stdout = devnull)
  File "/home/bmohamed/miniconda2/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/home/bmohamed/miniconda2/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I can't figure out what file/directory (if any) is missing.

Please Help !!

Thanks in advance

python OSError • 819 views
ADD COMMENT
0
Entering edit mode

What command are you calling? It sounds like you're missing arguments.

ADD REPLY
0
Entering edit mode
4.4 years ago

Just by looking at the maketrnadb command, you're either missing one of the required files, or it's in a different directory than the one you are calling the script from.

maketrnadb.py --databasename=dbname --genomefile=genome.fa --trnascanfile=trnascan.txt --gtrnafafile=db-tRNAs.fa
ADD COMMENT

Login before adding your answer.

Traffic: 1487 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6