Hi,
I get the following error message on combining this dataset I have using the following command:
MSnset_comb_norr <- MSnbase::combine(MSnset_Set1,MSnset_Set2,MSnset_Set3,MSnset_Set4)
Error in combine(x[[nm]], y[[nm]]) :
matrix shared row and column elements differ: Mean relative difference: 0.4045317
The error occurs if I combine MSnsetSet4 as it works fine till MSnsetSet3.
For Reference the object dimensions are as below
dim(exprs(MSnset_Set4))
12426 10
dim(exprs(MSnset_Set3))
13260 10
dim(exprs(MSnset_Set2))
11117 10
dim(exprs(MSnset_Set1))
11973 10
This is first time I am getting this message as the combine function works fine otherwise. Any suggestions regarding this would be highly appreciated.
Thanks.
Kamal
Actually you are right, upon checking one of the column name is same across two objects. I think this generated the error. Thanks.
Ok, let me know how it goes. The feature variables (in
fData
) can also lead to errors if they have the same names in different objects. For example if the number of peptides for a protein group in the first object claims that 10 peptides were found, but in the second object only 8 peptides were found. Then, you'll end up with an error because the same protein group/feature variable have conflicting information. This can be solved by removing feature variables that aren't useful/relevant anymore upon combination, or rename them usingupdateFvarLabels
.