Learn R Programming

MOJOV (version 1.0.1)

MOJOV.read: Reading genotype and phenotype and generating a "MOJOV" class.

Description

Reading genotype and phenotype and generating a "MOJOV" class.

And it can read another phenotype for a existing "MOJOV" class.

Usage

MOJOV.read(x = NULL, genofile = NULL, phenofile = NULL, indelfile = NULL, header = T, column = 1, ...)

Arguments

x
If x is null, it will need both genotype and phenotype file, or x should be a "MOJOV" class and it only need phenotype file, see detials.
genofile
Specify genotype file name.
phenofile
Specify phenotype file name.
indelfile
Specify insert and delete variants file name, it is optional.
header
Specify whether the file contains a head line.
column
Which column phenotype will be read. This column is not include the previous 5 columns. The default value is 1.
...
You can specify other arguments here.

See Also

MOJOV-class

Examples

Run this code
  #Reading both genotype and phenotype files.
  file1<-system.file("data","geno.csv.gz",package="MOJOV")
  file2<-system.file("data","phen.csv.gz",package="MOJOV")
  x<-MOJOV.read(genofile=file1,phenofile=file2)
  
  #Reading phenotype and switch different phenotype column to analysis.
  x  #x is a existing "MOJOV" class. The phenotype is R_13_AREA.
  x<-MOJOV.read(x=x,phenofile=file2,column=2) #The phenotype is _13_BMD.

Run the code above in your browser using DataLab