Skip to content

Return failure status for invalid SAF likelihoods - #669

Open
thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-saf-invalid-likelihood
Open

thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-saf-invalid-likelihood

Conversation

@thierrygosselin

Copy link
Copy Markdown

ANGSD’s SAF code detected invalid genotype probabilities and normalization failures, but terminated with exit(0). This reports a successful process exit even though the SAF calculation failed.

This change makes those fatal paths return EXIT_FAILURE.

The likelihood calculations are unchanged. The change only ensures that malformed or numerically invalid SAF input cannot silently appear to have completed successfully.

This is important for automated pipelines, where the exit status is often the only signal that a calculation failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant