Generate RGB composite single-cell images

Generate RGB composite single-cell images#

  • plot rgb single cell images
  • plot rgb single cell images
  • plot rgb single cell images
Downloading...:   0%|          | 0.00/213k [00:00<?, ?B/s]
Downloading...:   0%|          | 1.02k/213k [00:00<00:41, 5.10kB/s]
Downloading...:  15%|█▌        | 32.8k/213k [00:00<00:01, 116kB/s]
Downloading...:  46%|████▌     | 98.3k/213k [00:00<00:00, 263kB/s]
Downloading...:  77%|███████▋  | 164k/213k [00:00<00:00, 340kB/s]
Downloading...: 100%|██████████| 213k/213k [00:00<00:00, 343kB/s]

import matplotlib.pyplot as plt
from scportrait.pl import generate_composite

from scportrait.data._single_cell_images import dataset2_h5sc

# select images you want to plot and colorize
h5sc = dataset2_h5sc()
images = h5sc.obsm["single_cell_images"][:, 2:5][[0, 2, 5]]

for _i, img in enumerate(images):
    plt.figure()
    plt.imshow(generate_composite(img))
    plt.axis("off")

Gallery generated by Sphinx-Gallery