Skip to content

Commit

Permalink
Update bycon_plot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Jul 1, 2024
1 parent 3ce81a2 commit 64dcdb4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions services/lib/bycon_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def __process_plot_parameters(self):
else:
self.plv.update({p_k: str(p_d)})

# TODO: map potential NC_ values
k = "plot_chros"
p_cs = bps.get(k, [])
if len(p_cs) > 0:
self.plv.update({k: [ChroNames().chro(x) for x in p_cs]})
# # TODO: map potential NC_ values
# k = "plot_chros"
# p_cs = bps.get(k, [])
# if len(p_cs) > 0:
# self.plv.update({k: [ChroNames().chro(x) for x in p_cs]})


################################################################################
Expand Down Expand Up @@ -249,7 +249,6 @@ def __initialize_plot_values(self):
prdbug(f'... testing plot_width: {self.plv["plot_width"]}')

pax = self.plv["plot_margins"] + self.plv["plot_labelcol_width"] + self.plv["plot_axislab_y_width"]

paw = self.plv["plot_width"] - 2 * self.plv["plot_margins"]
paw -= self.plv["plot_labelcol_width"]
paw -= self.plv["plot_axislab_y_width"]
Expand All @@ -259,7 +258,7 @@ def __initialize_plot_values(self):
chr_b_s = 0

c_l_s = dict(self.cytolimits)

for chro in self.plv["plot_chros"]:
c_l = c_l_s[str(chro)]
chr_b_s += int(c_l.get("size", 0))
Expand Down Expand Up @@ -292,6 +291,7 @@ def __initialize_plot_values(self):
"pls": []
})

prdbug(f'... done with {dbm}')

# -------------------------------------------------------------------------#
# -------------------------------------------------------------------------#
Expand Down

0 comments on commit 64dcdb4

Please sign in to comment.