sorting my data based on p-value
1
0
Entering edit mode
9.2 years ago

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

Please guide me

R statistics • 6.7k views
ADD COMMENT
1
Entering edit mode
9.2 years ago

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.

ADD COMMENT
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode

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

ADD REPLY
1
Entering edit mode
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...
ADD REPLY
1
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 1792 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6