Skip to content

"Not enough data" quit in the multistate script crashes on keep_this #8

Open

Description

@lwaldron

In discrete-multistate-intersection/01_prediction_multistate.R, the "Not enough data" quit at line 126 builds its message with length(keep_this), but keep_this is only created at line 134. The deliberate quit becomes Error: object 'keep_this' not found and "Execution halted". In the v1.0.6 run (#7) this happened for COGEM pathogenicity rating at strain rank, and a wrapper that checks the logs for R errors could not tell it from a crash. The binary script creates keep_this before its checks and is not affected.

Fix: count the attributes from fdat in that message, for example length(unique(fdat$Attribute)).

Drafted with Claude Code.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions