Learn R Programming

BisRNA (version 0.2.2)

class.BisXP: Cast bisulfite experiment data into a BisXP object

Description

class.BisXP creates a BisXP object from a table containing RNA name, C position, bisulfite non-conversion ratio and adjusted p-value.

Usage

class.BisXP(BisData)

Arguments

BisData

A data frame with 4 columns:

  • RNA name

  • C position (integer, in [1,+Inf])

  • bisulfite non-conversion ratio (numeric, in [0,1])

  • pvalue.adj (numeric, in [0,1])

Value

If the input table is correct, then the output will be a BisXP object corresponding to a consolidated data frame with rows labelled after a RNA_C.position pattern.

Details

This function takes bisulfite experiment data as an input table, performs checks, and casts the table into a BisXP object, with rows labelled after a RNA_C.position pattern.

Examples

Run this code
# NOT RUN {
 RNA     <- c("NM_00001","NM_00001","NM_00002")
 Cpos     <- as.integer(c(1,5,1))
 ncratio  <- c(0.1,0.5,0.3)
 pv.adj   <- c(0.001,0.1,0.3)
 BSdata   <- data.frame(RNA, Cpos, ncratio, pv.adj, stringsAsFactors = FALSE)
 bsXP     <- class.BisXP(BSdata)
# }

Run the code above in your browser using DataLab