Skip to content

error message with sig_norm_method = "znorm_rows" #71

Closed

Description

@bcmiller16

I am trying to Z-score across rows (genes) instead of across cells using the command (sig_norm_method = "znorm_rows"). However, whenever I attempt this, I get the following error:

Error in [.data.frame(sigMatrix, , keep_significant, drop = FALSE) :
undefined columns selected

which occurs after the evaluation of local consistent of signatures in latent space, while clustering signatures. I am able to successfully run Vision on my dataset when I drop the "sig_norm_method = znorm_rows" function. Can you please help me to fix this problem?

Activity

  1. deto commented on Feb 14, 2020

    @deto
    Member

    I looked into it this morning - I think the problem is that you have genes with no expression variance across all cells (i.e., genes that are 0 in all cells).

    I had been assuming people would have filtered these prior to running VISION, but I don't think that was a good assumption.

    So, instead, I've fixed that behavior (NaNs getting propagated due to standard scaling with 0 variance), and also added a new default behavior where genes that are expressed in less than .1% of cells are not considered when running signature scores (adjustable with a new parameter, sig_gene_threshold).

    I've created a new release for this (along with some other recent bug fixes) as v.2.1.0 - if you update and re-run, the problem should be fixed.

    Also, I should mention, I've found it important to use some sort of column normalization to account for variable detection rates per cell - so if you do want to use the row normalization, I'd use the combined row and column normalization of znorm_rows_then_columns.

  2. bcmiller16 commented on Feb 14, 2020

    @bcmiller16
    Author
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