Skip to content

visualize

Anna Vlot edited this page Oct 1, 2020 · 1 revision

visualize_cells(EMB, r_cells, figsize=(10, 7), dpi=150)
Show the reference cells in orange on the 2D embedding of the cells.

Arguments
EMB: 2D array
    The coordinates of the 2D embedding of the cells in an experiment.
r_cells: list
    A list of (row) indices of the selected reference cells.
figsize: tuple
    The figsize to pass to matplotlib.pyplot.figure()
dpi: int
    The dpi value to pass to matplotlib.pyplot.figure()

Returns -


visualize_expressed_gene(X, EMB, gene_idx, figsize=(10, 7), dpi=150)
Visualize the expression of a certain gene in the 2D cell embedding space.

Arguments
X: matrix-like
    A numpy matrix where rows are cells and columns are features.
EMB: 2D array
    The coordinates of the 2D embedding of the cells in an experiment.
gene_idx: int
    The column index of the gene that is to be visualized.
figsize: tuple
    The figsize to pass to matplotlib.pyplot.figure()
dpi: int
    The dpi value to pass to matplotlib.pyplot.figure()

Returns -

Clone this wiki locally