Description Usage Arguments Value See Also Examples
Rule: if seqname, strand and stop site is equal, take longest one. Else keep. If IRangesList or IRanges, seqnames are groups, if GRanges or GRangesList seqnames are the seqlevels (e.g. chromosomes/transcripts)
1 | longestORFs(grl)
|
grl |
a |
a GRangesList
/IRangesList, GRanges/IRanges
(same as input)
Other ORFHelpers:
defineTrailer()
,
mapToGRanges()
,
orfID()
,
startCodons()
,
startSites()
,
stopCodons()
,
stopSites()
,
txNames()
,
uniqueGroups()
,
uniqueOrder()
1 2 3 4 | ORF1 = GRanges("1", IRanges(10,21), "+")
ORF2 = GRanges("1", IRanges(1,21), "+") # <- longest
grl <- GRangesList(ORF1 = ORF1, ORF2 = ORF2)
longestORFs(grl) # get only longest
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.