Learn R Programming

statgenIBD (version 1.0.9)

writeFlapjack: Write to Flapjack format

Description

Export the results of an IBD calculation to Flapjack format so it can be visualized there.

Usage

writeFlapjack(
  IBDprob,
  outFileMap = "ibd_map.txt",
  outFileGeno = "ibd_geno.txt"
)

Value

No output. Output files are written to a folder.

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

Run this code
## 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"))

Run the code above in your browser using DataLab