Skip to content

Commit 1570aa8

Browse files
authored
Make --reads compatible with newer ntEdit (#36)
1 parent 564c14a commit 1570aa8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ntroot_run_pipeline.smk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ onsuccess:
1010
# Read parameters from config or set default values
1111
reference=config["reference"]
1212
draft_base = os.path.basename(os.path.realpath(reference))
13-
reads_prefix=config["reads"] if "reads" in config else ""
13+
reads_prefix_full=config["reads"] if "reads" in config else ""
14+
reads_prefix=os.path.basename(reads_prefix_full)
1415
k=config["kmer"] if "kmer" in config else None
1516

1617
genomes = config["genomes"] if "genomes" in config else ""
@@ -75,7 +76,7 @@ rule ntedit_reads:
7576
params = f"-k {k} -t {t} -z {z} -j {j} -Y {Y} --solid ",
7677
vcf_input = f"-l {l}" if l else ""
7778
shell:
78-
"{params.benchmark} run-ntedit snv --reference {reference} --reads {reads_prefix} {params.params} "
79+
"{params.benchmark} run-ntedit snv --reference {reference} --reads {reads_prefix_full} {params.params} "
7980
"{params.vcf_input}"
8081

8182
rule ntedit_genome:

0 commit comments

Comments
 (0)