OrderSitesByLocation: Order RNA editing sites by their genomic locations.

View source: R/util_OrderSitesByLocation.R

OrderSitesByLocationR 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:

  • site : site ID.

  • chr : chromosome number.

  • pos : genomic location.

Examples

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


TransBioInfoLab/rnaEditr documentation built on Nov. 29, 2022, 3:31 p.m.