R/geneset_statistic_integral.r

Defines functions pipeline.genesetStatisticIntegral

pipeline.genesetStatisticIntegral <- function()
{
  spot.fisher.p <- function(spot)
  {
    spot$Fisher.p <- GeneSet.Fisher(unique(na.omit(gene.info$ids[spot$genes])),
                                    unique.protein.ids, gs.def.list, sort=TRUE)

    return(spot)
  }

  spot.list.overexpression$spots <<- lapply( spot.list.overexpression$spots, spot.fisher.p)
  spot.list.underexpression$spots <<- lapply( spot.list.underexpression$spots, spot.fisher.p)
  if (length(spot.list.correlation$spots) > 0)
  {
    spot.list.correlation$spots <<- lapply( spot.list.correlation$spots, spot.fisher.p)
  }
  spot.list.kmeans$spots <<- lapply( spot.list.kmeans$spots, spot.fisher.p)
  if (length(unique(group.labels)) > 1)
  {
    spot.list.group.overexpression$spots <<- lapply( spot.list.group.overexpression$spots, spot.fisher.p)
  }  
  spot.list.dmap$spots <<- lapply( spot.list.dmap$spots, spot.fisher.p)

}

Try the oposSOM package in your browser

Any scripts or data that you put into this service are public.

oposSOM documentation built on Nov. 8, 2020, 8:16 p.m.