ToppPlot database function
topppy.topp_plot
topp_balloon
topp_balloon(toppdata: DataFrame, categories: list = None, balloons: int = 3, x_axis_text_size: int = 6, cluster_col: str = 'Cluster', filename: str = None, save: bool = False, height: int = 5, width: int = 10) -> ggplot | dict
Create a balloon plot from toppdata results
| Parameters: |
|
|---|
Returns: A ggplot object or a dict where the keys are the names of clusters and the values are ggplot objects
Examples:
from topppy import *
topp_balloon(topp_data, balloons = 3, save = True, filename = "Balloon_plot")
topp_plot
topp_plot(toppdata: DataFrame, category: str, clusters: list | int | str = None, cluster_col: str = 'Cluster', num_terms: int = 10, p_val_adj: str = 'BH', p_val_display: str = 'log', save: bool = False, save_dir: str = None, width: int = 5, height: int = 6, file_prefix: str = None, y_axis_text_size: int = 8, combine: bool = False, ncols: int = None) -> ggplot | dict
Create a dotplot from toppdata results
| Parameters: |
|
|---|
Returns: A ggplot object or a dict where the keys are the names of clusters and the values are ggplot objects
Examples:
from topppy import *
topp_plot(topp_data,category="GeneOntologyMolecularFunction",clusters=0,save=False,file_prefix="MF_cluster0")