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

problem creating pca object #66

Open
jawi005 opened this issue Aug 16, 2023 · 0 comments
Open

problem creating pca object #66

jawi005 opened this issue Aug 16, 2023 · 0 comments

Comments

@jawi005
Copy link

jawi005 commented Aug 16, 2023

Hi Kevin,

I am using the latest version of PCAtools in R 4.2.2. I want to know how to solve this error.

this is my code

dds <- DESeqDataSetFromMatrix(expression, coldata, ~condition)
dds <- DESeq(dds)
vst <- assay(vst(dds))

p <- pca(vst, metadata = coldata[,1], removeVar = 0.1)

the error that occurs is

'colnames(mat)' is not identical to 'rownames(metadata)'

but if i check

rownames(metadata) == colnames(vst)

the result is TRUE

what am I doing wrong here?
Thanks for your help!

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