Brick_make_ranges: Creates a ranges object from provided vectors.

Description Usage Arguments Value Examples

View source: R/Brick_functions.R

Description

Brick_make_ranges creates a GRanges object from the provided arguments

Usage

1
Brick_make_ranges(chrom, start, end, strand = NA, names = NA)

Arguments

chrom

Required. A 1 dimensional character vector of size N specifying the chromosomes in the ranges.

start

Required. A 1 dimensional numeric vector of size N specifying the start positions in the ranges.

end

Required. A 1 dimensional numeric vector of size N specifying the end positions in the ranges. Must be less than Start.

strand

Optional. A 1 dimensional character vector of size N specifying the strand of the ranges. If not provided, this will be set to the default *.

names

Optional. A 1 dimensional character vector of size N specifying the names of the ranges. If not provided, this will be set to the default chr:start:end.

Value

A GenomicRanges object with the previous sort order being preserved

Examples

1
2
3
4
Chrom <- c("chrS","chrS","chrS","chrS","chrS")
Start <- c(10000,20000,40000,50000,60000)
End <- c(10001,20001,40001,50001,60001)
Test_ranges <- Brick_make_ranges(chrom = Chrom, start = Start, end = End)

koustav-pal/HiCBlocks documentation built on Jan. 6, 2022, 2:36 a.m.