Learn R Programming

CINOEDV (version 2.0)

InputData: Input data

Description

Input SNP data from a file with (.mat) format.

Usage

InputData(FileName)

Arguments

FileName
character. The file name with its format (.mat) that saves SNP data. It has two variables, i.e., pts and class. For pts, Row -> Sample, Column -> SNP, 1 -> AA, 2 -> Aa, 3 -> aa. For class, Row -> 1, Column -> class label, 1 -> case, 2-> control.

Value

pts
matrix. Each row represents a sample. Each column represents a SNP. For the element, 1 -> AA, 2 -> Aa, 3 -> aa.
class
matrix. It only has one row. Each column represents a class label. For the element, 1 -> case, 2-> control.

References

None

Examples

Run this code

# The files (test.mat) should be downloaded from http://sourceforge.net/projects/cinoedv/files/.

FileName <- system.file("extdata","test.mat",package="CINOEDV")
Data <- InputData(FileName)
pts <- Data$pts
class <- Data$class

Run the code above in your browser using DataLab