Skip to content

Commit

Permalink
Merge pull request #6 from pd321/develop
Browse files Browse the repository at this point in the history
Fixes #4 and #5
  • Loading branch information
pd321 authored Apr 26, 2020
2 parents 5270a8f + c1e6690 commit 159ab89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions src/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ rule trimgalore_se:
params:
quality = config['trimgalore']['quality'],
stringency = config['trimgalore']['stringency'],
e = config['trimgalore']['e']
# trimgalore does not recommend using more than 4 threads
threads: threads_mid if threads_mid < 4 else 4
e = config['trimgalore']['e'],
#trimgalore does not recommend using more than 4 threads
threads_actual = threads_mid if threads_mid < 4 else 4
# setting it to mid ensures not no many trimgalore jobs launched
threads: threads_mid
shell:
'trim_galore '
'--quality {params.quality} '
'--stringency {params.stringency} '
'-e {params.e} '
'--gzip '
'--output_dir results/bam/ '
'--cores {threads} '
'--cores {params.threads_actual} '
'--basename {wildcards.sample} '
'--no_report_file '
'{input} 2>&1 | tee {log}'
Expand All @@ -34,16 +36,19 @@ rule trimgalore_pe:
params:
quality = config['trimgalore']['quality'],
stringency = config['trimgalore']['stringency'],
e = config['trimgalore']['e']
threads: threads_mid if threads_mid < 4 else 4
e = config['trimgalore']['e'],
#trimgalore does not recommend using more than 4 threads
threads_actual = threads_mid if threads_mid < 4 else 4
# setting it to mid ensures not no many trimgalore jobs launched
threads: threads_mid
shell:
'trim_galore '
'--quality {params.quality} '
'--stringency {params.stringency} '
'-e {params.e} '
'--gzip '
'--output_dir results/bam/ '
'--cores 4 '
'--cores {params.threads_actual} '
'--basename {wildcards.sample} '
'--paired --no_report_file '
'{input[0]} {input[1]} 2>&1 | tee {log}'
Expand Down
2 changes: 1 addition & 1 deletion src/se.smk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rule rose_main:
peaks = rules.blklist_filt.output
output:
enhancers_table = "results/se/{chip_sample}/{chip_sample}_peaks_AllEnhancers.table.txt",
enhancers_plot = "results/se/{chip_sample}/{chip_sample}_Plot_points.png"
enhancers_plot = "results/se/{chip_sample}/{chip_sample}_peaks_Plot_points.png"
threads: threads_mid
log: "logs/se/{chip_sample}_rose_main.log"
params:
Expand Down

0 comments on commit 159ab89

Please sign in to comment.