Hi,
I have an intermitent problem with Macs2 callpeak when I use build model. It seems a problem with building model because I have no problem when I use --nomodel and a fixed extend size in the same sample
So I ran this command with MACS2 2.1.0.20151222
:
callpeak --name MACS2 -t treat.bam --format=BAM --gsize 2451960000 --bw=300 --ratio 1.0 --slocal 1000 --llocal 10000 --keep-dup 2 --bdg --pvalue 0.01
# ARGUMENTS LIST:
# name = MACS2
# format = BAM
# ChIP-seq file = ['treat.bam']
# control file = None
# effective genome size = 2.45e+09
# band width = 300
# model fold = [5, 50]
# pvalue cutoff = 1.00e-02
# qvalue will not be calculated and reported as -1 in the final output.
# Larger dataset will be scaled towards smaller dataset.
# Range for calculating regional lambda is: 10000 bps
# Broad region calling is off
INFO @ Fri, 15 Sep 2017 11:11:27: #1 read tag files...
INFO @ Fri, 15 Sep 2017 11:11:27: #1 read treatment tags...
INFO @ Fri, 15 Sep 2017 11:11:29: 1000000
INFO @ Fri, 15 Sep 2017 11:11:31: 2000000
INFO @ Fri, 15 Sep 2017 11:11:33: 3000000
...
...
...
INFO @ Fri, 15 Sep 2017 11:13:00: 48000000
INFO @ Fri, 15 Sep 2017 11:13:02: 49000000
INFO @ Fri, 15 Sep 2017 11:13:03: 50000000
INFO @ Fri, 15 Sep 2017 11:13:04: #1 tag size is determined as 16 bps
INFO @ Fri, 15 Sep 2017 11:13:04: #1 tag size = 16
INFO @ Fri, 15 Sep 2017 11:13:04: #1 total tags in treatment: 50000000
INFO @ Fri, 15 Sep 2017 11:13:04: #1 user defined the maximum tags...
INFO @ Fri, 15 Sep 2017 11:13:04: #1 filter out redundant tags at the same location and the same strand by allowing at most 2 tag(s)
INFO @ Fri, 15 Sep 2017 11:13:10: #1 tags after filtering in treatment: 50000000
INFO @ Fri, 15 Sep 2017 11:13:10: #1 Redundant rate of treatment: 0.00
INFO @ Fri, 15 Sep 2017 11:13:10: #1 finished!
INFO @ Fri, 15 Sep 2017 11:13:10: #2 Build Peak Model...
INFO @ Fri, 15 Sep 2017 11:13:18: #2 number of paired peaks: 9006
INFO @ Fri, 15 Sep 2017 11:13:18: start model_add_line...
INFO @ Fri, 15 Sep 2017 11:13:31: start X-correlation...
Traceback (most recent call last):
File "/data/galaxy-dist/tool_dependency/macs2/2.1.0.20151222/iuc/package_macs2_2_1_0_20151222/e1370f7d5e2f/bin/macs2", line 4, in <module>
__import__('pkg_resources').run_script('MACS2==2.1.0.20151222', 'macs2')
File "/data/galaxy-dist/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 748, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/data/galaxy-dist/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1524, in run_script
exec(script_code, namespace, namespace)
File "/data/galaxy-dist/tool_dependency/macs2/2.1.0.20151222/iuc/package_macs2_2_1_0_20151222/e1370f7d5e2f/lib/python/MACS2-2.1.0.20151222-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 614, in <module>
File "/data/galaxy-dist/tool_dependency/macs2/2.1.0.20151222/iuc/package_macs2_2_1_0_20151222/e1370f7d5e2f/lib/python/MACS2-2.1.0.20151222-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 56, in main
File "build/bdist.linux-x86_64/egg/MACS2/callpeak_cmd.py", line 175, in run
File "MACS2/PeakModel.pyx", line 108, in MACS2.PeakModel.PeakModel.__init__ (MACS2/PeakModel.c:2385)
File "MACS2/PeakModel.pyx", line 150, in MACS2.PeakModel.PeakModel.build (MACS2/PeakModel.c:2953)
File "MACS2/PeakModel.pyx", line 230, in MACS2.PeakModel.PeakModel.__paired_peak_model (MACS2/PeakModel.c:4209)
ValueError: max() arg is an empty sequence
Any idea ?
Thanks
Julie