Skip to content

Commit

Permalink
Fixed functions for interactive barplots
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVG02 committed Sep 15, 2024
1 parent 850c4b6 commit 50c225f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/barplot_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ def process_and_plot(bp_path, mf_path, cc_path, output_folder):
cc_path = 'examples/output/aa/aa.candidates/results_revigo/aa.candidates_0.01_IDs_Pvalues_CC_table.tsv'
output_folder = 'examples/output/ccc'

process_and_plot(bp_path, mf_path, cc_path, output_folder)
#process_and_plot(bp_path, mf_path, cc_path, output_folder)
5 changes: 4 additions & 1 deletion src/revigo_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import csv
from concurrent.futures import ThreadPoolExecutor, as_completed
from barplot_generator import create_individual_barplot, create_combined_barplot
from barplot_generator import process_and_plot

tables_paths = {}

Expand Down Expand Up @@ -185,7 +186,9 @@ def main():

file_dir = os.path.dirname(os.path.abspath(file_path))

create_combined_barplot(tables_paths, os.path.join(file_dir, 'results_revigo'))
#create_combined_barplot(tables_paths, os.path.join(file_dir, 'results_revigo'))

process_and_plot(tables_paths['BP'], tables_paths['MF'], tables_paths['CC'], os.path.join(file_dir, 'results_revigo'))

print("All files processed.")

Expand Down

0 comments on commit 50c225f

Please sign in to comment.