Skip to content

Error in batch_sil() and pcRegression() #59

@aditisk

Description

@aditisk

Hello,

I am following the steps in the tutorial and I was able to get an output for the kBET() function on my dataset. I'm running into some issues in the subsequent functions:

batch.silhouette <- batch_sil(pca.data, meta$sample_id)
Error in silhouette.default(as.numeric(batch), dd) :
clustering 'x' and dissimilarity 'dist' are incompatible

batch.pca <- pcRegression(pca.data, meta$sample_id)
Error in model.frame.default(formula = rot.data ~ batch, drop.unused.levels = TRUE) :
variable lengths differ (found for 'batch')

I'm using the same data and batch variables I used in the kBET() function. Any thoughts of what might be going wrong and how I can fix this ? Thanks a lot.

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