View source: R/writeFlapjack.R
writeFlapjack | R Documentation |
Export the results of an IBD calculation to Flapjack format so it can be visualized there.
writeFlapjack(
IBDprob,
outFileMap = "ibd_map.txt",
outFileGeno = "ibd_geno.txt"
)
IBDprob |
An object of class |
outFileMap |
A character string, the full path to the output map file. |
outFileGeno |
A character string, the full path to the output genotype file. |
No output. Output files are written to a folder.
## 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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.