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

2D Plots

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

Basic Statistics

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

Advanced Statistics

 spearman (l1, l2, name1='l1', name2='l2')
 Computes Spearman's correlation between the data of list L1 and the ones of L2 using Scipy.
 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.
 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.
 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.
 pearson (l1, l2, name1='l1', name2='l2')
 Computes Pearson's correlation between the data of list L1 and the ones of L2 using Scipy.

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()

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

Plots the histogram of data in l using matplotlib.

◆ kendalltau()

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()

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()

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()

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()

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()

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()

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.