I have performed microarray data analysis using limma in r and I have a list of DEGs. Now I have some repetitions in gene symbols and I want to keep the genes with the highest significance(adjusted p value). How can I do that in R?
I want to keep only the unique genes with highest significance in case of duplicates. Below is the code that I am trying. tT is the DEG table above. This is only half of the code. I am trying to loop through all the names and if I find a repetition then compare that with the other duplicates.
for(i in tT$SYMBOL){ if(length(which(tT$SYMBOL==i))>1){
index=tT[which(tT$SYMBOL[-c(i),7]==i),] }
Really need some help. Thanks
You're working on:
Yet the only tag used is
R
. Why is that?In other words we want "group by min", see related StackOverflow post:
Hi banerjeeshayantan,
I have same problem. Did you fix it and how? Thanks