Converting from ped format to Haplin format

For the convenience of the user, Haplin can convert from the "standard" ped data format to the Haplin data format.

The supplied function pedToHaplin does the conversion. As an example, here's an input fil in the ped format:


A conversion is done with the command

pedToHaplin("test_pedToHaplin.ped", outdata = "test_pedToHaplin_result.txt", colnames.out = F, merge = T)

which results in the Haplin file


For more information, see the help file for pedToHaplin (in R, type ?pedToHaplin).

NOTE: pedToHaplin has not been extensively tested, so you should always check the output against the input!