Dear all,
From the DESeq2 guide (http://bioconductor.org/packages/release/bioc/vignettes/DESeq2/inst/doc/DESeq2.html#countmat) I try to read a count matrix in from a TAB separated file:
cts <- as.matrix(read.csv("data.tab", sep="\t", row.names="gene_name"))
However I see that as.matrix causes the values to be "strings" in R?
head(cts, 3)
entrez_id CON6_A    CON6_B    CON6_C    AMD6_A    AMD6_B
0610005C13Rik "71661"   "      0" "      0" "     13" "      0" "      0"
0610007P14Rik "58520"   "   1224" "   2002" "   1931" "   1830" "   1155"
0610009B22Rik "66050"   "     67" "     59" "     41" "     27" "     54
If I don't convert to matrix with:
cts <- read.csv("data.tab", sep="\t", row.names="gene_name")
All looks good:
entrez_id CON6_A CON6_B CON6_C AMD6_A AMD6_B AMD6_C
0610005C13Rik     71661      0      0     13      0      0     16
0610007P14Rik     58520   1224   2002   1931   1830   1155   1596
0610009B22Rik     66050     67     59     41     27     54     23
Is casting to as.matrix a must for DESeq2? Could someone advise?
Thanks,
Gregor
Thanks so much, will check it out!