Description Usage Arguments Details Value See Also Examples
A function to create strumData object.
1 | createStrumData(inData, dType, ibdFileName=NULL, fileType="SAGE")
|
inData |
Object of class |
dType |
Character stating the type of input data, |
ibdFileName |
Character stating the name of ibd file to import. |
fileType |
Character stating the type of ibd file, the deafult value is "SAGE". |
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.
Returns an object of class strumData.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.