exportPlink | R Documentation |
Only biallelic markers are used, exports as two column per call. This format can be used as the input for "Admixture".
exportPlink(
x,
filename,
pops = NULL,
loci = NULL,
FID = "Ind",
IID = "Ind",
pa = NULL,
ma = NULL,
sex = NULL,
pheno = NULL,
map = NULL
)
x |
an EFGLdata object |
filename |
the name of the file to write |
pops |
a vector of pops to include. If not specified, all pops are used. |
loci |
a vector of loci to use. If not specified, all loci are used. |
FID |
Metadata column name to use as the family ID |
IID |
Metadata column name to use as the within-family ID |
pa |
Metadata column name to use as the within-family ID of the father. If NULL, all are listed as unknown (0). |
ma |
Metadata column name to use as the within-family ID of the mother. If NULL, all are listed as unknown (0). |
sex |
Metadata column to use as the sex. This should be coded as "M" for male, "F" for female, and any other values are treated as Unknown. If NULL, all are listed as unknown (0). |
pheno |
Metadata column to use as the phenotype. This should be coded as "1" for control, "2" for case, and "-9" or "0" for Unknown. If NULL, all are listed as unknown (0). |
map |
filename to write a MAP file. If NULL, no MAP file is written. This just writes a dummy MAP file with the loci names in order and all given the same chromosome code and positions of "0". If you need a valid MAP file, you will need to edit this. |
nothing, just writes a file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.