def plot_tsne_totalcounts(chart, sample_properties, sample_data):
""" Plot cells colored by total counts """
analysis = sample_data.analysis
if not analysis or len(sample_properties['genomes']) > 1:
return None
reads_per_bc = analysis.matrix.get_reads_per_bc()
vmin, vmax = np.percentile(reads_per_bc, ws_gex_constants.TSNE_TOTALCOUNTS_PRCT_CLIP)
return plot_dimensions_color(chart, analysis.get_tsne().transformed_tsne_matrix,
reads_per_bc,
ws_gex_constants.TSNE_TOTALCOUNTS_DESCRIPTION,
vmin, vmax,
1, 2)
评论列表
文章目录