flotilla.visualize.expression module

class flotilla.visualize.expression.TwoWayScatterViz(sample1_name, sample2_name, df, p_value_cutoff=0.001, local_fraction=0.1, bonferroni=True, fdr=None, dtype='RPKM')[source]

Bases: flotilla.compute.expression.TwoWayGeneComparisonLocal

Plots a scatter-plot of sample1 vs sample2, taken from df. Calculates differentially expressed genes with a Z-test from the closest (local_fraction * 100)% points. Stores result from statistical calculations in self.result_

Parameters:

sample1_name : str

Name of the first (control) sample. Must be a row name (index) in df. Plotted on the x-axis.

sample2_name : str

Name of the second (treatment) sample. Must be a row name (index) in df. Plotted on the y-axis.

df : pandas.DataFrame

A samples (rows) x features (columns) pandas DataFrame of expression values

p_value_cutoff : float, optional

Cutoff for the p-values. Default 0.001.

local_fraction : float, optional

What fraction of genes to use for local z-score calculation. Default 0.1

bonferonni : bool, optional

Whether or not to use the Bonferonni correction on p-values

fdr : ???, optional

benjamini-hochberg FDR filtering - check result, proceed with caution. sometimes breaks :(

dtype : str, optional

Data type

plot(ax=None)[source]
Olga B. Botvinnik is funded by the NDSEG fellowship and is a NumFOCUS John Hunter Technology Fellow.
Michael T. Lovci was partially funded by a fellowship from Genentech.
Partially funded by NIH grants NS075449 and HG004659 and CIRM grants RB4-06045 and TR3-05676 to Gene Yeo.