This is a test version of Biostars. For the public version, visit https://www.biostars.org.
sorting my data based on p-value

I have on eSet and I want to sort my expression values related to probIDs, based on P-Value

Please guide me

r statistics

1 answer

eSet objects accept the [ accessor, so:

  1. Get the p-values
  2. order() them
  3. Take the eSet, e, and e[o,], where o is the order.

BTW, this isn't a bioinformatics question.

Thank you Mr Devon Ryan but I'm new in R, actually I need codes that I could get p-values for my eSet,

I appreciate for your help

best

If your data.frame is eSet and the p-value column is names "p-value", so:

eSet.ordered <- eSet[order(eSet$pvalue),]

more information in R : ?order

I Think the OP's eSet object is not a data frame with results of differential expression testing but an Expression set object as defined by the affy-package. So probably the OP doesn't even have p-values yet...

I recommend to learn R, then you don't have to bother yourself asking a lot of minor questions on any thing you want to do. :)

Here is a good guide: A few words for R beginners

Log in to answer this question.