hybkit.plot

Methods for plotting analyses of HybRecord and FoldRecord objects.

hybkit.plot.ENERGY_HIST_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titlesize': 'x-large', 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]}

Default matplotlib rcParams for energy analysis histograms.

hybkit.plot.TYPE_PIE_SINGLE_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]}

Default matplotlib rcParams for type analysis pie charts.

hybkit.plot.TYPE_PIE_DUAL_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': (8, 4.8)}

Default matplotlib rcParams for type analysis pie charts.

hybkit.plot.TARGET_PIE_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': (9.6, 4.8)}

Default matplotlib rcParams for target analysis pie charts.

hybkit.plot.FOLD_MATCH_HIST_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titlesize': 'x-large', 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]}

Default matplotlib rcParams for fold match analysis histograms.

hybkit.plot.FOLD_NT_COUNTS_HIST_RC_PARAMS = {'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titlesize': 'x-large', 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]}

Default matplotlib rcParams for fold nt counts analysis histograms.

hybkit.plot.PIE_DEFAULTS = {'MIN_WEDGE_SIZE': 0.04, 'OTHER_THRESHHOLD': 0.05, 'SETTINGS': {'autopct': '%1.1f%%', 'counterclock': False, 'shadow': False, 'startangle': 90}}

Default Pie Chart Plot Settings.

hybkit.plot.BAR_DEFAULTS = {'BAR_ALIGN': 'edge', 'BAR_WIDTH': 0.9}

Default Bar Chart Plot Settings.

hybkit.plot.ENERGY_DEFAULTS = {'MIN_COUNT': 0, 'MIN_DENSITY': 0.0, 'XLABEL': 'Hybrid Gibbs Free Energy (kcal/mol)', 'YLABEL': 'Hybrid Count'}

Default Bar Chart Plot Settings for Histograms.

hybkit.plot.energy_histogram(results, plot_file_name, title, name=None, rc_params={'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titlesize': 'x-large', 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]})

Plot histogram of hybrid energies from an Analysis fold analysis.

Parameters:
  • results (dict) -- Dictionary of energy counts from an Analysis fold analysis (Key: binned_energy_vals).

  • plot_file_name (str) -- Name of output file.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to ENERGY_HIST_RC_PARAMS.

hybkit.plot.type_count(results, plot_file_name, title, name=None, join_entries=False, rc_params={'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]})

Plot pie chart of hybrid type counts from an Analysis type analysis.

Parameters:
  • results (Counter) -- Counter Object of type counts from an Analysis type analysis.

  • plot_file_name (str) -- Name of output file.

  • title (str) -- Title of plot.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • join_entries (bool, optional) -- If True, join two-tuple pairs into a single string for plot labels.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to TYPE_PIE_RC_PARAMS.

hybkit.plot.type_count_dual(results, plot_file_name, title, name=None, join_entries=False, rc_params={'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': (8, 4.8)})

Plot pie chart of hybrid type counts from an Analysis type analysis.

Parameters:
  • results (Counter) -- Counter Object of type counts from an Analysis type analysis.

  • plot_file_name (str) -- Name of output file.

  • title (str) -- Title of plot.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • join_entries (bool, optional) -- If True, join two-tuple pairs into a single string for plot labels.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to TYPE_PIE_RC_PARAMS.

hybkit.plot.target_count(*args, **kwargs)

Plot pie chart of target counts from an Analysis type analysis.

Parameters:
  • results (Counter) -- Counter Object of type counts from an Analysis type analysis.

  • plot_file_name (str) -- Name of output file.

  • title (str) -- Title of plot.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • join_entries (bool, optional) -- If True, join two-tuple pairs into a single string for plot labels.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to TARGET_PIE_RC_PARAMS.

hybkit.plot.fold_match_counts_histogram(results, plot_file_name, title, name=None, join_entries=False, rc_params={'axes.labelweight': 'bold', 'axes.titlepad': 15, 'axes.titlesize': 'x-large', 'axes.titleweight': 'bold', 'figure.dpi': 1200, 'figure.figsize': [6.4, 4.8]})

Plot histogram of predicted miRNA/target match count.

Parameters:
  • results (Counter) -- Counter Object of match counts from an Analysis type analysis.

  • plot_file_name (str) -- Name of output file.

  • title (str) -- Title of plot.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to FOLD_MATCH_HIST_RC_PARAMS.

hybkit.plot.fold_mirna_nt_counts_histogram(*args, **kwargs)

Plot histogram of predicted miRNA/target match count.

Parameters:
  • results (Counter) -- Counter Object of match counts from an Analysis type analysis.

  • plot_file_name (str) -- Name of output file.

  • title (str) -- Title of plot.

  • name (str, optional) -- Name of analysis to be included in plot title.

  • rc_params (dict, optional) -- Dictionary of matplotlib rcParams. Defaults to FOLD_NT_COUNTS_HIST_RC_PARAMS.