Brick_mcool_normalisation_exists: Check if a normalisation exists in an mcool file.

Description Usage Arguments Value Examples

View source: R/Brick_functions.R

Description

Brick_mcool_normalisation_exists checks if a particular normalisation exists in an mcool file.

Usage

1
Brick_mcool_normalisation_exists(mcool, norm_factor = NULL, resolution = NULL)

Arguments

mcool

Required. Path to an mcool file.

norm_factor

Required. The normalization factor to use for normalization from an mcool file. norm_factor currently accepts one of "Iterative-Correction", "Knight-Ruitz", "Vanilla-coverage", "Vanilla-coverage-square-root".

resolution

Optional. Default NA When an object of class BrickContainer is provided, resolution defines the resolution on which the function is executed

Value

A boolean vector of length 1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 

require(curl)
out_dir <- file.path(tempdir(), "mcool_test_dir")
dir.create(path = out_dir)
curl_download(url = paste("https://data.4dnucleome.org/",
"files-processed/4DNFI7JNCNFB/",
"@download/4DNFI7JNCNFB.mcool", sep = ""),
destfile = file.path(out_dir, "H1-hESC-HiC-4DNFI7JNCNFB.mcool"))

mcool <- file.path(out_dir, "H1-hESC-HiC-4DNFI7JNCNFB.mcool")
Brick_mcool_normalisation_exists(mcool = mcool,
norm_factor = "Iterative-Correction",
resolution = 50000)


## End(Not run)

HiCBricks documentation built on Nov. 8, 2020, 7:45 p.m.