Closed gunjangala closed 7 years ago
Hi - I can reproduce your error if the test and control files are the same:
~/git_repos/SICERpy/SICERpy/SICER.py -t control.bam -c control.bam > /dev/null
*** Preprocess raw files to remove reduntant reads
cd /home/db291g/Tritume/ex/tmp_sicer_MKqMGM/tmp_control.bam_dir
export PYTHONPATH=/home/db291g/git_repos/SICERpy/SICERpy/lib
/home/db291g/python/bin/python /home/db291g/git_repos/SICERpy/SICERpy/src/remove_redundant_reads_bam.py -t 0 -b /home/db291g/Tritume/ex/control.bam -o /home/db291g/Tritume/ex/tmp_sicer_MKqMGM/control.bam.removed.bam -f 0 -F 4 -q 5
Traceback (most recent call last):
File "/home/db291g/git_repos/SICERpy/SICERpy/SICER.py", line 153, in <module>
os.makedirs(tmpRedDir)
File "/home/db291g/python/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/home/db291g/Tritume/ex/tmp_sicer_MKqMGM/tmp_control.bam_dir'
This happens because the tmp directories are created after the input files. This is not great and I should change it, but typically it doesn't make sense to have such set up!
Can you check your test and control files happen to be the same?
EDIT: This happens even when file names are the same but live in different directories. Definitely, this should change.
Thanks for reporting this issue. Dario
Hi again- I just changed SICER.py to fix this bug. If you download the new script you should have this problem sorted. Let me know if there are more issues...
Dario
The file names were same though present in different directories. Changing them fixed the error. Thanks for pointing it out. -Gunjan
Oh great! I will try that and let you know. Thanks, Gunjan
Hi, I have used SICERpy before and it worked well. But, this time it gives me the following error.
There is no such file/folder 'tmp_sicer_L8kz2w/tmp_alignments.bam_dir' present. Can you please help me fix this?
Thanks, Gunjan