Skip to content

Commit

Permalink
Merge branch 'CW-3200' into 'dev'
Browse files Browse the repository at this point in the history
Increase default number of reads in pre-medaka downsampling [CW-3200]

See merge request epi2melabs/workflows/wf-amplicon!56
  • Loading branch information
SamStudio8 committed Dec 15, 2023
2 parents a4e8154 + 9afb157 commit fadd19d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [v1.0.1]
### Changed
- Default for `--reads_downsampling_size` to 1500.
- Default for `--reads_downsampling_size` to 1500 to limit memory usage.
- Default for `--medaka_target_depth_per_strand` to 150 as the workflow now supports longer amplicons.

### Fixed
- The workflow failing when a sample had only a single read.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Find related protocols in the [Nanopore community](https://community.nanoporetec
| Nextflow parameter name | Type | Description | Help | Default |
|--------------------------|------|-------------|------|---------|
| number_depth_windows | integer | Number of windows used during depth of coverage calculations. | Depth of coverage is calculated for each sample across each amplicon split into this number of windows. A higher number will produce more fine-grained plots at the expense of run time. | 100 |
| medaka_target_depth_per_strand | integer | Downsample each amplicon to this per-strand depth before running Medaka. | Medaka performs best with even strand coverage and depths between 80X and 400X. To avoid too high coverage, the workflow downsamples the reads for each amplicon to this per-strand depth before running Medaka. Changing this value is discouraged as it might cause decreased performance. | 75 |
| medaka_target_depth_per_strand | integer | Downsample each amplicon to this per-strand depth before running Medaka. | Medaka performs best with even strand coverage and depths between 80X and 400X. To avoid too high coverage, the workflow downsamples the reads for each amplicon to this per-strand depth before running Medaka. Changing this value is discouraged as it might cause decreased performance. | 150 |


### Miscellaneous Options
Expand Down
2 changes: 1 addition & 1 deletion docs/06_inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
| Nextflow parameter name | Type | Description | Help | Default |
|--------------------------|------|-------------|------|---------|
| number_depth_windows | integer | Number of windows used during depth of coverage calculations. | Depth of coverage is calculated for each sample across each amplicon split into this number of windows. A higher number will produce more fine-grained plots at the expense of run time. | 100 |
| medaka_target_depth_per_strand | integer | Downsample each amplicon to this per-strand depth before running Medaka. | Medaka performs best with even strand coverage and depths between 80X and 400X. To avoid too high coverage, the workflow downsamples the reads for each amplicon to this per-strand depth before running Medaka. Changing this value is discouraged as it might cause decreased performance. | 75 |
| medaka_target_depth_per_strand | integer | Downsample each amplicon to this per-strand depth before running Medaka. | Medaka performs best with even strand coverage and depths between 80X and 400X. To avoid too high coverage, the workflow downsamples the reads for each amplicon to this per-strand depth before running Medaka. Changing this value is discouraged as it might cause decreased performance. | 150 |


### Miscellaneous Options
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ params {
min_coverage = 20
basecaller_cfg = "[email protected]"
medaka_model = null
medaka_target_depth_per_strand = 75
medaka_target_depth_per_strand = 150

// de-novo mode options
force_spoa_length_threshold = 2000
Expand Down
2 changes: 1 addition & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
},
"medaka_target_depth_per_strand": {
"type": "integer",
"default": 75,
"default": 150,
"description": "Downsample each amplicon to this per-strand depth before running Medaka.",
"help_text": "Medaka performs best with even strand coverage and depths between 80X and 400X. To avoid too high coverage, the workflow downsamples the reads for each amplicon to this per-strand depth before running Medaka. Changing this value is discouraged as it might cause decreased performance."
}
Expand Down

0 comments on commit fadd19d

Please sign in to comment.