Skip to content

Error: length of 'dimnames' [2] not equal to array extent #26

@hl-xue

Description

@hl-xue

Hello,

I encountered a problem running SampleQC with calc_pairwise_mmds:

sample-level parts of SampleQC:
  calculating 3 sample-sample MMDs:
  |==========================================================================================================| 100%

  clustering samples using MMD values
  calculating MDS embedding
Error in dimnames(x) <- dn : 
  length of 'dimnames' [2] not equal to array extent
In addition: Warning message:
In cmdscale(mmd_mat, k) : only 1 of the first 2 eigenvalues are > 0

Here is my script.

qc_dt <- make_qc_dt(merged_obj@meta.data, sample_var = "sample_id", 
                    qc_names = c("log_counts", "log_feats", "logit_mito"),
                    annot_vars = "condition") # Till here is fine
                    
qc_obj <- calc_pairwise_mmds(qc_dt, qc_names = c("log_counts", "log_feats", "logit_mito"),
                             annots_disc = c("cell_id", "sample_id", "condition"),
                             annots_cont = NULL) # The error occurs

Do you have any idea about this please? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions