Skip to content

Cryptic error for multiple testing correction #3

@rbutleriii

Description

@rbutleriii

Hi, I have multiple sets of gene lists and am running pairwise enrichment using the following function on them:

# function runs enrichment and saves to file for p and padj
# takes two set lists, background gene count and output name and pdf width
enrich = function(list1, list2, background, outname, width=7) {
  # enrichment basic
  gom.obj = newGOM(list1, list2, background)
  pdf(file=paste0(today, nameset, outname, ".pdf"), width=width)
  drawHeatmap(gom.obj, grid.col="Blues")
  dev.off()
  # enrichment multiple testing correction
  pdf(file=paste0(today, nameset, outname, "_padj.pdf"), width=width)
  drawHeatmap(gom.obj, grid.col="Blues", adj.p=T)
  dev.off()
}

Usually works fine, but on one comparison (5 sets x 6 sets), I get three enrichments with the standard Heatmap (0.031, 6e-03, 6e-03), but a cryptic error and a blank pdf for the multiple testing set:

Error in (function (side, at = NULL, labels = TRUE, tick = TRUE, line = NA,  :
  no locations are finite

Am I correct in thinking this means none of the enrichments remained after multiple correction? Could it return an error as such?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions