hap.read: Read hap file(s) or data frame.

Description Usage Arguments Details Value Author(s) Examples

Description

Read a file or data frame to create a gbs object

Usage

1
hap.read(hap.obj, delim = "\t", data.col)

Arguments

delim

The delimter used in the file(s).

data.col

The column number for the first line or individual.

hap

A hap file or folder containing hap file(s).

Details

This function creates a gbs object from hap file(s) or a data frame. The gbs object contains a data frame representing the header columns, a data frame representing the genotypic calls, an empty geno data frame, and an empty stats data frame. Both the geno and stats data frames are created with the gbs.summary function. If a folder is passed to hap.read, hap.join is called to merge all files within the folder and remove duplicate tags.

Value

A gbs object.

Author(s)

Trevor Rife, trife@ksu.edu

Narinder Singh, nss470@ksu.edu

Examples

1
2
data(wheat)
hap = hap.read(raw.hap)

trife/gbs documentation built on May 31, 2019, 7:53 p.m.