Skip to content

Commit

Permalink
properly dispose of log directives
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb committed Aug 9, 2024
1 parent 258db7d commit 4a42bff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
6 changes: 0 additions & 6 deletions snakePipes/shared/rules/CSAW.multiComp.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ rule calc_matrix_log2r_CSAW:
threads: 8
conda: CONDA_SHARED_ENV
shell: """
touch {log.out}
touch {log.err}
if [[ -s {params.bed_in} ]]; then
computeMatrix scale-regions -S {input.bigwigs} -R {params.bed_in} -m 1000 -b 200 -a 200 -o {output.matrix} -p {threads}
fi
Expand All @@ -141,8 +139,6 @@ rule plot_heatmap_log2r_CSAW:
smpl_label = lambda wildcards: ' '.join(reordered_dict[wildcards.compGroup].keys())
conda: CONDA_SHARED_ENV
shell: """
touch {log.out}
touch {log.err}
if [[ -s {input.matrix} ]]; then
plotHeatmap --matrixFile {input.matrix} \
--outFileSortedRegions {output.sorted_regions} \
Expand All @@ -167,8 +163,6 @@ rule calc_matrix_cov_CSAW:
threads: 8
conda: CONDA_SHARED_ENV
shell: """
touch {log.out}
touch {log.err}
if [[ -s {params.bed_in} ]]; then
computeMatrix scale-regions -S {input.bigwigs} -R {params.bed_in} \
-m 1000 -b 200 -a 200 -o {output.matrix} -p {threads}
Expand Down
4 changes: 0 additions & 4 deletions snakePipes/shared/rules/CSAW.singleComp.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ rule calc_matrix_cov_CSAW:
threads: 8
conda: CONDA_SHARED_ENV
shell: """
touch {log.out}
touch {log.err}
if [[ -s {params.bed_in} ]]; then
computeMatrix scale-regions -S {input.bigwigs} -R {params.bed_in} \
-m 1000 -b 200 -a 200 -o {output.matrix} -p {threads}
Expand All @@ -167,8 +165,6 @@ rule plot_heatmap_cov_CSAW:
smpl_label=' '.join(reordered_dict.keys())
conda: CONDA_SHARED_ENV
shell: """
touch {log.out}
touch {log.err}
if [[ -s {input.matrix} ]]; then
plotHeatmap --matrixFile {input.matrix} \
--outFileSortedRegions {output.sorted_regions} \
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/shared/rules/hicexplorer.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ rule map_fastq_single_end:
threads: lambda wildcards: 15 if 15<max_thread else max_thread
conda: CONDA_HIC_ENV
shell:
"echo 'mapping {input}' > {log.out} && "
"echo 'mapping {input}' && "
"{params.aligner_cmd} -A1 -B4 -E50 -L0 "
"-t {threads} {params.aligner_index} {input} | "
"samtools view -Shb - > {output.out}"
Expand Down

0 comments on commit 4a42bff

Please sign in to comment.