Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in batch_sil() and pcRegression() #59

Open
aditisk opened this issue Apr 19, 2021 · 0 comments
Open

Error in batch_sil() and pcRegression() #59

aditisk opened this issue Apr 19, 2021 · 0 comments

Comments

@aditisk
Copy link

aditisk commented Apr 19, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant