PCAtools icon indicating copy to clipboard operation
PCAtools copied to clipboard

problem creating pca object

Open jawi005 opened this issue 2 years ago • 0 comments

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!

jawi005 avatar Aug 16 '23 09:08 jawi005