Skip to content

Commit

Permalink
fix problem with symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
mgalland committed Jun 22, 2021
1 parent 8d8ba79 commit f69f1ad
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ BAMS = expand(TEMP_DIR + "mapped/{sample}_{unit}.bam",
sample=SAMPLES,
unit=UNITS)

VCFs = expand(RESULT_DIR + "vcf/{sample}.vcf", sample=SAMPLES)
#VCFs = expand(RESULT_DIR + "vcf/{sample}.vcf", sample=SAMPLES)
GLOBAL_VCF = RESULT_DIR + "all_variants.vcf.gz"

if config["remove_workdir"]:
Expand All @@ -91,7 +91,6 @@ else:
input:
QC,
BAMS,
VCFs,
GLOBAL_VCF
message:"All done! Keeping temporary directory"

Expand Down Expand Up @@ -126,10 +125,10 @@ if len(SAMPLES) == 1: # only one sample
output:
RESULT_DIR + "all_variants.vcf.gz"
message:
"Copying {input.vcf} to {params}"
"Copying {input.vcf} to {output}"
threads: 1
shell:
"gzip -cd {input.vcf} > {output}"
"mv {input.vcf} {output}"
else:
rule merge_variants:
input:
Expand Down

0 comments on commit f69f1ad

Please sign in to comment.