View source: R/Brick_functions.R
Brick_make_ranges | R Documentation |
Brick_make_ranges
creates a GRanges object from the provided arguments
Brick_make_ranges(chrom, start, end, strand = NA, names = NA)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.