Add intentional pre and post checks for file emptiness

Open
#177 0 comments 0 reactions 1 assignee View on GitHub

@a-frantz is already working on this.

Since Sep 17, 2025.

Assessment

This issue has not been assessed yet.

Description

It's a relatively common standard in the bioinformatics tools we wrap to not have any special handling for empty inputs or outputs (including headered files without content/alignments). These "empty" files can currently be passed around between many of our tools resulting in a bunch of no-ops and a tough-to-track class of errors.

We should have lightweight checks before and after the "main computation" of our tasks to ensure that only "populated" files are being processed. We'll need a short investigation to find out which tools this wrapping will be needed for, as it would likely be redundant with some tools that error as one might expect on empty inputs and outputs.

This is related to #172 , and closing this issue should probably close #172 as well.

Dominant language
WDL
Stars
44
Forks
15
Avg merge
12h 31m
Merged PRs (30d)
6

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.

More from stjudecloud/workflows

All issues in stjudecloud/workflows

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.