snapatac2.pl.motif_enrichment#
- snapatac2.pl.motif_enrichment(enrichment, min_log_fc=1, max_fdr=0.01, **kwargs)[source]#
Plot the motif enrichment result.
- Parameters:
enrichment – Motif enrichment result.
min_log_fc – Retain motifs that satisfy: log2-fold-change >=
min_log_fc
.max_fdr – Retain motifs that satisfy: FDR <=
max_fdr
.kwargs – Additional arguments passed to
render_plot
to control the final plot output. Please seerender_plot
for details.
- Returns:
If
show=False
andout_file=None
, anplotly.graph_objects.Figure
will be returned, which can then be further customized using the plotly API.- Return type:
‘plotly.graph_objects.Figure’ | None