This function scans a whole chromosome in search for inversion events. The scan is done by fitting an inversion model to all segments in the chromosome with fixed length size.
Object of class HaploCode produced by the codeHaplo function.
window
numeric, size of the window in mega-basis.
maxSteps
numeric, maximum number of iteration in the EM algorithm for the inversion model
geno
logical. Whether the original data is genotypes or phases haplotypes.
saveRes
logical. Whether results should be saves into file invRes.RData
saveBlocks
logical. Whether save blocks for each candidate break point.
Value
object of class scan
Details
The function processes the haplotypes coded in objectHaploCode. If subsequent re-runs are requires for different window sizes, this object can be omitted. The function will thus search the local directory for previous results to speed up further scans.