Closed wkopp closed 6 years ago
@wkopp is this the latest MACS2 version from the toolshed? If you like, can you try to reproduce this error on http://galaxy.uni-freiburg.de.
Yes, this occurred with the latest version, Revision 9:acbd3fb47f90 (2018-01-25). I'll try to reproduce it on http://galaxy.uni-freiburg.de.
I have reproduced the issue on http://galaxy.uni-freiburg.de. You'll find the history here: https://galaxy.uni-freiburg.de/u/wkopp/h/macs2-issue
@wkopp what I figured out until now is that it works if you don't tick the PDF output. So its seems to be related to the PDF.
@wkopp in BAMPE mode MACS2 does not produce any PDF output. This potential fix should make it more obvious: https://github.com/galaxyproject/tools-iuc/compare/master...1691?quick_pull=1
Thanks to @mblue9 for debugging help this late :)
@wkopp if you like please test: https://github.com/galaxyproject/tools-iuc/pull/1698 It should fix our issue, by simply not generating the PDF if you are running in BAMPE mode.
@bgruening There has been a new release for macs2 (revision 10:f0b351e734b8 from 2018-01-31) which contains the fix. I saw that you already installed it on galaxy.uni-freiburg.de. So I just tried to test it again on the same data. Unfortunately, it still fails. See: https://galaxy.uni-freiburg.de/u/wkopp/h/macs2-issue. This time for a different reason:
Fatal error: Exit code 1 ()
cat: MACS2_model.r: No such file or directory
Thank you for the help!
Hi Wolfgang, sorry I did not update the wrapper in time. I did now and also fixed the older version. Should work now.
Dear IUC team,
I've encountered an issue when running the latest version of macs2 (revision acbd3fb47f90) on paired-end bam-files when requesting the 'html' output summary.
The Error produced is:
Fatal error: Exit code 2 ()
However, the output of the tool does not indicate any errors. It seems that it successfully finished the job:
The command that was invoked by Galaxy was the following:
export PYTHON_EGG_CACHE=
pwd&& (macs2 callpeak --name 'MACS2' -t '/data/galaxy/database/files/071/dataset_71461.dat' -c '/data/galaxy/database/files/071/dataset_71462.dat' --format BAMPE --gsize '2700000000' --keep-dup '1' --qvalue '0.05' --mfold '5' '50' --bw '300' 2>&1 > macs2_stderr) && Rscript MACS2_model.r > MACS2_model.r.log && ( count=
ls -1 MACS2 2>/dev/null | wc -l`; if [ $count != 0 ]; then mkdir '/data/galaxy/database/job_working_directory/040/40397/dataset_71874_files' && cp -r MACS2 '/data/galaxy/database/job_working_directory/040/40397/dataset_71874_files' && python '/data/galaxy/shed_tools/toolshed.g2.bx.psu.edu/repos/iuc/macs2/acbd3fb47f90/macs2/dir2html.py' '/data/galaxy/database/job_working_directory/040/40397/dataset_71874_files' macs2_stderr > '/data/galaxy/database/files/071/dataset_71874.dat'; fi; ) && exit_code_for_galaxy=$? && cat macs2_stderr 2>&1 && (exit $exit_code_for_galaxy)`I have tried to reproduce the error by running the above command on the command line. I found that macs2 indeed produces the output files correctly, but afterwards
mkdir '/data/galaxy/database/job_working_directory/040/40397/dataset_71874_files'
fails, because it cannot recursively create the output directory.I believe that
mkdir -p <path>
should be used there or am I mistaken?I have tried this locally by changing the command in the
macs2_callpeak.xml
. Now the output is created and visible inView data
in Galaxy after the job was finished. However, macs2 still fails withFatal error: Exit code 2 ()
even though on the command line I cannot reproduce the error anymore.Thank you for your help! Best, Wolfgang