Trying to do log2 transformation of my rna seq data
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:
• 3,794 views
•
link
1 answer
Log-transforming RNA-seq counts is nonsense and will give poor results in any analysis, as you indeed seem to report for this data on Biconductor:
https://support.bioconductor.org/p/9136077/
Please follow one of our workflows for an appropriate analysis of RNA-seq data.
• 0 views
•
link
Log in to answer this question.
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