Skip to content

Commit

Permalink
remove eager log from output and command
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Apr 27, 2021
1 parent 3790bdd commit 62c1c5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rule eager:
final_bam = results_dir + "/eager/{reads_origin}/{sample}/final_bams/{sample}.bam",
eager_tsv = results_dir + "/eager/{reads_origin}/{sample}/metadata_{sample}.tsv",
log_html = results_dir + "/eager/{reads_origin}/{sample}/{sample}.html",
log_txt = results_dir + "/eager/{reads_origin}/{sample}/{sample}.log",
#log_txt = results_dir + "/eager/{reads_origin}/{sample}/{sample}.log",
wildcard_constraints:
reads_origin = "(sra|local)",
resources:
Expand Down Expand Up @@ -58,7 +58,7 @@ rule eager:
--max_memory {resources.mem_mb}.MB \
--max_time {resources.time_min}m \
{config[eager_other]} \
-resume > {output.log_txt};
-resume;
{scripts_dir}/eager_cleanup.sh {results_dir} {wildcards.reads_origin} {wildcards.sample};
"""

Expand Down
7 changes: 5 additions & 2 deletions workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ rule qualimap:
cpus=workflow.global_resources["cpus"] if ("cpus" in workflow.global_resources) else 1,
mem_mb=workflow.global_resources["mem_mb"] if ("mem_mb" in workflow.global_resources) else 4000,
shell:
"samtools view -b -q {config[snippy_map_qual]} {input.snippy_dir}/{wildcards.sample}.bam > {output.bamq}; "
"qualimap bamqc -bam {output.bamq} --skip-duplicated -c -outformat 'HTML' -outdir {output.dir} -nt {resources.cpus} 1> {output.log}; "
"""
export JAVA_OPTS='-Djava.awt.headless=true';
samtools view -b -q {config[snippy_map_qual]} {input.snippy_dir}/{wildcards.sample}.bam > {output.bamq};
qualimap bamqc -bam {output.bamq} --skip-duplicated -c -outformat 'HTML' -outdir {output.dir} -nt {resources.cpus} 1> {output.log};
"""

# -----------------------------------------------------------------------------#

Expand Down

0 comments on commit 62c1c5c

Please sign in to comment.