Logo

Overview

  • Installation
  • Quickstart
    • XChrom quick start guide
  • Files and directories

Tutorials

  • Tutorials
    • 1. Within-sample analysis
    • 2. Cross-sample analysis
    • 3. Cross-species analysis
    • 4. COVID-19 analysis
    • 5. Pretrained XChrom

API

  • API
    • xchrom.readfile.read_10x_h5_to_h5ad
    • xchrom.pp.process_train_test_single
    • xchrom.pp.process_test_dual
    • xchrom.pp.filter_multiome_data
    • xchrom.tr.train_XChrom
    • xchrom.tr.Generator
    • xchrom.tr.XChrom_model
    • xchrom.tl.calc_auc_pr
    • xchrom.tl.calc_nsls_score
    • xchrom.tl.calc_pca
    • xchrom.tl.bed_to_fasta
    • xchrom.tl.crosscell_aucprc
    • xchrom.tl.crosscell_nsls
    • xchrom.tl.crosspeak_aucprc
    • xchrom.tl.crossboth_aucprc
    • xchrom.tl.denoise_nsls
    • xchrom.tl.crosssamples_aucprc
    • xchrom.tl.crosssamples_nsls
    • xchrom.tl.calc_ism
    • xchrom.tl.ism_norm
    • xchrom.tl.calc_ism_from_bed
    • xchrom.tl.generate_tf_activity_data
    • xchrom.tl.calc_tf_activity
    • xchrom.pl.plot_train_history
    • xchrom.pl.plot_logo
    • xchrom.pl.plot_percell_aucprc
    • xchrom.pl.plot_perpeak_aucprc
    • xchrom.pl.plot_motif_activity
XChrom
  • API
  • xchrom.pl.plot_logo
  • View page source

xchrom.pl.plot_logo

xchrom.pl.plot_logo(m: ndarray, ymin: float, ymax: float, ax: Axes, title: str | None = None)[source]

Plot the relative importance of the given matrix per position.

Parameters:
  • m (np.ndarray) – The matrix to plot the logo, shape (n_cells, seq_len, 4).

  • ymin (float) – The minimum value of the y-axis.

  • ymax (float) – The maximum value of the y-axis.

  • ax (plt.Axes) – The axes to plot the logo.

  • title (str) – The title of the plot.

Previous Next

© Copyright 2025, Yuanyuan Miao. Last updated on 2026-09-29.

Built with Sphinx using a theme provided by Read the Docs.