Brick_make_ranges: Creates a ranges object from provided vectors.

View source: R/Brick_functions.R

Brick_make_rangesR Documentation

Creates a ranges object from provided vectors.

Description

Brick_make_ranges creates a GRanges object from the provided arguments

Usage

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


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/HiCLegos documentation built on Nov. 5, 2022, 5:49 p.m.