Export the results of an IBD calculation to Flapjack format so it can be visualized there.
Arguments
- IBDprob
An object of class
IBDprob
.- outFileMap
A character string, the full path to the output map file.
- outFileGeno
A character string, the full path to the output genotype file.
Examples
## Compute IBD probabilities for Steptoe Morex.
SxMIBD <- calcIBD(popType = "DH",
markerFile = system.file("extdata/SxM", "SxM_geno.txt",
package = "statgenIBD"),
mapFile = system.file("extdata/SxM", "SxM_map.txt",
package = "statgenIBD"))
## Write output in Flapjack format to temporary files.
writeFlapjack(SxMIBD,
outFileMap = tempfile(fileext = ".txt"),
outFileGeno = tempfile(fileext = ".txt"))