Skip to content

Commit 022cebe

Browse files
committed
swap simuG to conda install
1 parent 412a6af commit 022cebe

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

harpy/_conda.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def create_conda_recipes():
6363
"bioconda::perl-math-random",
6464
"bioconda::perl-inline-c",
6565
"bioconda::perl-parse-recdescent",
66+
"bioconda::simug",
6667
"conda-forge::numpy",
6768
"conda-forge::perl"
6869
],

harpy/simulate.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ def snpindel(genome, snp_vcf, indel_vcf, only_vcf, output_dir, prefix, snp_count
295295
start_text.add_row("Heterozygosity:", f"{heterozygosity}")
296296

297297
fetch_rule(workflowdir, "simulate_snpindel.smk")
298-
fetch_script(workflowdir, "simuG.pl")
299298
os.makedirs(f"{output_dir}/logs/snakemake", exist_ok = True)
300299
sm_log = snakemake_log(output_dir, "simulate_snpindel")
301300
configs = {
@@ -407,7 +406,6 @@ def inversion(genome, vcf, only_vcf, prefix, output_dir, count, min_size, max_si
407406
start_text.add_row("Heterozygosity:", f"{heterozygosity}")
408407

409408
fetch_rule(workflowdir, "simulate_variants.smk")
410-
fetch_script(workflowdir, "simuG.pl")
411409
os.makedirs(f"{output_dir}/logs/snakemake", exist_ok = True)
412410
sm_log = snakemake_log(output_dir, "simulate_inversion")
413411
configs = {
@@ -522,7 +520,6 @@ def cnv(genome, output_dir, vcf, only_vcf, prefix, count, min_size, max_size, du
522520
start_text.add_row("Heterozygosity:", f"{heterozygosity}")
523521

524522
fetch_rule(workflowdir, "simulate_variants.smk")
525-
fetch_script(workflowdir, "simuG.pl")
526523
os.makedirs(f"{output_dir}/logs/snakemake", exist_ok = True)
527524
sm_log = snakemake_log(output_dir, "simulate_cnv")
528525
configs = {
@@ -627,7 +624,6 @@ def translocation(genome, output_dir, prefix, vcf, only_vcf, count, centromeres,
627624
start_text.add_row("Heterozygosity:", f"{heterozygosity}")
628625

629626
fetch_rule(workflowdir, "simulate_variants.smk")
630-
fetch_script(workflowdir, "simuG.pl")
631627
os.makedirs(f"{output_dir}/logs/snakemake", exist_ok = True)
632628
sm_log = snakemake_log(output_dir, "simulate_translocation")
633629
configs = {

harpy/snakefiles/simulate_snpindel.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ rule simulate_diploid:
148148
f"{outdir}/logs/{outprefix}.hap{{haplotype}}.log"
149149
params:
150150
prefix = f"{outdir}/diploid/{outprefix}.hap{{haplotype}}",
151-
simuG = f"{outdir}/workflow/scripts/simuG.pl",
151+
#simuG = f"{outdir}/workflow/scripts/simuG.pl",
152152
snp = f"-snp_vcf {outdir}/diploid/{outprefix}.snp.hap{{haplotype}}.vcf" if snp else "",
153153
indel = f"-indel_vcf {outdir}/diploid/{outprefix}.indel.hap{{haplotype}}.vcf" if indel else ""
154154
conda:
155155
f"{envdir}/simulations.yaml"
156156
shell:
157-
"perl {params.simuG} -refseq {input.geno} -prefix {params.prefix} {params.snp} {params.indel} > {log}"
157+
"simuG -refseq {input.geno} -prefix {params.prefix} {params.snp} {params.indel} > {log}"
158158

159159
rule workflow_summary:
160160
default_target: True

harpy/snakefiles/simulate_variants.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ rule simulate_haploid:
6262
f"{outdir}/logs/{outprefix}.log"
6363
params:
6464
prefix = f"{outdir}/{outprefix}",
65-
simuG = f"{outdir}/workflow/scripts/simuG.pl",
65+
#simuG = f"{outdir}/workflow/scripts/simuG.pl",
6666
parameters = variant_params
6767
conda:
6868
f"{envdir}/simulations.yaml"
6969
shell:
70-
"perl {params.simuG} -refseq {input.geno} -prefix {params.prefix} {params.parameters} > {log}"
70+
"simuG -refseq {input.geno} -prefix {params.prefix} {params.parameters} > {log}"
7171

7272
rule diploid_variants:
7373
input:

0 commit comments

Comments
 (0)