Skip to content

How do you deal with the square root of negative covariance terms? #67

@dangeles

Description

@dangeles

Thank you so much for this interesting package! I was reading through the paper, and you calculate a shifted gene expression covariance matrix. Subsequently, you state you compute the euclidean distance (MSQR) ||sqrt(sigma_i) - sqrt(sigma_j)||^2_2 as an AOT measure, which allows for computational tractability.

I am sure this question is rather dumb and I'm missing something obvious, but I am confused how you are handling negative covariances throughout this package? Is it as simple as allowing imaginary numbers throughout the computation, or is there a computational trick to prevent Jax from freaking out about taking the square root of negative numbers?

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