Metabolomics Society Forum

Software => R => XCMS => Topic started by: k.vd.wetering on October 03, 2012, 01:52:25 AM

Title: compare more than 2 groups
Post by: k.vd.wetering on October 03, 2012, 01:52:25 AM
Hi,

I was wondering whether it is possible to compare more than 2 groups. I have one "test" group and two control groups that I would like to compare. I am most interested in features that differ between the "test group" and both control groups. Now I manually check many EICs to see whether this is the case. It would be somewhat easier if I could have diffreport select these features for me. Extracting these features from the results file generated by "diffreport" is of course relatively easy, but I would then still get many box plots and EICs of features in which I am not so much interested.

Koen
Title: Re: compare more than 2 groups
Post by: sneumann on October 03, 2012, 02:53:33 PM
Hi,

not exactly sure what you mean there.

Do you want the features differential between the test group
and both control groups ? Then you could assign a single sampclass
to both controls. Or are you interested in the intersection of features
differential between test and both (or either of ?) the controls ?

You can do any logical set operations if you create several
individual diffreports between class1 and class2 of your choice(s),
and then combine them with and/or: dr1$pvalue>0.05 & dr2$pvalue>0.05

Make sure the individual diffreports are unsorted using sortpval=FALSE,
so that a feature in row 17 is the same across the diffreports.

Yours,
Steffen