search for: cumulmetr

Displaying 2 results from an estimated 2 matches for "cumulmetr".

Did you mean: cumulmetric
2010 Dec 17
1
help with function
Hello List I'm moving this over from the bioC list as, although the problem I'm working on is biological, the current bottle neck is my poor understanding of R. I wonder if someone would help me with the following function. cumulMetric <- function(deMirPresGenes, deMirs){ ??? #need to match position of each miR in deMirPresGenes with its FC to form a vector of FC in correct order ? ? fc <- deMirs ? ? fcVector <- as.numeric(with (fc, FC[match(deMirPresGenes[,4], Probe)] ) ) ? ? #multiply fc by context score for each in...
2010 Dec 18
0
[BioC] problem with function
...;- cbind(deMirPresGenes[,2], metric) ? ? colnames(geneMetric) <- c('sym', 'metric') ? ? ? ? #make cumul by aggregate ? ? listMetric <- aggregate(as.numeric(geneMetric[,2]), list(geneMetric[,1]), sum)#returns a dataframe ??? colnames(listMetric) <- c('symbol','cumulMetric') ? ? ??? #return whole list ??? return(listMetric)# dataframe } Cheers i --- On Sat, 18/12/10, cstrato <cstrato at aon.at> wrote: > From: cstrato <cstrato at aon.at> > Subject: Re: [BioC] problem with function > To: "Iain Gallagher" <iaingallagher at bt...