Description Usage Arguments Details Value See Also Examples
This function computes EHH-based Statistics which will be used in subsequent functions, resulting in an R binary file containing all populations/chromosomes data analyzed.
1 | make.input.files(populations = "all", chrs = 1:22, haps.subset = F, output)
|
populations |
Character vector with target population's file names (assumed to be in 'populations' directory). If populations = 'all' (default), then all files (populations) will be included on analysis. |
chrs |
Numeric vector with chromosome ID(s). |
output |
Character vector containing desired population names as output. |
The files acquired after running make.input.files() function will be used at this function. Therefore, they are absolutely necessary (.inp and .thap files in 'rehh_in' directory).
By default, all populations files in 'populations' directory are included in this function, although users can also specify the populations in a vector with the exact file names (without providing the path, which is supposed to be in 'populations' directory).
Be careful when using 'output' parameter while using 'populations' parameter's default argument, once you would not have control of the file names' order. If using the 'output' parameter, you'd rather specify the populations' names as well. Default values to 'output' parameter are automatically set according to acquired/loaded population's file names so that there are no issues to worry about.
R binary file named 'scanhh.RData'.
1 2 3 4 5 6 7 8 | ## Not run: make.input.files()
## Not run:
make.input.files(populations = c('Afr.txt', 'EUR.txt'),
chrs = 1:10, haps.subset = T,
output = c('Africans','Europeans'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.