Usage
haplinSlide(filename, data, pedIndex, markers = "ALL", winlength = 1,
strata = NULL, table.output = TRUE, cpus = 1, slaveOutfile = "",
printout = FALSE, verbose = FALSE, ...)
Arguments
filename
A character string giving the name and path of the ASCII data file to be read. The file should be in the Haplin data format.
data
An R-object which is the result of using load.gwaa.data
to load data into R. See the web page for a description of how to convert a ped file into a file that can be loaded. The conversion uses prepPed
and convert.snp.ped
.
pedIndex
A file of family indexes constructed by using prepPed
on the original ped file. This file is used by Haplin to extract and store family information.
markers
Default is "ALL", which means haplinSlide uses all available markers in the data set in the analysis. Alternatively, the relevant markers can be specified by, for instance, markers = c(1, 3:10)
, which would use the 10 first markers except marker 2. haplinSlide
will then run haplin on a series of windows selected from the supplied markers
. The winlength
argument decides the length of the windows. See details.
winlength
Length of the sliding, overlapping windows to be run along the markers. See details.
strata
A single numeric value specifying which data column contains the stratification variable.
table.output
If TRUE
, the haptable
function will be applied to each result after estimation, greatly reducing the size of the output. If FALSE
, each element of the output list is a standard haplin
object. To preserve memory, default is set to TRUE.
cpus
haplinSlide
allows parallel processing of its analyses. The cpus
argument should preferably be set to the number of available cpu's. If set lower, it will save some capacity for other processes to run. Setting it too high should not cause any serious problems.
slaveOutfile
Character. To be used when cpus > 1
. If slaveOutfile = ""
(default), output from all running cores will be printed in the standard R session window. Alternatively, the output can be saved to a file by specifying the file path and name.
printout
Default is FALSE. If TRUE, provides a full summary of each haplin
result during the run of haplinSlide
.
verbose
Same as for haplin
, but defaults to FALSE to reduce output size.
...
Remaining arguments to be used by haplin
in each run.