Skip to content

Reject stale site indexes - #668

Open
thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-stale-sites-index-rejection
Open

thierrygosselin wants to merge 1 commit into
ANGSD:masterfrom
thierrygosselin:fix-stale-sites-index-rejection

Conversation

@thierrygosselin

Copy link
Copy Markdown

Summary

When a text sites file is newer than its cached .bin or .idx files, ANGSD previously printed a warning but continued using the stale indexes.

This can cause the -sites workflow to read outdated coordinates or filters, producing confusing downstream results. It is related to the stale-index and zero-retained-site reports in issues #380 and #385.

This change:

  • reports the condition as an error;
  • stops before reading stale site indexes;
  • returns a failure status;
  • instructs the user to regenerate the site indexes.

No site-selection logic is changed when the text file and its indexes are up to date.

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