uniqueGroups: Get the unique set of groups in a GRangesList

Description Usage Arguments Value See Also Examples

View source: R/ORFs_helpers.R

Description

Sometimes GRangesList groups might be identical, for example ORFs from different isoforms can have identical ranges. Use this function to reduce these groups to unique elements in GRangesList grl, without names and metacolumns.

Usage

1

Arguments

grl

a GRangesList

Value

a GRangesList of unique orfs

See Also

Other ORFHelpers: defineTrailer(), longestORFs(), mapToGRanges(), orfID(), startCodons(), startSites(), stopCodons(), stopSites(), txNames(), uniqueOrder()

Examples

1
2
3
4
5
gr1 <- GRanges("1", IRanges(1,10), "+")
gr2 <- GRanges("1", IRanges(20, 30), "+")
# make a grl with duplicated ORFs (gr1 twice)
grl <- GRangesList(tx1_1 = gr1, tx2_1 = gr2, tx3_1 = gr1)
uniqueGroups(grl)

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