PCAtools
PCAtools copied to clipboard
problem creating pca object
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!