R/volcano.R

Defines functions volcano

volcano <- function(hic.table) {
  hic.table[, A := (adj.IF1 + adj.IF2) / 2]
  max_D <- max(hic.table$D)
  max_A <- max(log10(hic.table$A))
  hic.table[, volcano := -log10(p.value) * (log10(A) / log10(max_A)) * (1 - (D / max_D))]
  plot(hic.table$adj.M, hic.table$volcano)
  return(hic.table)
}

Try the HiCcompare package in your browser

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

HiCcompare documentation built on Nov. 8, 2020, 8:26 p.m.