Skip to content

Commit

Permalink
bugfix: viloca
Browse files Browse the repository at this point in the history
- typo fix
- all: depends on correct CSV
  • Loading branch information
DrYak committed Jun 17, 2024
1 parent 7013890 commit 43be899
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,16 @@ for srec in sample_list:
# in adition to standard VCF files, ShoRAH2 also produces CSV tables
if config.general["snv_caller"] == "shorah":
results.append(os.path.join(sdir, "variants/SNVs/snvs.csv"))
elif config.general["snv_caller"] == "viloca":
results.append(os.path.join(sdir, "variants/SNVs/snv/cooccurring_mutations.csv"))
# all snv callers ('shorah', 'lofreq') produce standard VCF files
results.append(os.path.join(sdir, "variants/SNVs/snvs.vcf"))
# local haplotypes
if config.output["local"]:
results.append(os.path.join(sdir, "variants/SNVs/snvs.csv"))
if config.general["snv_caller"] == "shorah":
results.append(os.path.join(sdir, "variants/SNVs/snvs.csv"))
elif config.general["snv_caller"] == "viloca":
results.append(os.path.join(sdir, "variants/SNVs/snv/cooccurring_mutations.csv"))
# global haplotypes
if config.output["global"]:
if config.general["haplotype_reconstruction"] == "savage":
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/snv.smk
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ rule viloca:
# Get absolute path for input files
CWD=${{PWD}}
WORK_DIR="$(realpath -m {ouput.WORK_DIR})"
WORK_DIR="$(realpath -m {output.WORK_DIR})"
BAM="$(realpath {input.BAM})"
REF="$(realpath {input.REF})"
OUTFILE="$(realpath -m {log.outfile})"
Expand Down

0 comments on commit 43be899

Please sign in to comment.