OrderSitesByLocation {rnaEditr}R Documentation

Order RNA editing sites by their genomic locations.

Description

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

Usage

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

  exm_sites <- c(
    "chr22:41327462", "chr22:24969087",
    "chr22:29538891", "chr22:45736763"
  )
                  
  OrderSitesByLocation(
    sites_char = exm_sites,
    output = "dataframe"
  )


[Package rnaEditr version 1.2.0 Index]