Find loops using chromosight

getLoops(
  x,
  resolution = NULL,
  output_prefix = file.path("chromosight", "chromo"),
  norm = "auto",
  max.dist = "auto",
  min.dist = "auto",
  min.separation = "auto",
  n.mads = 5L,
  pearson = "auto",
  nreads = "no",
  ncores = 1L
)

Arguments

x

A HiCExperiment object

resolution

Which resolution to use to search loops

output_prefix

Prefix to chromosight output (default: "chromosight/chromo")

norm

Normalization parameter for chromosight

min.dist, max.dist

Min and max distance to use to filter for significant loops

min.separation

Minimum separation between anchors of potential loops

n.mads

Number of MADs to use to filter relevant bins to search for loops

pearson

Minimum Pearson correlation score to use to filter for significant loops

nreads

Number of reads to subsample to before searching for loops

ncores

Number of cores for chromosight

Value

A HiCExperiment object with a new "loops" topologicalFeatures storing significant interactions identified by chromosight, and an additional chromosight_args metadata entry.

Examples

contacts_yeast <- contacts_yeast()
#> see ?HiContactsData and browseVignettes('HiContactsData') for documentation
#> loading from cache
if (FALSE) { # \dontrun{
  contacts_yeast <- getLoops(contacts_yeast)
  metadata(contacts_yeast)$chromosight_args
  topologicalFeatures(contacts_yeast, 'loops')
} # }