Skip to content

insulation score #54

Description

@jdmontenegro

Hi I am trying to to plot a HiCPro tri format file with the following code:

> python2 HiCPlotter.py -chr chr2 -n chr2 -tri 1 -bed Nv2_5k.bins.bed -f NVE_technau.q_0.5000.bins.tsv -o NVE_technau_q0_chr2 -r 5000 -gl 1 -g hox_genes.bed -im 1 -ext svg -w 100000 -pi 1
Traceback (most recent call last):
  File "/scratch/molevo/jmontenegro/software/HiCPlotter/HiCPlotter.py", line 2171, in <module>
    HiCplotter(**args)
  File "/scratch/molevo/jmontenegro/software/HiCPlotter/HiCPlotter.py", line 1397, in HiCplotter
    else: ax4.plot(np.arange(start,end),nums,'black')
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 4137, in plot
    for line in self._get_lines(*args, **kwargs):
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 317, in _grab_next_args
    for seg in self._plot_args(remaining, kwargs):
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 295, in _plot_args
    x, y = self._xy_from_xy(x, y)
  File "/apps/python2/2.7.18/lib/python2.7/site-packages/matplotlib/axes.py", line 237, in _xy_from_xy
    raise ValueError("x and y must have same first dimension")
ValueError: x and y must have same first dimension

If I remove the insulation score related parameters ("-w" and "-pi")

> python2 HiCPlotter.py -chr chr2 -n chr2 -tri 1 -bed Nv2_5k.bins.bed -f NVE_technau.q_0.5000.bins.tsv -o NVE_technau_q0_chr2 -r 5000 -gl 1 -g hox_genes.bed -im 1 -ext svg
Plotting now!!

I do not have an problems. What could be causing the error described above and how can I fix it?

Thank you.

Juan D. Montenegro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions