InputData: Input data

Description Usage Arguments Value Author(s) References Examples

View source: R/InputData.R

Description

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

Usage

1
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.

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

1
2
3
4
5
6
# 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

CINOEDV documentation built on May 29, 2017, 9:07 p.m.