Entering edit mode
5.4 years ago
XBria
▴
90
Hi,
I am having a problem when using DGElist. Can anyone suggest a solution for this type of error ? There are no negative numbers in the count_found_new_2 (all>0)
Thanks,
sample_info=read.table(file = "sample_info3new.txt",sep =',',row.names = 1,header = TRUE)
group_ <- as.factor(sample_info[,"condition"])
genes_=rownames(count_found_new_2)
data=DGEList(count_found_new_2,samples = sample_info, group =group_,genes = genes_ )
Same problem occurred last week as well here on Biostars. The problem was then that the count matrix (data frame) also contained factors (instead of only possitive integers). Can you check your data frame?
Can you please clarify where exactly do I need to make changes ? should I write so:
data is like: Name of columns : N168 N145 ...
Name of rows: ENS00001
ENS00002
and values for each sample
Can you check your data frame with this code, please? See if you have only integers in your data frame.
This is for one sample $ N0531 : int 1573 25 965 322 89 1095 8874 1534 3199 763 ...
Yeah, now you check if there is any row that isn't an int but for example a factor.
Or check it this way, and see if there is a FALSE somewhere:
I just checked. They are all integer.
sapply(count_found_new_2, typeof)
Okay, then that's not the problem. Sorry I cannot help you further.
All are FALSE. I think the TRUE value is what you mean.
They should all be TRUE.
Benn,
This is what I changed and saw no error
It seems that the first column is where the problem occurs. the name of genes I mean (ENS0000,...) Do you now have any suggestion ?
Okay, that was exactly what I suspected, a column in your data frame that did contain something else than integers. Be sure you only have positive integers, good luck with further analysis.
Your problem is solved, my suggestion is continue your analysis ;-)
Thanks :) ......................
Thanks :) ......................