Skip to content

Commit

Permalink
Merge pull request #217 from maxplanck-ie/Fix_awk_QC
Browse files Browse the repository at this point in the history
Fix peak QC awk command in ChIP and ATAC workflows
  • Loading branch information
dpryan79 authored Jul 25, 2018
2 parents e17068c + 60e0c3b commit aa0a79d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: snakepipes
version: 1.0.0_alpha4
version: 1.0.0_alpha5

source:
path: ../
Expand Down
2 changes: 1 addition & 1 deletion snakePipes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0-a4'
__version__ = '1.0.0-a5'
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/ATAC_qc.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ rule MACS2_peak_qc:
frip=`bc -l <<< "$reads_in_peaks/$mapped_reads"`
# compute peak genome coverage
peak_len=`awk '{{total=$3-$2}}END{{print total}}' {params.peaks}`
genome_size=`awk '{{total=$3-$2}}END{{print total}}' {params.peaks}`
peak_len=`awk '{{total+=$3-$2}}END{{print total}}' {params.peaks}`
genome_size=`awk '{{total+=$3-$2}}END{{print total}}' {params.peaks}`
genomecov=`bc -l <<< "$peak_len/$genome_size"`
# write peak-based QC metrics to output file
Expand Down
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/MACS2.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ rule MACS2_peak_qc:
frip=`bc -l <<< "$reads_in_peaks/$mapped_reads"`
# compute peak genome coverage
peak_len=`awk '{{total=$3-$2}}END{{print total}}' {params.peaks}`
genome_size=`awk '{{total=$3-$2}}END{{print total}}' {params.peaks}`
peak_len=`awk '{{total+=$3-$2}}END{{print total}}' {params.peaks}`
genome_size=`awk '{{total+=$3-$2}}END{{print total}}' {params.peaks}`
genomecov=`bc -l <<< "$peak_len/$genome_size"`
# write peak-based QC metrics to output file
Expand Down

0 comments on commit aa0a79d

Please sign in to comment.