Skip to content

Commit 9077aab

Browse files
authored
Merge pull request #351 from jfy133/damageprofiler-yaxis
Damageprofiler yaxis
2 parents 7c7f927 + 21ec4e0 commit 9077aab

5 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
docker pull nfcore/eager:dev && docker tag nfcore/eager:dev nfcore/eager:dev
3333
- name: Extract branch name
3434
shell: bash
35-
run: echo "::set-env name=RUN_NAME::`echo ${GITHUB_REPOSITORY//\//_}`-`echo ${GITHUB_HEAD_REF//\//@} | rev | cut -f1 -d@ | rev`-${{ github.event_name }}-`echo ${GITHUB_SHA} | cut -c1-6`"
35+
run: echo "::set-env name=RUN_NAME::`echo ${GITHUB_REPOSITORY//\//_}`-${{ github.event_name }}-`echo ${GITHUB_SHA} | cut -c1-6`"
3636
id: extract_branch
3737
- name: Determine tower usage
3838
shell: bash

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2525
* [#286](https://github.com/nf-core/eager/issues/286) - Adds pipeline-specific profiles (loaded from nf-core configs)
2626
* [#310](https://github.com/nf-core/eager/issues/310) - Generalises base.config
2727
* [#326](https://github.com/nf-core/eager/pull/326) - Add Biopython and [xopen](https://github.com/marcelm/xopen/) dependencies
28+
* [#336](https://github.com/nf-core/eager/issues/336) - Change default Y-axis maximum value of DamageProfiler to 30% to match popular (but slower) mapDamage, and allow user to set their own value.
2829
* [#352](https://github.com/nf-core/eager/pull/352) - Add social preview image
2930

3031
### `Fixed`

docs/usage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,10 @@ Specifies the length filter for DamageProfiler. By default set to `100`.
629629

630630
Specifies the length of the read start and end to be considered for profile generation in DamageProfiler. By default set to `15` bases.
631631

632+
#### `--damageprofiler_yaxis`
633+
634+
Specifies what the maximum misincorporation frequency should be displayed as, in the DamageProfiler damage plot. This is set to `0.30` (i.e. 30%) by default as this matches the popular [mapDamage2.0](https://ginolhac.github.io/mapDamage) program. However, the default behaviour of DamageProfiler is to 'autoscale' the y-axis maximum to zoom in on any _possible_ damage that may occur (e.g. if the damage is about 10%, the highest value on the y-axis would be set to 0.12). This 'autoscale' behaviour can be turned on by specifying the number to `0`. Default: `0.30`.
635+
632636
#### `--run_pmdtools`
633637

634638
Specifies to run PMDTools for damage based read filtering and assessment of DNA damage in sequencing libraries. By default turned off.

main.nf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ def helpMessage() {
104104
105105
(aDNA) Damage Analysis
106106
--damageprofiler_length Specify length filter for DamageProfiler
107-
--damageprofiler_threshold Specify number of bases to consider for damageProfiler
107+
--damageprofiler_threshold Specify number of bases to consider for damageProfiler (e.g. on damage plot). Default: 15
108+
--damageprofiler_yaxis Specify the maximum misincorporation frequency that should be displayed on damage plot. Set to 0 to 'autoscale'. Default: 0.30
108109
--run_pmdtools Turn on PMDtools
109110
--udg_type Specify here if you have UDG half treated libraries, Set to 'half' in that case, or 'full' for UDG+. If not set, libraries are set to UDG-.
110111
--pmdtools_range Specify range of bases for PMDTools
@@ -1519,7 +1520,7 @@ process damageprofiler {
15191520
script:
15201521
base = "${bam.baseName}"
15211522
"""
1522-
damageprofiler -i $bam -r $fasta -l ${params.damageprofiler_length} -t ${params.damageprofiler_threshold} -o .
1523+
damageprofiler -i $bam -r $fasta -l ${params.damageprofiler_length} -t ${params.damageprofiler_threshold} -o . -yaxis_damageplot ${params.damageprofiler_yaxis}
15231524
"""
15241525
}
15251526

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ params {
8181
//DamageProfiler settings
8282
damageprofiler_length = 100
8383
damageprofiler_threshold = 15
84+
damageprofiler_yaxis = 0.30
8485

8586
//DeDuplication settings
8687
dedupper = 'dedup' //default value dedup

0 commit comments

Comments
 (0)