Description Usage Arguments Note Examples
View source: R/solarMultipoint.R
The linkage analysis is conducted in the following sequence:
parse input files of multipoint IBD matrices,
export data to a directory by df2solar
function,
run the polygenic analysis in a directory,
run the linkage analysis on the top of the polygenic analysis,
parse output files and
store results in an object of solarMultipoint
class (see solarMultipointClass
).
1 2 3 |
formula |
an object of class |
data |
A data frame containing the variables in the model,
including ID fields needed to construct random effects: genetic and house-hold (both optional).
Other classes such as list, environment or object coercible by |
dir |
an optional character string, the name of directory, where SOLAR performs the analysis. In this case, the analysis within related input/output files is conducted in the given folder instead of a temporary one (the default work flow). |
kinship |
A matrix of the kinship coefficients (custom kinship matrix). The IDs are required to be in row and column names. |
traits |
a vector of characters to specify trait(s) in the model. It is alternative to the formula interface. |
covlist |
a vector of characters to specify fixed effects (covariates) in the model.
It is alternative to the formula interface.
The default value is |
mibddir |
A character, the name of directory with files representing the IBD matrices in SOLAR format.
These matrices can be evaluated by SOLAR or by other program.
See SOLAR help for |
chr |
A character or one that can be coerced to that class,
the value to be passed to SOLAR command |
interval |
A character or one that can be coerced to that class,
the value to be passed to SOLAR command |
multipoint.options |
A character of options to be passed to |
multipoint.settings |
A vector of characters, that contains SOLAR commands to be executed just before calling |
cores |
A positive integer, the number of cores for parallel computing.
The default value is taken from |
... |
Arguments to be passed to |
verbose |
An non-negative integer of the verbose level.
The default value is |
The user is responsible for computation of the MIBD matrices
required by solarMultipoint
function via mibddir
argument.
Estimation of the IBD matrices is out of the scope of solarius
package.
More information is available in http://solar.txbiomedgenetics.org/doc/05.chapter.html.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ### load phenotype data
data(dat30)
### load marker data
mibddir <- system.file('extdata', 'solarOutput',
'solarMibdsCsv', package = 'solarius')
list.files(mibddir)
## Not run:
### basic (univariate) linkage model
mod <- solarMultipoint(trait1 ~ 1, dat30,
mibddir = mibddir, chr = 5)
mod$lodf # table of results (LOD scores) (the highest 3.56)
### basic (bivariate) linkage model
mod <- solarMultipoint(trait1 + trait2 ~ 1, dat30,
mibddir = mibddir, chr = 5)
mod$lodf # table of results (LOD scores) (the highest 2.74)
### two-pass linkage model
mod <- solarMultipoint(trait1 ~ 1, dat30,
mibddir = mibddir, chr = 5,
multipoint.options = "3")
mod$lodf # table of results (LOD scores, 1 pass) (the highest 2.74)
mod$lodf2 # table of results (LOD scores, 2 pass) (all nearly zero LOD scores)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.