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

move legend to up and fix y-axis inward if using different ymax #1078

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
debug --repgrplist if number matching number of samples
Xu, Beisi authored and Xu, Beisi committed Nov 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 01caa598f8125541d3a4d06b48a9f08387414553
28 changes: 12 additions & 16 deletions deeptools/plotProfile.py
Original file line number Diff line number Diff line change
@@ -751,24 +751,20 @@ def plot_profile(self):
if self.per_group and self.repgrplist:
nsamptmp = self.hm.matrix.get_num_samples()
repgrp_samp_dict = {}
if len(self.repgrplist) == nsamptmp:
for data_idx in range(nsamptmp):
repgrplistuniq = []
for tmp in self.repgrplist:
if not tmp in repgrplistuniq:
repgrplistuniq.append(tmp)

for data_idx in range(nsamptmp):
if len(self.repgrplist) >= nsamptmp:
thisrepgrp = self.repgrplist[data_idx]
try:
repgrp_samp_dict[thisrepgrp].append(data_idx)
except:
repgrp_samp_dict[thisrepgrp] = [ data_idx ]
else:
repgrplistuniq = []
for tmp in self.repgrplist:
if not tmp in repgrplistuniq:
repgrplistuniq.append(tmp)
for data_idx in range(nsamptmp):
else:
thisrepgrp = repgrplistuniq[int(data_idx / (nsamptmp/self.numlines))]
try:
repgrp_samp_dict[thisrepgrp].append(data_idx)
except:
repgrp_samp_dict[thisrepgrp] = [ data_idx ]
try:
repgrp_samp_dict[thisrepgrp].append(data_idx)
except:
repgrp_samp_dict[thisrepgrp] = [ data_idx ]

for irepgrp, repgrp in enumerate(repgrplistuniq):
sub_matrix_list = []