arcfish.pl.compare_loops#
- arcfish.pl.compare_loops(df1: ~pandas.core.frame.DataFrame, df2: ~pandas.core.frame.DataFrame, chr_id: str | None = None, map1: str = '', map2: str = '', c1: str = 'r', c2: str = 'b', ax: ~matplotlib.axes._axes.Axes = None, eval_func: callable = <function mean>) Axes#
Plot two sets of loops together.
- Parameters:
df1 (pd.DataFrame) – The first list of loops to plot on the upper right triangle. Must contain “c1”, “s1”, “e1”, “c2”, “s2”, “e2” as columns.
df2 (pd.DataFrame) – The second list of loops to plot on the lower left triangle. Must contain “c1”, “s1”, “e1”, “c2”, “s2”, “e2” as columns.
chr_id (str, optional) – Chromosome ID, by default None.
map1 (str) – Label for the first set of loops.
map2 (str) – Label for the second set of loops.
ax (plt.Axes, optional) – plt.Axes object, by default None.
eval_func (callable, optional) – Where to plot the two loci of each loop, by default np.mean, which will plot the mean of s and e. Can also be np.min, which will plot s; or np.max, which will plot e.
- Returns:
plt.axis object.
- Return type:
plt.axis