Skip to content

Commit

Permalink
modified cbase analysis to generate upset plot of highly ranked likel…
Browse files Browse the repository at this point in the history
…y passengers
  • Loading branch information
ashuaibi7 committed Jan 20, 2025
1 parent cf795ba commit fee4b66
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion analysis/cbase_highly_ranked_passengers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import os
import pandas as pd
import matplotlib.pyplot as plt

from dialect.utils.plotting import plot_cbase_driver_decoy_gene_fractions
from dialect.utils.plotting import (
plot_cbase_driver_decoy_gene_fractions,
plot_cbase_top_decoy_genes_upset,
)

SINGLE_GENE_RESULTS_DIR = "single_gene_results"
DECOY_GENES_DIR = "data/decoy_genes"
Expand Down Expand Up @@ -43,3 +47,9 @@
subtype_decoy_gene_fractions,
fout="figures/cbase_decoy_fractions_barplot.svg",
)
plot_cbase_top_decoy_genes_upset(
subtype_to_high_ranked_decoys,
high_ranked_decoy_freqs,
top_n=6,
fout="figures/cbase_upset_plot_top_likely_passengers.svg",
)

0 comments on commit fee4b66

Please sign in to comment.