R Under development (unstable) (2024-08-20 r87029 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(qtl) > data(hyper) > > # write to tidy format > write.cross(hyper, "tidy", "hyper_tidy") > > # read back in > x <- read.cross("tidy", "", genfile="hyper_tidy_gen.csv", + mapfile="hyper_tidy_map.csv", phefile="hyper_tidy_phe.csv", + genotypes=c("BB", "BA", "AA")) --Read the following data: 250 individuals 174 markers 2 phenotypes --Cross type: bc > > # compare results > comparecrosses(x, hyper) Crosses are identical. > > proc.time() user system elapsed 0.42 0.07 0.48