Patterns pl.patterns

Patterns pl.patterns#

Plot contribution scores and analyze them using tfmodisco.

contribution_scores(scores, seqs_one_hot[, ...])

Visualize interpretation scores with optional highlighted positions.

modisco_results(classes, contribution, ...)

Plot genomic contributions for the given classes.

enhancer_design_steps_contribution_scores(...)

Visualize enhancer design stepwise contribution scores.

enhancer_design_steps_predictions(...[, ...])

Visualize enhancer design prediction score progression.

selected_instances(pattern_dict, idcs)

Plot the patterns specified by the indices in idcs from the pattern_dict.

class_instances(pattern_dict, idx[, ...])

Plot instances of a specific pattern, either the representative pattern per class or all instances for a given pattern index.

clustermap(pattern_matrix, classes[, ...])

Create a clustermap from the given pattern matrix and class labels with customizable options.

clustermap_tf_motif(data[, heatmap_dim, ...])

Generate a heatmap where one modality is represented as color, and the other as dot size.

tf_expression_per_cell_type(df, tf_list[, ...])

Plot the expression levels of specified transcription factors (TFs) per cell type.

similarity_heatmap(similarity_matrix, indices)

Plot a similarity heatmap of all pattern indices.