For these functions to work, MERLIN must be installed and the path to
merlin.exe included in the PATH variable. The merlin
function is first
and foremost a wrapper to the parametric linkage functionality of MERLIN.
By default the following MERLIN command is run (via a call to
system
) after creating appropriate files in the current working
directory:
_merlin.freq --model _merlin.model --tabulate --markerNames --quiet
The resulting multipoint LOD scores are extracted from the output and
returned in R as a linkres
object.
Additional command parameters can be passed on using the options
argument (this is simply pasted onto the MERLIN command, so dashes must be
included). For example, to obtain singlepoint LOD scores instead of
multipoint, set options='--singlepoint'
. (The singlepoint scores
should agree with the results of lod(x)
, except in cases where some
individuals have partial genotypes (see Examples).)
If model=FALSE
the --model merlin.model
part is removed from
the MERLIN command above. This is necessary for some calculations, e.g.
likelihoods (see Examples).
The merlinUnlikely
function is a wrapper for MERLIN's '--error'
command. The syntax is similar to that of mendelianCheck
.