Closed simoxb closed 1 month ago
I experienced the same error, for the first time after many successful runs. The error message, No such variable: strandedness
, is confusing, would be helpful to have more informative one
I just faced this problem as well while using the workflow. I checked the code and found that there is a variabled called library_strandedness
that is not called within the file. was this meant to be the default variable for another variabled called strandedness
? @pinin4fjords, Can I ask what this variable do?
def library_strandedness = 'undetermined'
Ahh, thanks for flagging this everyone. I'll push a fix ASAP.
Addressed in https://github.com/nf-core/rnaseq/pull/1405
Description of feature
When running the rnaseq workflow wit the
infer_strandedness
step, it came to my attention that when neither thestranded_threshold
nor theunstranded_threshold
is reached, the workflow aborts with the following error message:This is because of the following code snippet in
rnaseq/subworkflows/nf-core/fastq_qc_trim_filter_setstrandedness/main.nf
:If neither threshold is reached, the strandedness variable isn't initialized, leading to the workflow crashing. I think a more helpful error message would be great here, or maybe even a standard value of the
strandedness
variable to prevent the workflow from crashing?PS: Not sure if this is a bug or a feature request.