Skip to content

Commit

Permalink
Allow normalizeDepth process to be skipped (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika authored Jun 23, 2023
1 parent 2888143 commit 7ed9164
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Important config options are:
| `varFreqThreshold` | `0.75` | Allele frequency threshold for unambiguous variant |
| `varMinDepth` | `10` | Minimum coverage depth to call variant |

### Depth Normalization
By default, sequence depth will be normalized using `bbnorm` to the value specified by the `--normalizationTargetDepth` param (default: 200). To skip depth normalization, add the `--skip_normalize_depth` flag.

#### QC
A script to do some basic QC is provided in `bin/qc.py`. It measures the % of reference bases are covered by `varMinDepth`, and the longest stretch of consensus sequence with no `N` bases. This script does not make a QC pass/fail call.
Expand Down
5 changes: 4 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ params {
help = false
outdir = './results'
tracedir = "${params.outdir}/pipeline_info"


// depth normalization
skip_normalize_depth = false

// host filtering
composite_ref = false
viral_contig_name = 'NC_063383.1'
Expand Down
10 changes: 7 additions & 3 deletions workflows/illuminaMpxv.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
nextflow.enable.dsl = 2

include { articDownloadScheme } from '../modules/utils.nf'
include { performHostFilter } from '../modules/illumina.nf'
include { normalizeDepth } from '../modules/illumina.nf'
include { performHostFilter } from '../modules/illumina.nf'
include { readTrimming } from '../modules/illumina.nf'
include { filterResidualAdapters } from '../modules/illumina.nf'
include { indexReference } from '../modules/illumina.nf'
Expand Down Expand Up @@ -88,9 +88,13 @@ workflow sequenceAnalysis {

main:

normalizeDepth(ch_filePairs)
if (!params.skip_normalize_depth) {
ch_reads_to_hostfilter = normalizeDepth(ch_filePairs)
} else {
ch_reads_to_hostfilter = ch_filePairs
}

performHostFilter(normalizeDepth.out)
performHostFilter(ch_reads_to_hostfilter)

readTrimming(performHostFilter.out.fastqPairs)

Expand Down

0 comments on commit 7ed9164

Please sign in to comment.