Entering edit mode
6.7 years ago
zizigolu
★
4.3k
Hi,
I have this data
> head(datExpr[,1:4])
CD109 KAT5 WWC2 CD163
Control_D0 1.94 53.18 13.27 0.00
Control_D1 1.99 53.08 12.87 0.00
Control_D10 1.79 50.95 10.76 0.33
Control_D11 1.97 48.13 7.85 0.48
Control_D12 1.94 53.30 9.16 0.56
Control_D13 2.03 52.35 7.15 0.64
> names(datExpr)
NULL
probes = names(datExpr)
gives NULL (empty) values
I can't figure out why names() returns empty. Can one help me please? Thank you
Strange indeed. Did you try with rownames() and colnames()?
Thanks, my genes are in columns that I suppose should go to names
Maybe the
names()
function is overwritten in the current namespace? Does R allow that? Can you check for it?R allows that (and here) so that must be the case here.
https://ibb.co/hG4Mnn
Good point. Try base::names() then.
base::names(datExpr)
, not justbase::names()
:-)Thank you,
Sorry, instead of names (probes = names(datExpr) ) , how can I put my genes from columns in datExpr in prob???
I did so instead: colnames(datExpr)=prob
base::names()
gave you NULL as well? My recommendation is wrong then, yournames
has not been overwritten.Yes, gave NULL. However thanks for your time
Thanks