strandBool: Get logical list of strands

Description Usage Arguments Value Examples

View source: R/gr_or_grl_helpers.R

Description

Helper function to get a logical list of True/False, if GRangesList group have + strand = T, if - strand = F Also checks for * strands, so a good check for bugs

Usage

1

Arguments

grl

a GRangesList or GRanges object

Value

a logical vector

Examples

1
2
3
4
gr <- GRanges(Rle(c("chr2", "chr2", "chr1", "chr3"), c(1, 3, 2, 4)),
              IRanges(1:10, width = 10:1),
              Rle(strand(c("-", "+", "*", "+", "-")), c(1, 2, 2, 3, 2)))
strandBool(gr)

ORFik documentation built on March 27, 2021, 6 p.m.