From ab3f96215b69ccaeed6bcdc4ff2d1cf5e445743e Mon Sep 17 00:00:00 2001 From: alapendr <audrey.lapendry@ens-lyon.fr> Date: Fri, 3 Jul 2020 15:20:11 +0200 Subject: [PATCH] __main__.py: main update to launch all the figures --- src/figures_utils/__main__.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/figures_utils/__main__.py b/src/figures_utils/__main__.py index c24509ba..e15d9e31 100644 --- a/src/figures_utils/__main__.py +++ b/src/figures_utils/__main__.py @@ -9,6 +9,9 @@ expected """ from . exons_interactions import launch_figures_creation +from . exons_interactions import get_info_from_database +import sqlite3 +from .config_figures import Config def launcher(): @@ -17,7 +20,13 @@ def launcher(): regulated by a splicing factor are more often co-localized than randomly \ expected """ - launch_figures_creation() + list_sf = get_info_from_database(sqlite3.connect(Config.db_file), + """SELECT sf_name + FROM cin_project_splicing_lore""") + list_sf = list(set(list_sf)) + + for sf in list_sf: + launch_figures_creation(sf) launcher() -- GitLab