scanInv {inveRsion} | R Documentation |
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.
scanInv(objectHaploCode, window, maxSteps = 30, geno = FALSE, saveRes = TRUE, saveBlocks=TRUE)
objectHaploCode |
Object of class |
window |
|
maxSteps |
|
geno |
|
saveRes |
|
saveBlocks |
|
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.
object of class scan
Alejandro Caceres acaceres@creal.cat
data(hapCode) window<-0.5 scanRes<-scanInv(hapCode,window=window,saveRes=FALSE,geno=FALSE,saveBlocks=FALSE) scanRes plot(scanRes)