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

2D Plots

def hist2d (l, ofilename, name1='l', fontsize=16, breaks=None)
 Plots the histogram of data in l using matplotlib. More...
 
def plot2d (l1, l2, ofilename, name1='l1', name2='l2', fontsize=16)
 Plots the data of list L1 against the ones of L2 using matplotlib. More...
 

Basic Statistics

def median (l, is_list_of_list=False)
 Computes the median using SciPy. More...
 

Advanced Statistics

def spearman (l1, l2, name1='l1', name2='l2')
 Computes Spearman's correlation between the data of list L1 and the ones of L2 using Scipy. More...
 
def mann_whitney (l1, l2, name1='l1', name2='l2')
 Computes the Mann-Whitney's U-test between the data of list L1 and the ones of L2 using Scipy. More...
 
def Rwilcoxon (l1, l2, name1='l1', name2='l2')
 Computes the Wilcoxon's Rank-Sum-test between the data of list L1 and the ones of L2 using R. More...
 
def kendalltau (l1, l2, name1='l1', name2='l2')
 Computes Kendall's tau correlation between the data of list L1 and the ones of L2 using Scipy. More...
 
def pearson (l1, l2, name1='l1', name2='l2')
 Computes Pearson's correlation between the data of list L1 and the ones of L2 using Scipy. More...
 

Detailed Description

A class providing elementary statistics and plotting facilities. All its functions are static members, and resort to low level operations borrowed to R and scientific python3.

Member Function Documentation

◆ hist2d()

def hist2d (   l,
  ofilename,
  name1 = 'l',
  fontsize = 16,
  breaks = None 
)
static

Plots the histogram of data in l using matplotlib.

◆ kendalltau()

def kendalltau (   l1,
  l2,
  name1 = 'l1',
  name2 = 'l2' 
)
static

Computes Kendall's tau correlation between the data of list L1 and the ones of L2 using Scipy.

◆ mann_whitney()

def mann_whitney (   l1,
  l2,
  name1 = 'l1',
  name2 = 'l2' 
)
static

Computes the Mann-Whitney's U-test between the data of list L1 and the ones of L2 using Scipy.

◆ median()

def median (   l,
  is_list_of_list = False 
)
static

Computes the median using SciPy.

The second argument allows to compute the median of each list instead of the whole.

◆ pearson()

def pearson (   l1,
  l2,
  name1 = 'l1',
  name2 = 'l2' 
)
static

Computes Pearson's correlation between the data of list L1 and the ones of L2 using Scipy.

◆ plot2d()

def plot2d (   l1,
  l2,
  ofilename,
  name1 = 'l1',
  name2 = 'l2',
  fontsize = 16 
)
static

Plots the data of list L1 against the ones of L2 using matplotlib.

◆ Rwilcoxon()

def Rwilcoxon (   l1,
  l2,
  name1 = 'l1',
  name2 = 'l2' 
)
static

Computes the Wilcoxon's Rank-Sum-test between the data of list L1 and the ones of L2 using R.

◆ spearman()

def spearman (   l1,
  l2,
  name1 = 'l1',
  name2 = 'l2' 
)
static

Computes Spearman's correlation between the data of list L1 and the ones of L2 using Scipy.