Skip to content

Error when NB model doesn't fit: while ((it <- it + 1) < limit && abs(del) > eps) missing value where TRUE/FALSE needed #3

@karinkumar

Description

@karinkumar

Hello @walaj and I were trying to run a fishhook on sparse data (very few breakpoints across the binned genome). Sometimes the data is sparse enough that the nb model doesn't fit. In fact, it throws an error that's within glm fitting function : Error in while ((it <- it + 1) < limit && abs(del) > eps) { : missing value where TRUE/FALSE needed

We are switching to a poisson model, but perhaps there is a better way to catch this error and print a message or redirect to a poisson model instead. Right now it just stops the fishhook model from running.

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