# MACS peaks calling from bedgraph data, ChIP-Seq

**URL:** <https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470>\
**Category:** usegalaxy.eu support\
**Tags:** macs2\
**Created:** [June 4, 2019, 4:40pm UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470 "2019-06-04T16:40:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shamjdeed](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@shamjdeed](https://help.galaxyproject.org/u/shamjdeed)\
**Post date:** [June 4, 2019, 4:40pm UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/1 "2019-06-04T16:40:34Z")

</div>

Hello,  
Please I want to call the peaks from bigwig file, so I converted it to bedgraph formate, and run MACS, it worked really fine and I got the output, however suddenly it turned red and gave me this message:  
The job creating this dataset has been resubmitted

```auto
 NFO @ Sun, 02 Jun 2019 12:45:55: 
# Command line: callpeak -t /data/dnb02/galaxy_db/files/009/613/dataset_9613622.dat --name bigWigToBedGraph_on_data_13 --format BAM --gsize 2700000000 --keep-dup 1 --qvalue 0.05 --mfold 5 50 --bw 300
# ARGUMENTS LIST:

```

I have no idea what happened! and how to fix it!  
Could you please help me!  
Thank you in advance!  
Sham

---

<div class="post-metadata">

**Author:** ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)\
**Post date:** [June 4, 2019, 7:52pm UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/2 "2019-06-04T19:52:10Z")

</div>

Hi @shamjdeed

What public server are you working at?

Appears to be Galaxy EU [https://usegalaxy.eu](https://usegalaxy.eu). But please confirm.

If working somewhere else, please note the URL (if public) or describe more about your local/cloud Galaxy (what Galaxy version, where/how you sourced and installed it, last time it was updated).

There are some known issues with metadata assignments with a fix in progress but not finalized yet/deployed to all public servers yet.

Meanwhile, allow the job to rerun. If it fails, try running it again. As far as I know, only some clusters are presenting with this problem as a server-side issue (or at least at Galaxy Main [https://usegalaxy.org](https://usegalaxy.org) – which doesn’t automatically rerun failed jobs, so you are not working there).

The problem could also be due to inputs, parameters, or other issues. Once we know where you are working, we can follow-up based on that information.

Thanks!

cc @bjoern.gruening @hexylena @nate

---

<div class="post-metadata">

**Author:** ![shamjdeed](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@shamjdeed](https://help.galaxyproject.org/u/shamjdeed)\
**Post date:** [June 5, 2019, 8:10am UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/3 "2019-06-05T08:10:07Z")

</div>

Hello @ jennaj,  
Thank you for your reply  
Yes I am using Galaxy EU, and I am in Hungary! (Galaxy Version 2.1.1.20160309.6), I did not install it I use it on line after signing in in my account!  
I run it again and it did not work!  
Thank you!

---

<div class="post-metadata">

**Author:** ![shamjdeed](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@shamjdeed](https://help.galaxyproject.org/u/shamjdeed)\
**Post date:** [June 6, 2019, 9:37am UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/4 "2019-06-06T09:37:45Z")

</div>

Hello @ jennaj,  
Thank you for your reply  
Yes I am using Galaxy EU, and I am in Hungary! (Galaxy Version 2.1.1.20160309.6), I did not install it I use it on line after signing in in my account!  
I run it again and it did not work!  
Thank you

---

<div class="post-metadata">

**Author:** ![hexylena](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/hexylena/32/4171_2.png) [@hexylena](https://help.galaxyproject.org/u/hexylena)\
**Post date:** [June 7, 2019, 3:13pm UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/5 "2019-06-07T15:13:22Z")

</div>

Hi @shamjdeed

Whenever you have errors like these, we recommend submitting a bug report. That’s often a fast way to get help.

Looking at the `(i)` information icon, and checking the `stderr` and `stdout`, I see the following.

```auto
INFO @ Sun, 02 Jun 2019 12:45:55: 
# Command line: callpeak -t /data/dnb02/galaxy_db/files/009/613/dataset_9613622.dat --name bigWigToBedGraph_on_data_13 --format BAM --gsize 2700000000 --keep-dup 1 --qvalue 0.05 --mfold 5 50 --bw 300
# ARGUMENTS LIST:
# name = bigWigToBedGraph_on_data_13
# format = BAM
# ChIP-seq file = ['/data/dnb02/galaxy_db/files/009/613/dataset_9613622.dat']
# control file = None
# effective genome size = 2.70e+09
# band width = 300
# model fold = [5, 50]
# qvalue cutoff = 5.00e-02
# Larger dataset will be scaled towards smaller dataset.
# Range for calculating regional lambda is: 10000 bps
# Broad region calling is off
# Paired-End mode is off
 
INFO @ Sun, 02 Jun 2019 12:45:55: #1 read tag files... 
INFO @ Sun, 02 Jun 2019 12:45:55: #1 read treatment tags... 
Exception struct.error: 'unpack requires a string argument of length 4' in 'MACS2.IO.Parser.BAMParser.tsize' ignored
Traceback (most recent call last):
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/bin/macs2", line 4, in <module>
    __import__ ('pkg_resources').run_script('MACS2==2.1.1.20160309', 'macs2')
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/pkg_resources/ __init__.py", line 750, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/pkg_resources/ __init__.py", line 1534, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/MACS2-2.1.1.20160309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 617, in <module>
    
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/MACS2-2.1.1.20160309-py2.7-linux-x86_64.egg/EGG-INFO/scripts/macs2", line 57, in main
    
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/MACS2-2.1.1.20160309-py2.7-linux-x86_64.egg/MACS2/callpeak_cmd.py", line 73, in run
  File "/usr/local/tools/_conda/envs/mulled-v1-9745eaf08708c75d5cb939b005b2fbbcc13ccefcb86602af9e1bf012d47be274/lib/python2.7/site-packages/MACS2-2.1.1.20160309-py2.7-linux-x86_64.egg/MACS2/callpeak_cmd.py", line 399, in load_tag_files_options
  File "MACS2/IO/Parser.pyx", line 880, in MACS2.IO.Parser.BAMParser.build_fwtrack (MACS2/IO/Parser.c:13703)
  File "MACS2/IO/Parser.pyx", line 893, in MACS2.IO.Parser.BAMParser.build_fwtrack (MACS2/IO/Parser.c:13111)
  File "MACS2/IO/Parser.pyx", line 877, in MACS2.IO.Parser.BAMParser.get_references (MACS2/IO/Parser.c:12886)
struct.error: unpack requires a string argument of length 4

```

maybe this is helpful to you?

---

<div class="post-metadata">

**Author:** ![shamjdeed](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@shamjdeed](https://help.galaxyproject.org/u/shamjdeed)\
**Post date:** [July 13, 2019, 7:36am UTC](https://help.galaxyproject.org/t/macs-peaks-calling-from-bedgraph-data-chip-seq/1470/6 "2019-07-13T07:36:54Z")

</div>

Thank you for your help!
