Write a pedigree to file
Write a pedigree to file
writePed( x, prefix, what = "ped", famid = is.pedList(x), header = TRUE, merlin = FALSE, verbose = TRUE )
x |
A |
prefix |
A character string giving the prefix of the files. For
instance, if |
what |
A subset of the character vector |
famid |
A logical indicating if family ID should be included as the
first column in the ped file. The family ID is taken from |
header |
A logical indicating if column names should be included in the
ped file. This option is ignored if |
merlin |
A logical. If TRUE, "ped", "map", "dat" and "freq" files are written in a format readable by the MERLIN software. In particular MERLIN requires non-numerical allele labels in the frequency file. |
verbose |
A logical. |
A character vector with the file names.
x = nuclearPed(1) x = setMarkers(x, marker(x, "3" = "a/b", name = "m1")) # Write to file fn = writePed(x, prefix = tempfile("test")) # Read y = readPed(fn) stopifnot(identical(x, y))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.