Entering edit mode
3.6 years ago
rishav513
▴
30
While trying to log transform my RNA seq data, I got this error
> log_counts <- log2(hep + 1)
Error in FUN(left, right) : non-numeric argument to binary operator
Even after removing my first column, I got the same error
> log_counts <- log2(hep[,-1] + 1)
Error in FUN(left, right) : non-numeric argument to binary operator
My "hep" data is as follows:
Your columns are probably not a numeric datatype. What is
class(hep$A1)
?[1] "character"
Well, there you go. Try this:
you can do it inside deseq2