View source: R/eachfunctions.R
sorteach | R Documentation |
Internally sort each element of a GenomicRangesList
sorteach(x, ...)
x |
GRangesList object |
... |
Comma separated list of unquoted variable names to sort by. Variables are names of metadata columns found in GRangesList object. Use desc() to sort a variable in descending order. Input can be 'exonorder' to sort each element in exon order |
Sorted GRangesList object
Fursham Hamid
# Load dataset
data(query_exons)
# sort elements in each GRangesList in descending coordinate order
query_exons_desc <- sorteach(query_exons, dplyr::desc(start))
# sort elements in each GRangesList in its order in transcript
query_exons_exonorder <- sorteach(query_exons_desc, exonorder)
# test similarity of query_exons and query_exons_exonorder
identical(query_exons, query_exons_exonorder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.