Write a reference data frame to gsi_sim format baseline and repunits file
Write a reference data frame to gsi_sim format baseline and repunits file
Note, this is only intended to work with integer-valued alleles, at the moment. It was just written for testing and verifying that things are working correctly.
gen_start_col: column in which the genetic data start
baseout: path to write the baseline file to. Required.
repout: path to write the repunits file to. Required.
Examples
# create a temp directory to put example outputsdd <- tempdir()basefile <- file.path(dd,"baseline.txt")repunitsfile <- file.path(dd,"repunits.txt")# print thosebasefile
repunitsfile
# note that in practice you will probably want to specify# your own filepaths...# run the functionwrite_gsi_sim_reference(alewife,17, basefile, repunitsfile)