BLPlot package

Submodules

BLPlot.CuratedOverview module

BLPlot.CuratedOverview.plot(inputDF, height=7, randValues=[], shape=[], palettes=[], text=[], levels=[], rotation=[])[source]
Parameters:
  • inputDF (pandas DataFrame) – Multilevel dataframe to be plotted
  • height (float) – Height of image to be generated
  • randValues (list) – Cutoffs below which a pre-defined shape is set, useful for indicating less-than-significant values
  • shape (list) – Shape to be drawn, choose from ‘s’ (square), ‘rs’ (rounded square), ‘w’ (wedge), ‘b’ (fixed width rectangle), ‘f’ (full width, fixed color square), ‘text’
  • palettes (list) – Color palette. Define this object using sns.color_palette()
  • text (list) – Specify if column is to be treated as text
  • levels (list) – Which columns to plot, specified using column names
  • rotation (list) – Whether to rotate the text of a column name.

BLPlot.NetworkMotifs module

BLPlot.NetworkMotifs.plot(inputDF, height=7, levels=[], rotation=[])[source]

Script to produce Figure

Parameters:
  • inputDF (pandas DataFrame) – Dataframe containing ratios to be visualized either as slanted arrows (> 1.25 or < 0.75)or a double squiggly arrow (>0.75 and < 1.25)
  • height (float) – Height of final image
  • levels (list) – Which columns in Level 1 to use for plotting, specified using column names
  • rotation (list) – specify which column titles have to be rotated