class.BisXP {BisRNA}R Documentation

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])

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.

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.

Examples

 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)

[Package BisRNA version 0.2.2 Index]