tests/test_tidyIO.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"))

# compare results
comparecrosses(x, hyper)

Try the qtl package in your browser

Any scripts or data that you put into this service are public.

qtl documentation built on Nov. 28, 2023, 1:09 a.m.