This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy import stats | |
from itertools import combinations | |
from statsmodels.stats.multitest import multipletests | |
from statsmodels.stats.libqsturng import psturng | |
import warnings | |
def kw_dunn(groups, to_compare=None, alpha=0.05, method='bonf'): | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# argparse section | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-l","--list", help="pass a list", nargs="*") | |
parser.add_argument("-b","--boolean", action="store_true", default=False, help="use this flag to turn on an option") | |
# grab the options here from the command line, console overrides email | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Plots a Pandas dataframe as a heatmap""" | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
def heatmap(df, | |
edgecolors='w', | |
cmap=mpl.cm.RdBu, | |
log=False,vmin=0,vmax=500): | |
width = len(df.columns)/4 | |
height = len(df.index)/4 |