writeFlapjack {statgenIBD}R Documentation

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"
)

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.

Value

No output. Output files are written to a folder.

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"))


[Package statgenIBD version 1.0.7 Index]