Skip to content

Commit 03ca758

Browse files
authored
Update Snakefile
1 parent 045caf2 commit 03ca758

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

workflow/Snakefile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import os
33
from pathlib import Path
44

55
env_name = os.getenv('CONDA_DEFAULT_ENV')
6-
print(f"Current Conda environment: {env_name}")
6+
print(f"Current environment (should be either 'VIS_minimal' or 'VIS_full'): {env_name}")
77

88
CONFIG = "config/config_CD19_BBz.yml"
99
configfile: CONFIG
@@ -12,27 +12,7 @@ SAMPLES = expand(config["samples"])
1212
outdir = os.path.join(config["processing_dir"],str(config["experiment"]))
1313
fragmentsize=config["fragment_size"]
1414

15-
print(os.getcwd())
16-
runner="/github/workspace/workflow/scripts"
17-
sys.path.insert(0, runner)
18-
# Find the absolute path to the current Snakefile directory
19-
snakefile_dir = os.path.dirname(os.path.abspath(__file__))
20-
print(snakefile_dir)
21-
# Set the correct scripts directory path
22-
script_dir = os.path.join(snakefile_dir, "scripts")
23-
print(script_dir)
24-
25-
# Ensure the script directory is in sys.path
26-
if script_dir not in sys.path:
27-
sys.path.insert(0, script_dir)
28-
29-
simple=os.path.join(os.getcwd(), "workflow/scripts")
30-
sys.path.insert(0, simple)
31-
print("___")
32-
print(os.getcwd())
33-
print(sys.path)
3415
import VIS_helper_functions as vhf #custom functions to make snakemake pipeline leaner
35-
print('Import successful')
3616

3717
#inmport rules
3818
include: config["detection"]

0 commit comments

Comments
 (0)