On Thu, Jan 13, 2011 at 12:06 PM, viritha kaza <viritha.k@gmail.com> wrote:

> Hi Wei,
> Thanks....tapply works!!!!!
> Have to apply it to my data.
>

Have a look at the aggregate function.

Sean


> Thank u all for suggestions.
>
> -Viritha
>
>
> On Wed, Jan 12, 2011 at 5:55 PM, Wei Shi <shi@wehi.edu.au> wrote:
>
> > Hi Viritha:
> >
> >        You do not need a function, but the code below should do this:
> >
> > For array1:
> > tapply(x$array1, factor(x$genes), mean) # x is a data frame containing
> the
> > data in your example.
> >
> > Cheers,
> > Wei
> >
> > On Jan 13, 2011, at 8:38 AM, viritha kaza wrote:
> >
> >  > Hi Group,
> > > Is there any function which would help in converting data from probe
> > level
> > > to gene level by averaging the expression of all the probes
> corresponding
> > to
> > > a gene.
> > > For eg:
> > >                         array1      array2
> > > probe 1 Gene 1    2                 4
> > > probe 2 Gene 1    4                 3
> > > probe 3 Gene 2    5                 4
> > >
> > > result:
> > >            array1 array2
> > > Gene1    3           3.5
> > > Gene 2   5           4
> > > Could any one give some ideas to perform this?
> > > Thanks,
> > > Viritha
> > >
> >  >       [[alternative HTML version deleted]]
> > >
> > > _______________________________________________
> > > Bioconductor mailing list
> > > Bioconductor@r-project.org
> > > https://stat.ethz.ch/mailman/listinfo/bioconductor
> > > Search the archives:
> > http://news.gmane.org/gmane.science.biology.informatics.conductor
> >
> >
> > ______________________________________________________________________
> > The information in this email is confidential and inte...{{dropped:10}}
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

