diff --git a/src/db_utils/interactions/bedtools.py b/src/db_utils/interactions/bedtools.py
index 69e9a91442f69df57f3389f4edf625bb5a5bfa4f..82740ad5b7c1b1e90dea62ab35534c852fd5652e 100644
--- a/src/db_utils/interactions/bedtools.py
+++ b/src/db_utils/interactions/bedtools.py
@@ -72,6 +72,9 @@ def main_bedtools() -> None:
     Launch bedtools slop and bedtools intersect commands for exons and genes.
 
     """
+    Config.exon_output.parent.mkdir(exist_ok=True, parents=True)
+    Config.pet_vs_exon_output.mkdir(exist_ok=True, parents=True)
+    Config.pet_vs_gene_output.mkdir(exist_ok=True, parents=True)
     launch_bedtools_slop(Config.exon, Config.exon_window, Config.exon_output)
     launch_bedtools_slop(Config.gene, Config.gene_window, Config.gene_output)
     launch_bedtools_intersect(Config.exon_output,