nextflow-io / nextflow-io/nextflow

errorStrategy "skip"

Open
#6,711 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lang/processes stale
Dominant language
Groovy
Stars
3.5k
Forks
811
Avg merge
2d 11h
Merged PRs (30d)
61

Description

New feature

I wanted to propose a new errorStrategy (skip?) that, if the process fails or keeps failing, continues the pipeline without dropping the sample and forwards the input directly as output.

Use case

Let's say I have ONT data and don't know whether it still contains barcodes or adapters. If I run a tool like porechop_abi, it will detect them if they are present, but fail/crash if they are not. Imagine I have data from multiple sources, some with and some without an adapter. It would be nice to have the ability to run porechop_abi on all, and, in case of failures, still move forward with the input as output.

Currently, errorStrategy ignore allows the pipeline to continue, but will drop the sample that fails. I'd like something that, in case of failure, skips the steps and moves forward directly without dropping the specific sample.

Suggested implementation

If the process fails/error, then forward the channel input as output?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing the existing errorStrategy "ignore" behavior, then determine how a failed process could forward its input without dropping the sample; done means a defined strategy that preserves failed inputs while allowing the pipeline to continue.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
data-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.