Skip to content

plotHeatmap --sortUsing region_length error #435

@dpryan79

Description

@dpryan79

This is courtesy of Carlos Guzman on the mailing list:

plotHeatmap -m CM_MNase_Regions_Ctrl -out HM_MNase_Regions_Ctrl.png --dpi 300 --colorMap RdBu --refPointLabel center --sortUsing region_length

produces:

Traceback (most recent call last):
  File "/usr/local/anaconda2/bin/plotHeatmap", line 7, in <module>
    main()
  File "/usr/local/anaconda2/lib/python2.7/site-packages/deeptools/plotHeatmap.py", line 584, in main
    sample_list=sortUsingSamples)
  File "/usr/local/anaconda2/lib/python2.7/site-packages/deeptools/heatmapper.py", line 1124, in sort_groups
    for x in self.regions])
TypeError: list indices must be integers, not str

It looks like we just need to x[2] - x[1] or something along those lines.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions