Analyze

Functions for downstream analysis

Setup

from katlas.analyze import *

P values


source

get_pvalue

 get_pvalue (df, columns1, columns2, test_method='mann_whitney',
             FC_method='median')

Performs statistical tests and calculates difference between the median or mean of two groups of columns.

Type Default Details
df
columns1 list of column names for group1
columns2 list of column names for group2
test_method str mann_whitney ‘student_t’, ‘mann_whitney’, ‘wilcoxon’
FC_method str median or mean

source

get_metaP

 get_metaP (p_values)

Use Fisher’s method to calculate a combined p value given a list of p values; this function also allows negative p values (negative correlation)

p_values = [0.001,-0.5,0.002]

get_metaP(p_values)
0.0003626876953231754

End