Brick_make_ranges {HiCBricks} | R Documentation |
Brick_make_ranges
creates a GRanges object from the provided arguments
Brick_make_ranges(Chrom, Start, End, Strand = NULL, Names = NULL)
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. |
A GenomicRanges object with the previous sort order being preserved
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)