Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotProfile/plotHeatmap --perGroup broken with #groups > #samples #673

Closed
dpryan79 opened this issue Feb 27, 2018 · 1 comment
Closed

plotProfile/plotHeatmap --perGroup broken with #groups > #samples #673

dpryan79 opened this issue Feb 27, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@dpryan79
Copy link
Collaborator

From the mailing list:

I have recently updated deeptools to the latest 3.0 version and was trying to reproduce some of the plots that I have already successfully made in the past.

I would like to plot a profile for two bigwig files over a set of bed intervals.

computeMatrix scale-regions -R a.bed -S bigwig1.bw bigwig2.bw -a 10000 -b 10000 -bs 100 -m 20000 -out outmatrix

My bed file looks like this:

chr1    23100473    23102253    Gene_1    0    -
chr1    36778983    36782820    Gene_2    0    +
chr1    75385609    75432304    Gene_3    0    +

Different Groups of intervals are separated with a #Name on a new line.

I can run plotProfile -m outmatrix -o out.svg without any problems.

Although weirdly my metaplots are kind of flipped and displayed in an unusual orientation (TES first, TSS second. It always used to be, with exactly the same bed file, TSS on the left, TES on the right). But this is a minor problem.

The main problem is that when I try to run plotProfile -m outmatrix -o out.svg --perGroup I consistently get the same error:

Traceback (most recent call last):
  File "/usr/local/bin/plotProfile", line 11, in <module>
    main(args)
  File "/usr/people/me/.local/lib/python2.7/site-packages/deeptools/plotProfile.py", line 954, in main
    prof.plot_profile()
  File "/usr/people/me/.local/lib/python2.7/site-packages/deeptools/plotProfile.py", line 750, in plot_profile
    xticks, xtickslabel = self.getTicks(plot)
  File "/usr/people/me/.local/lib/python2.7/site-packages/deeptools/plotProfile.py", line 190, in getTicks
    xticks, xtickslabel = getProfileTicks(self.hm, self.reference_point_label[idx], self.start_label[idx], self.end_label[idx], idx)
IndexError: list index out of range

Presumably I mucked up an index somewhere. I've asked the user to provide the files so I can track this down quickly.

@dpryan79 dpryan79 self-assigned this Feb 27, 2018
@dpryan79 dpryan79 changed the title Potential issue with plotProfile --perGroup plotProfile/plotHeatmap --perGroup broken with #groups > #samples Feb 28, 2018
@dpryan79 dpryan79 added the bug label Feb 28, 2018
@dpryan79
Copy link
Collaborator Author

plotHeatmap is also broken. Realistically, anything made with computeMatrixOperations cbind is also broken.

@dpryan79 dpryan79 added this to the 3.0.1 milestone Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant