Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
Genetrank_gene_radar Class Reference

Constructions

def __init__ (self, gene, target_results, background_norm, background_cmap, background_color_using='max', y_range=None, markers=['o', 'o'], marker_colors=['g', 'b'], ax=None)
 Default constructor. More...
 

Internal Methods

def get_spoke_angles (self)
 Get the angles for the spokes as a list. More...
 
def radians_to_degrees (self, angle)
 Convert from radians to degrees. More...
 

Presentation

def plot (self)
 Create the plot. More...
 
def show (self)
 Present the plot using matplotlib. More...
 
def save (self, outputfile_name='gene_radar.pdf', format='pdf')
 Save the plot to a file. More...
 

Detailed Description

Class for the generation of a gene scatter plot Class for the generation of a gene scatter plot from a gene, a pandas Data Frame containing the by-target results to plot, and the normalization guide and color map for the background

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  gene,
  target_results,
  background_norm,
  background_cmap,
  background_color_using = 'max',
  y_range = None,
  markers = ['o', 'o'],
  marker_colors = ['g', 'b'],
  ax = None 
)

Default constructor.

Member Function Documentation

◆ get_spoke_angles()

def get_spoke_angles (   self)

Get the angles for the spokes as a list.

◆ plot()

def plot (   self)

Create the plot.

◆ radians_to_degrees()

def radians_to_degrees (   self,
  angle 
)

Convert from radians to degrees.

◆ save()

def save (   self,
  outputfile_name = 'gene_radar.pdf',
  format = 'pdf' 
)

Save the plot to a file.

◆ show()

def show (   self)

Present the plot using matplotlib.