Skip to content

Commit

Permalink
Allow host paths to be same if empty (or root)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Jun 25, 2024
1 parent 8bb188f commit 2804ca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sbx_mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ def get_mapping_path() -> Path:

SBX_MAPPING_VERSION = open(get_mapping_path() / "VERSION").read().strip()

if Cfg["qc"]["host_fp"] == Cfg["sbx_mapping"]["genomes_fp"]:
if (
Cfg["qc"]["host_fp"] == Cfg["sbx_mapping"]["genomes_fp"]
and Cfg["qc"]["host_fp"] != Cfg["all"]["root"]
):
raise ValueError("sbx_mapping::ERROR: Host and target genomes cannot be the same")

HOST_FILE_EXT = ".fasta"
Expand Down

0 comments on commit 2804ca4

Please sign in to comment.