From 1e7e1240b89dab980da29994f772eb5273f2b633 Mon Sep 17 00:00:00 2001 From: alapendr <audrey.lapendry@ens-lyon.fr> Date: Fri, 10 Apr 2020 09:45:00 +0200 Subject: [PATCH] config_interactions.py: add couple_exon and couple_gene to store the final result of features_interactions.py --- .../interactions/config_interactions.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/db_utils/interactions/config_interactions.py b/src/db_utils/interactions/config_interactions.py index 78e0398b..753a9a2c 100644 --- a/src/db_utils/interactions/config_interactions.py +++ b/src/db_utils/interactions/config_interactions.py @@ -8,7 +8,6 @@ Description: Configuration variables for subfolder interactions. """ from ..config import Config -from pathlib import Path class ConfigInteractions: @@ -29,17 +28,5 @@ class ConfigInteractions: chia_pet = Config.data / 'interactions_files' / 'chia_pet' pet_vs_exon_output = chia_pet_interaction / 'intersections_exon' pet_vs_gene_output = chia_pet_interaction / 'intersections_gene' - - -def get_interaction_file(bed_file: Path, region_name: str): - """ - Get the name of the interaction file created from the ``bed_file``. - - :param bed_file: A bed file that was used to create the interaction \ - file whose name is returned by this function. - :param region_name: The name of the genomic region searched in PETs. - :return: The name of the interaction file - """ - bed_name = bed_file.name.replace(".bed", "") - return ConfigInteractions.chia_pet_interaction / \ - f"{bed_name}_{region_name}_interaction.csv" + couple_exon = chia_pet_interaction / 'couple_exon' + couple_gene = chia_pet_interaction / 'couple_gene' -- GitLab