createStrumData: Create strumData Object

Description Usage Arguments Details Value See Also Examples

Description

A function to create strumData object.

Usage

1
createStrumData(inData, dType, ibdFileName=NULL, fileType="SAGE")

Arguments

inData

Object of class data.frame containing input data.

dType

Character stating the type of input data, "Pedigree" or "RawData"

ibdFileName

Character stating the name of ibd file to import.

fileType

Character stating the type of ibd file, the deafult value is "SAGE".

Details

This function is used to create a strumData class object for strum analysis. The value of inData has to be a data.frame. The allowed values for dType is either "Pedigree" or "RawData". Note that, if dType="Pedigree", the data must be a data.frame with 4 required fields - family, id, father, mother.

The ibd information for the family data can be imported by specifying the name of ibd file into ibdFileName. Currently, the ibd file generated by the program GENIBD in S.A.G.E. package is supported.

Value

Returns an object of class strumData.

See Also

strumData, simulateStrumData

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Create a strumData object with different type of input data.
# - dF is a data.frame containing input data.
#-------------------------------------------------------------
rawStrumData = createStrumData(dF, "RawData") 
pedStrumData = createStrumData(dF, "Pedigree")
pedStrumDataIBD = createStrumData(dF, "Pedigree", ibdFileName="ch20.ibd")

## End(Not run)

strum documentation built on May 2, 2019, 7:03 a.m.