Skip to content

Commit

Permalink
Preseq now actually reads the BAM
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorrison committed Nov 11, 2021
1 parent 0f3e504 commit 29139a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The following dependencies are downloaded when running with `--use-conda`, other
+ `samblaster`
+ `parallel` (preferably version 20201122)
+ `bedtools`
+ `preseq` (version 3.1.2+)
+ `preseq` (version 3.1.2+, must be compiled with htslib enabled)
+ `fastqc`
+ `trim_galore`
+ `fastq_screen` (only required if running `fastq_screen`)
Expand Down
2 changes: 2 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ fastq_screen_conf: /primary/projects/bbc/references/fastq_screen/downloaded_2020
# Run preseq on data
# If True - run preseq
# If False - skip this step
# preseq_options - other options to include in preseq c_curve (output file, paired end, and BAM input options already included)
preseq: False
preseq_options: ''

# Calculate the ratio observed/expected coverage based on bismap results for different genomic features
# run - create obs/exp plots if True, skip if False
Expand Down
3 changes: 2 additions & 1 deletion workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ rule preseq:
params:
dir = f'{output_directory}/analysis/preseq',
out = f'{output_directory}/analysis/preseq/{{sample}}.ccurve.txt',
opt = config['preseq_options'],
log:
f'{output_directory}/logs/preseq/{{sample}}.log',
benchmark:
Expand All @@ -88,7 +89,7 @@ rule preseq:
shell:
"""
mkdir -p {params.dir}
preseq c_curve -o {params.out} -P {input.bam} 2> {log}
preseq c_curve {params.opt} -o {params.out} -P -B {input.bam} 2> {log}
"""

def get_multiQC_params(wildcards):
Expand Down

0 comments on commit 29139a8

Please sign in to comment.