Skip to content
Snippets Groups Projects
Commit 1e7e1240 authored by alapendr's avatar alapendr
Browse files

config_interactions.py: add couple_exon and couple_gene to store the final...

config_interactions.py: add couple_exon and couple_gene to store the final result of features_interactions.py
parent e1093f6c
No related branches found
No related tags found
No related merge requests found
......@@ -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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment