@@ -3,7 +3,7 @@ import os
33from pathlib import Path
44
55env_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
88CONFIG = "config/config_CD19_BBz.yml"
99configfile : CONFIG
@@ -12,27 +12,7 @@ SAMPLES = expand(config["samples"])
1212outdir = os .path .join (config ["processing_dir" ],str (config ["experiment" ]))
1313fragmentsize = 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 )
3415import VIS_helper_functions as vhf #custom functions to make snakemake pipeline leaner
35- print ('Import successful' )
3616
3717#inmport rules
3818include : config ["detection" ]
0 commit comments