Learn R Programming

MethTargetedNGS (version 1.4.0)

odd_ratio: Calculate log odd ratio of the given samples (healthy/tumor)

Description

Log Odd ratio defines the hypomethylation and hypermethylation of a sample in comparison to the other sample.

Usage

odd_ratio(SampA, SampB, plot = TRUE, main = "Log Odd Ratio")

Arguments

SampA
Matrix from methAlign. Also matrix where columns represents Cytosine of CpG sites and rows represents sequences.
SampB
Matrix from methAlign. Also matrix where columns represents Cytosine of CpG sites and rows represents sequences.
plot
Boolean. TRUE if need a plot after calculation. Default TRUE
main
Title of the plot

Value

Vector containing log odd ratios.

See Also

methAlign

Examples

Run this code
healthy = system.file("extdata", "Healthy.fasta", package = "MethTargetedNGS")
tumor = system.file("extdata", "Tumor.fasta", package = "MethTargetedNGS")
reference =  system.file("extdata", "Reference.fasta", package = "MethTargetedNGS")

healthy = methAlign(healthy,reference)
tumor = methAlign(tumor,reference)
odd_ratio(healthy,tumor)

Run the code above in your browser using DataLab