Last data update: 2014.03.03

R: Co-Information Computation
CoInformationR Documentation

Co-Information Computation

Description

This function compute co-information value of a given SNP combination.

Usage

CoInformation(pts, class, factor)

Arguments

pts

matrix. SNP data. Each row represents a sample. Each column represents a SNP. For the element, 1 -> AA, 2 -> Aa, 3 -> aa.

class

matrix. Class labels of samples. It only has one row. Each column represents a class label. For the element, 1 -> case, 2-> control.

factor

numeric. The considered SNP or SNP-combination. For example, factor <- 5, or factor <- c(2,5)

Value

Co_Information_Value: matrix. co-information value of a give SNP combination.

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

data(pts)
data(class)
factor <- c(2,5)
V <- CoInformation(pts, class, factor)
Co_Information_Value <- V$Co_Information_Value

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(CINOEDV)
Loading required package: R.matlab
R.matlab v3.5.1 (2016-03-27) successfully loaded. See ?R.matlab for help.

Attaching package: 'R.matlab'

The following objects are masked from 'package:base':

    getOption, isOpen

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: ggplot2
Loading required package: reshape2
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CINOEDV/CoInformation.Rd_%03d_medium.png", width=480, height=480)
> ### Name: CoInformation
> ### Title: Co-Information Computation
> ### Aliases: CoInformation
> 
> ### ** Examples
> 
> data(pts)
> data(class)
> factor <- c(2,5)
> V <- CoInformation(pts, class, factor)
> Co_Information_Value <- V$Co_Information_Value
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>