InputData: Input data

Description Usage Arguments Value Author(s) References Examples

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


Search within the CINOEDV package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.