Convert ranges describe with string (i.e seqname:start-end:strand) in GRanges object.
Examples
StrToGRanges("chr1:1-100:+")
#> GRanges object with 1 range and 0 metadata columns:
#> seqnames ranges strand
#> <Rle> <IRanges> <Rle>
#> [1] chr1 1-100 +
#> -------
#> seqinfo: 1 sequence from an unspecified genome; no seqlengths
StrToGRanges(c("chr1:1-100:+", "chr2:400-500:-", "chr1:10-50:*"))
#> GRanges object with 3 ranges and 0 metadata columns:
#> seqnames ranges strand
#> <Rle> <IRanges> <Rle>
#> [1] chr1 1-100 +
#> [2] chr2 400-500 -
#> [3] chr1 10-50 *
#> -------
#> seqinfo: 2 sequences from an unspecified genome; no seqlengths