Open cafletezbrant opened 7 years ago
I'll look into this; I think it is my recent pull request which created this issue
@kasperdanielhansen any word on this?
Similar problem. Cant figure out how to use ComBat()
Wait a minute. I have been tagged in an issue from May 2017. Well, that's a failure.
I looked into @cafletezbrant issue. It is caused because the input data is a data.frame
and not a matrix
. Look at the code of ComBat()
there is a fair amount of matrix algebra involving the dat
argument, so I think the silent assumption is that dat
is a matrix. That is also true for sva()
, although what happens for several of these matrix algebra functions is that dat
silent gets transformed from a data.frame
into a matrix
.
This can be solved two ways
1) explicitly coercing dat into a matrix, which should probably happen at the start of the function.
2) testing whether dat
is a matrix and failing if it is not.
What does the maintainer @jtleek say?
band191_log_libsize.txt
Using the data I attached (band191_log_libsize.txt), ComBat crashes on the following code:
With the following message: