Skip to content

Commit 5d1f813

Browse files
committed
Minor changes for easy running with conda
1 parent 438ab20 commit 5d1f813

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Snakefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ def check_input_files():
103103
if len(r1_files) != 1 or len(r2_files) != 1: raise RuntimeError("Paired-end requires exactly one *_R1.fastq and *_R2.fastq")
104104
fq1 = str(gzip_if_needed(r1_files[0]))
105105
fq2 = str(gzip_if_needed(r2_files[0]))
106-
107-
print(f"Input FASTQs chosen:\n FQ1 = {fq1}\n FQ2 = {fq2}", file=sys.stderr)
108106
return fq1, fq2
109107

110108
if not RUNNING_TEST:

scripts/add_ref_mat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def main():
496496
if not any_mat_available(ROOT_PATHOGENS_DIR):
497497
print(
498498
"\n\n[WARN] No MAT (.pb/.pb.gz) found in data/pathogens_for_wepp. "
499-
"At least one pathogen with a MAT is required for the pipeline to run."
499+
"At least one pathogen with a MAT is required for the pipeline to run.\n\n"
500500
)
501501
else:
502502
print("\n[INFO] Setup complete. Pathogen data is ready.")

scripts/kraken_data_visualization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import math
77
import subprocess
8+
from pathlib import Path
89

910
# Usage:
1011
# python kraken_data_visualization.py <path_to_kraken_report_file> <visualization_file>
@@ -208,7 +209,9 @@ def wrap_labels(labels, width=25):
208209

209210
if add_species_runtime:
210211
# Call add_ref_mat.py to update the database
212+
current_script_dir = Path(__file__).resolve().parent
213+
add_ref_script = current_script_dir / "add_ref_mat.py"
211214
subprocess.run(
212-
["python", "scripts/add_ref_mat.py"],
215+
[sys.executable, str(add_ref_script)],
213216
check=True
214217
)

0 commit comments

Comments
 (0)