Skip to content

Commit

Permalink
fix up params + usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pinin4fjords committed Jun 19, 2024
1 parent e45e521 commit 4dd03ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ params {
skip_markduplicates = false
skip_alignment = false
skip_pseudo_alignment = false
strand_predict_threshold = 0.8
stranded_threshold = 0.8
unstranded_threshold = 0.1

// QC
skip_qc = false
Expand Down
9 changes: 8 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,13 +453,20 @@
"default": 200,
"fa_icon": "fas fa-sort-amount-up-alt"
},
"strand_predict_threshold": {
"stranded_threshold": {
"type": "number",
"minimum": 0.5,
"maximum": 1.0,
"default": 0.8,
"description": "The fraction of stranded reads that must be assigned to a strandedness for confident assignment. Must be at least 0.5.",
"help_text": "To be assigned as unstranded, read fractions must be different by less than 1- this value. Samples not convincingly assigned as stranded or unstranded will be assigned as 'undetermined'. These will be treated as unstranded but flagged as potential problems in the final MultiQC report."
},
"unstranded_threshold": {
"type": "number",
"minimum": 0.0,
"maximum": 1.0,
"default": 0.1,
"description": "The difference in fraction of stranded reads assigned to 'forward' and 'reverse' below which a sample is classified as 'unstranded'"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions workflows/rnaseq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ workflow RNASEQ {
.lib_format_counts
.join(ch_strand_fastq.auto_strand)
.map { meta, json, reads ->
def salmon_strand_analysis = getSalmonInferredStrandedness(json, threshold = params.strand_predict_threshold)
def salmon_strand_analysis = getSalmonInferredStrandedness(json, stranded_threshold = params.stranded_threshold, unstranded_threshold = params.unstranded_threshold)
strandedness = salmon_strand_analysis.inferred_strandedness
if ( strandedness == 'undetermined' ){
strandedness = 'unstranded'
Expand Down Expand Up @@ -744,7 +744,7 @@ workflow RNASEQ {
ch_strand_comparison = BAM_RSEQC.out.inferexperiment_txt
.map {
meta, strand_log ->
def rseqc_inferred_strand = getInferexperimentStrandedness(strand_log, threshold = params.strand_predict_threshold)
def rseqc_inferred_strand = getInferexperimentStrandedness(strand_log, stranded_threshold = params.stranded_threshold, unstranded_threshold = params.unstranded_threshold)
rseqc_strandedness = rseqc_inferred_strand.inferred_strandedness

def status = 'fail'
Expand Down

0 comments on commit 4dd03ca

Please sign in to comment.