python/cell_cycle_gating/dead_cell_filter.py
def plot_summary(ldr, dna, x_ldr=None, well=None):
    """Master summary plot which incorporates above plots as subplots
    
    Parameters
    ----------
    ldr : 1d array
       ldr txt feature across all cells in a well
    dna : 1d array
       DNA content of cells in a given well
    well : str

    Returns
    -------
    fig : matplotlib figure object
    """
    fig = plt.figure()
    gridspec.GridSpec(2, 2)
    ax1 = plt.subplot2grid((2, 2), (0, 0), colspan=1, rowspan=1)
    ax2 = plt.subplot2grid((2, 2), (0, 1), colspan=1, rowspan=1)
    ax3 = plt.subplot2grid((2, 2), (1, 0), colspan=1, rowspan=1)
    ax4 = plt.subplot2grid((2, 2), (1, 1), colspan=1, rowspan=1)
    ldr_gates, ldr_lims = plot_ldr_gating(ldr, x_ldr=x_ldr, ax=ax1)
    dna_gates = get_dna_gating(dna, ldr, ldr_gates, ax=ax2)
    plot_ldr_dna_scatter(dna, ldr, x_ldr=x_ldr, ax=ax3)
    cell_fate_dict, outcome = live_dead(ldr, ldr_gates, dna, dna_gates, x_ldr=x_ldr, ax=ax4)
    fig.tight_layout()
    fig.set_size_inches(w=8, h=7)
    if well:
        fig.savefig('dead_cell_filter_%s.png' % well, dpi=300)
    return fig
Master summary plot which incorporates above plots as subplots
    
    Parameters
    ----------
    ldr : 1d array
       ldr txt feature across all cells in a well
    dna : 1d array
       DNA content of cells in a given well
    well : str

    Returns
    -------
    fig : matplotlib figure object
    
Master summary plot which incorporates above plots as subplots
Parameters

ldr : 1d array
ldr txt feature across all cells in a well
dna : 1d array
DNA content of cells in a given well
well : str

Returns

fig : matplotlib figure object
Master summary plot which incorporates above plots as subplots Parameters ldr : 1d array ldr txt feature across all cells in a well dna : 1d array DNA content of cells in a given well well : str Returns fig : matplotlib figure object
def plot_summary(ldr, dna, x_ldr=None, well=None):
    fig = plt.figure()
    gridspec.GridSpec(2, 2)
    ax1 = plt.subplot2grid((2, 2), (0, 0), colspan=1, rowspan=1)
    ax2 = plt.subplot2grid((2, 2), (0, 1), colspan=1, rowspan=1)
    ax3 = plt.subplot2grid((2, 2), (1, 0), colspan=1, rowspan=1)
    ax4 = plt.subplot2grid((2, 2), (1, 1), colspan=1, rowspan=1)
    ldr_gates, ldr_lims = plot_ldr_gating(ldr, x_ldr=x_ldr, ax=ax1)
    dna_gates = get_dna_gating(dna, ldr, ldr_gates, ax=ax2)
    plot_ldr_dna_scatter(dna, ldr, x_ldr=x_ldr, ax=ax3)
    cell_fate_dict, outcome = live_dead(ldr, ldr_gates, dna, dna_gates, x_ldr=x_ldr, ax=ax4)
    fig.tight_layout()
    fig.set_size_inches(w=8, h=7)
    if well:
        fig.savefig('dead_cell_filter_%s.png' % well, dpi=300)
    return fig
def plot_summary ( ldr , dna , x_ldr = None , well = None ) : fig = plt . figure ( ) gridspec . GridSpec ( 2 , 2 ) ax1 = plt . subplot2grid ( ( 2 , 2 ) , ( 0 , 0 ) , colspan = 1 , rowspan = 1 ) ax2 = plt . subplot2grid ( ( 2 , 2 ) , ( 0 , 1 ) , colspan = 1 , rowspan = 1 ) ax3 = plt . subplot2grid ( ( 2 , 2 ) , ( 1 , 0 ) , colspan = 1 , rowspan = 1 ) ax4 = plt . subplot2grid ( ( 2 , 2 ) , ( 1 , 1 ) , colspan = 1 , rowspan = 1 ) ldr_gates , ldr_lims = plot_ldr_gating ( ldr , x_ldr = x_ldr , ax = ax1 ) dna_gates = get_dna_gating ( dna , ldr , ldr_gates , ax = ax2 ) plot_ldr_dna_scatter ( dna , ldr , x_ldr = x_ldr , ax = ax3 ) cell_fate_dict , outcome = live_dead ( ldr , ldr_gates , dna , dna_gates , x_ldr = x_ldr , ax = ax4 ) fig . tight_layout ( ) fig . set_size_inches ( w = 8 , h = 7 ) if well : fig . savefig ( 'dead_cell_filter_%s.png' % well , dpi = 300 ) return fig
Master summary plot which incorporates above plots as subplots
Parameters
Master summary plot which incorporates above plots as subplots Parameters
"""Master summary plot which incorporates above plots as subplots
    
    Parameters
    ----------
    ldr : 1d array
       ldr txt feature across all cells in a well
    dna : 1d array
       DNA content of cells in a given well
    well : str

    Returns
    -------
    fig : matplotlib figure object
    """
ldr
dna
x_ldr
well