Question: CONTRA ERRORS (need urgent help!!!)
0
gravatar for Jackie
4.3 years ago by
Jackie70
United States
Jackie70 wrote:

I am using CONTRA for CNV detection. I have run it successfully once. However, I was trying to run CONTRA again last week, it keeps giving me these errors:

-----------------------------------

Process Process-1:
Process Process-2:
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/lib64/python2.6/multiprocessing/process.py", line 232, in _bootstrap
  File "/usr/lib64/python2.6/multiprocessing/process.py", line 232, in _bootstrap
    self.run()
    self.run()
  File "/usr/lib64/python2.6/multiprocessing/process.py", line 88, in run
  File "/usr/lib64/python2.6/multiprocessing/process.py", line 88, in run
    self._target(*self._args, **self._kwargs)
    self._target(*self._args, **self._kwargs)
  File "/mnt/gfsusr/files/data/bin/CONTRA.v2.0.6/contra.py", line 371, in convertBam
  File "/mnt/gfsusr/files/data/bin/CONTRA.v2.0.6/contra.py", line 371, in convertBam
    output      = subprocess.Popen(args, stdout = iOutFile).wait()
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    output      = subprocess.Popen(args, stdout = iOutFile).wait()
    raise child_exception
  File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
OSError: [Errno 2] No such file or directory
    errread, errwrite)
  File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/mnt/gfsusr/files/data/bin/CONTRA.v2.0.6/contra.py", line 613, in <module>
    main()
  File "/mnt/gfsusr/files/data/bin/CONTRA.v2.0.6/contra.py", line 583, in main
    t1 = int(file.readlines(open(folder+"temp.txt"))[0].strip("\n"))
IOError: [Errno 2] No such file or directory: '/mnt/gfsusr/files/data/test/seqdata/All_Cases/project_TD_QC_test1/test1_20150728/project_TD_QC_test1_TD/calls/contra/buf/testData/temp.txt'

---------------------------------

Does this seem a python issue? I have also downloaded python version 2.7, but I have got the same error messages.

Can anyone help me on this?

Thanks,

-J

 

 

 

 

 

software error • 1.7k views
ADD COMMENTlink modified 22 months ago by Biostar ♦♦ 20 • written 4.3 years ago by Jackie70

Hi Dan, thanks for the reply. I think that is an intermediate file generated by CONTRA. I thought it was because python could not run properly (look at the first several lines), thus this temp.txt file could not be generated...

-J

ADD REPLYlink modified 9 days ago by RamRS24k • written 4.3 years ago by Jackie70

Can you verify that this directory exists?

/mnt/gfsusr/files/data/test/seqdata/All_Cases/project_TD_QC_test1/test1_20150728/project_TD_QC_test1_TD/calls/contra/buf/testData/
ADD REPLYlink modified 9 days ago by RamRS24k • written 4.3 years ago by Dan D6.9k
1
gravatar for Dan D
4.3 years ago by
Dan D6.9k
Tennessee
Dan D6.9k wrote:

Did you read the error trace carefully? Look at the last line. It's pretty clearly stating that it can't find the directory you pointed it to:

  File "/mnt/gfsusr/files/data/bin/CONTRA.v2.0.6/contra.py", line 583, in main
    t1 = int(file.readlines(open(folder+"temp.txt"))[0].strip("\n"))
IOError: [Errno 2] No such file or directory:'/mnt/gfsusr/files/data/test/seqdata/All_Cases/project_TD_QC_test1/test1_20150728/project_TD_QC_test1_TD/calls/contra/buf/testData/temp.txt'
ADD COMMENTlink modified 9 days ago by RamRS24k • written 4.3 years ago by Dan D6.9k

Hi Dan, I have checked that. The path

'/mnt/gfsusr/files/data/test/seqdata/All_Cases/project_TD_QC_test1/test1_20150728/project_TD_QC_test1_TD/calls/contra/buf/testData'

is there, but the temp.txt file was not successfully generated by CONTRA. The whole 'contra/but/testData/' directory was all generated by CONTRA.

ADD REPLYlink modified 9 days ago by RamRS24k • written 4.3 years ago by Jackie70
0
gravatar for stam
3.3 years ago by
stam0
stam0 wrote:

I'm a bit late replying, but the original error of this thread is caused by a missing part of bedtools: Contra cannot find: convertBam

Make sure to reinstall bedtools as described in the contra documentation and double check that all bedtools executables are available in your $PATH.

ADD COMMENTlink written 3.3 years ago by stam0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 858 users visited in the last hour