MOFA2 icon indicating copy to clipboard operation
MOFA2 copied to clipboard

create_mofa issue with different number of samples in different data types

Open clersdom opened this issue 2 years ago • 1 comments

Hi,

I am trying to create a mofa object with a list of matrices and I am getting the below error.

MOFAobject<- create_mofa(list3) Creating MOFA object from a list of matrices (features as rows, sample as columns)...

Error in create_mofa_from_matrix(data, groups) : Views have different number of samples (columns)... please make sure that all views contain the same samples in the same order (see documentation)

Would it be possible to create the object from a list of matrices? or for this I would need to create a long data frame as input for the function? Thanks in advance.

clersdom avatar Mar 28 '22 10:03 clersdom

Hi,

I am trying to create a mofa object with a list of matrices and I am getting the below error.

MOFAobject<- create_mofa(list3) Creating MOFA object from a list of matrices (features as rows, sample as columns)...

Error in create_mofa_from_matrix(data, groups) : Views have different number of samples (columns)... please make sure that all views contain the same samples in the same order (see documentation)

Would it be possible to create the object from a list of matrices? or for this I would need to create a long data frame as input for the function? Thanks in advance.

Did you check the order of the samples?

zhangdong360 avatar Aug 09 '22 10:08 zhangdong360