diff --git a/src/db_utils/interactions/config_interactions.py b/src/db_utils/interactions/config_interactions.py index 78e0398bee63091cacbd5f6d46c7a55bb0d51760..753a9a2c3b2d238b5bd6a45ae8388d030b03812b 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'