Skip to content

FilterBitwiseOrBug #112

Description

@0820LL

Description of the bug

In the Nextflow channel filter, a bitwise OR (|) was used instead of a logical OR (||), leading to unsafe condition evaluation or unexpected results.

Image

Is it better to modify it like this?
quantification_data = mzml_files.filter { meta, file -> meta.level == "MS1" || meta.level == "MS12" }

Command used and terminal output

Relevant files

No response

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions