OrderSitesByLocation: Order RNA editing sites by their genomic locations.

Description Usage Arguments Value Examples

View source: R/util_OrderSitesByLocation.R

Description

Split RNA editing sites locations into chromosomes and positions, and then order the sites by their genomic locations.

Usage

1
OrderSitesByLocation(sites_char, output = c("dataframe", "vector"))

Arguments

sites_char

A character vector of RNA editing sites. site IDs should be in the form of "chrAA:XXXXXXXX".

output

Type of output data. Defaults to "dataframe".

Value

Depends on the output type. When output is set as "vector", a character vector of ordered input RNA editing sites will be returned. When output is set as "dataframe", a data frame of ordered RNA editing sites with following columns will be returned:

Examples

1
2
3
4
5
6
7
8
9
  exm_sites <- c(
    "chr22:41327462", "chr22:24969087",
    "chr22:29538891", "chr22:45736763"
  )
                  
  OrderSitesByLocation(
    sites_char = exm_sites,
    output = "dataframe"
  )

rnaEditr documentation built on Nov. 8, 2020, 8:26 p.m.