forked from PhanstielLab/plotgardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbb_readHic.Rd
54 lines (41 loc) · 2.07 KB
/
bb_readHic.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bb_readHic.R
\name{bb_readHic}
\alias{bb_readHic}
\title{Read a .hic file and return Hi-C data as a dataframe}
\usage{
bb_readHic(hicFile, chrom)
}
\arguments{
\item{hicFile}{A character value specifying the path to the .hic file.}
\item{chrom}{Chromosome of data, as a string.}
\item{chromstart}{Integer start position on chromosome.}
\item{chromend}{Integer end position on chromosome.}
\item{altchrom}{Alternate chromosome for interchromosomal data, as a string.}
\item{altchromstart}{Alternate chromosome integer start position for interchromosomal data.}
\item{altchromend}{Alternate chromosome integer end position for interchromosomal data.}
\item{assembly}{Default genome assembly as a string or a \link[BentoBox]{bb_assembly} object. Default value is \code{assembly = "hg19"}.}
\item{resolution}{A numeric specifying the width of each pixel. "auto" will attempt to choose a resolution in basepairs based on the size of the region.}
\item{res_scale}{A character value specifying the resolution scale. Default value is \code{res_scale = "BP"}. Options are:
\itemize{
\item{\code{"BP"}: }{Base pairs.}
\item{\code{"FRAG"}: }{Fragments.}
}}
\item{zrange}{A numeric vector of length 2 specifying the range of interaction scores, where extreme values will be set to the max or min.}
\item{norm}{Character value specifying hic data normalization method. This value must be found in the .hic file. Default value is \code{norm = "KR"}.}
\item{matrix}{Character value indicating the type of matrix to output. Default value is \code{matrix = "observed"}. Options are:
\itemize{
\item{\code{"observed"}: }{Observed counts.}
\item{\code{"oe"}: }{Observed/expected counts.}
}}
\item{params}{An optional \link[BentoBox]{bb_assembly} object containing relevant function parameters.}
}
\value{
Returns a 3-column dataframe in sparse upper triangular format with the following columns: \code{chrom}, \code{altchrom}, \code{counts}.
}
\description{
Read a .hic file and return Hi-C data as a dataframe
}
\seealso{
\link[strawr]{straw}
}