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

Description Usage Arguments Author(s) See Also Examples

Description

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

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

Usage

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

Author(s)

Ke-Hao Wu

See Also

MOJOV-class

Examples

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

MOJOV documentation built on May 2, 2019, 11:42 a.m.