aigct.report_util

Classes

GeneMetricSorter

Sort the gene metrics dataframe by variant effect source ascending

Module Contents

class aigct.report_util.GeneMetricSorter(gene_variant_counts: pandas.DataFrame, num_top_genes: int = None)[source]

Sort the gene metrics dataframe by variant effect source ascending and descending by the number of unique variants per gene. This will ensure that the gene metrics are presented in a consistent order across all gene metric dataframes.

sort_gene_metrics(gene_metrics: pandas.DataFrame)[source]