Skip to content

Commit

Permalink
fix for simuG inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Nov 26, 2024
1 parent 5e9fec8 commit caa8df3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions harpy/snakefiles/simulate_variants.smk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ onerror:
outdir = config["output_directory"]
envdir = os.path.join(os.getcwd(), outdir, "workflow", "envs")
variant = config["workflow"].split()[1]
simuG_variant = variant.upper() if variant == "cnv" else variant
outprefix = config["prefix"]
genome = config["inputs"]["genome"]
vcf = config[variant].get("vcf", None)
Expand Down Expand Up @@ -58,7 +59,7 @@ rule simulate_haploid:
geno = genome
output:
f"{outdir}/{outprefix}.simseq.genome.fa",
f"{outdir}/{outprefix}.refseq2simseq.{variant}.vcf",
f"{outdir}/{outprefix}.refseq2simseq.{simuG_variant}.vcf",
f"{outdir}/{outprefix}.refseq2simseq.map.txt"
log:
f"{outdir}/logs/{outprefix}.log"
Expand All @@ -73,7 +74,7 @@ rule simulate_haploid:
rule rename_haploid:
input:
fasta = f"{outdir}/{outprefix}.simseq.genome.fa",
vcf = f"{outdir}/{outprefix}.refseq2simseq.{variant}.vcf",
vcf = f"{outdir}/{outprefix}.refseq2simseq.{simuG_variant}.vcf",
mapfile = f"{outdir}/{outprefix}.refseq2simseq.map.txt"
output:
fasta = f"{outdir}/{outprefix}.fasta",
Expand Down Expand Up @@ -113,7 +114,7 @@ rule simulate_diploid:
output:
f"{outdir}/haplotype_{{haplotype}}/{outprefix}.hap{{haplotype}}.simseq.genome.fa",
f"{outdir}/haplotype_{{haplotype}}/{outprefix}.hap{{haplotype}}.refseq2simseq.map.txt",
temp(f"{outdir}/haplotype_{{haplotype}}/{outprefix}.hap{{haplotype}}.refseq2simseq.{variant}.vcf")
temp(f"{outdir}/haplotype_{{haplotype}}/{outprefix}.hap{{haplotype}}.refseq2simseq.{simuG_variant}.vcf")
log:
f"{outdir}/logs/{outprefix}.hap{{haplotype}}.log"
params:
Expand Down

0 comments on commit caa8df3

Please sign in to comment.