Skip to content

Commit

Permalink
Docstring for drug combination heatmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Mar 29, 2019
1 parent dc42eb4 commit 91871dd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions thunor/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,28 @@ def plot_drc(fit_params, is_absolute=False, color_by=None, color_groups=None,

def plot_drug_combination_heatmap(ctrl_resp_data, expt_resp_data,
title=None, subtitle=None):
"""
Plot heatmap of drug combination response by DIP rate
Two dimensional plot (each dimension is a drug concentration) where
squares are coloured by DIP rate value.
Parameters
----------
ctrl_resp_data: pd.DataFrame
Control DIP rates from :func:`thunor.dip.dip_rates`
expt_resp_data: pd.DataFrame
Experiment (non-control) DIP rates from :func:`thunor.dip.dip_rates`
title: str, optional
Title (or None to auto-generate)
subtitle: str, optional
Subtitle (or None to auto-generate)
Returns
-------
plotly.graph_objs.Figure
A plotly figure object containing the graph
"""
heat_label = 'DIP<br>rate'

if title is None:
Expand Down

0 comments on commit 91871dd

Please sign in to comment.