Skip to content

Add a check for samples < 2 when computing metrics #138

Description

@ghar1821

For some metrics like ilisi, emd vertical, and functional marker preservation, they are not calculated if there are less than 2 samples per group or batch because it is not possible to compute them properly.

But the checks are only done when the metric is about to be calculated, specifically within the function that does the calculation. We should write a generic function that does the checking and run it in the beginning before the metric is even computed.

This was first brought up by issue #137 when the 3 metrics returned NaN for cytonorm data

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions