Learn R Programming

R/simcross

Karl W Broman


R/simcross is an R package for simulating and plotting general experimental crosses.


Installation

You can install R/simcross from CRAN:

install.packages("simcross")

Alternatively, install it from R universe:

install.packages("simcross", repos=c("https://kbroman.r-universe.dev",
                                     "https://cloud.r-project.org"))

Or use remotes to install it from its GitHub source:

install.packages("remotes")
remotes::install_github("kbroman/simcross")

Vignette

A vignette describing the use of the package is available from within R (and also here). Load the package and then use the vignette function.

library(simcross)
vignette("simcross", package="simcross")

License

This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

A copy of the GNU General Public License, version 3, is available at https://www.r-project.org/Licenses/GPL-3

Copy Link

Version

Install

install.packages('simcross')

Monthly Downloads

208

Version

0.10

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

June 9th, 2026

Functions in simcross (0.10)

sim_ail_pedigree_fix_n

Simulate AIL pedigree with fixed n
sim_ail_pedigree

Simulate AIL pedigree
sim_do_pedigree_fix_n

Simulate a pedigree for Diversity Outbreds for a target sample size
mouseL_cox

Mouse chromosome lengths
sim_crossovers

Simulate crossover locations using the Stahl model
sim_from_pedigree_allchr

Simulate genotypes for pedigree for multiple chromosomes
sim_4way_pedigree

Simulate pedigree for 4-way intercross
plot_ind

Plot an individual
where_het

Find heterozygous regions
sim_meiosis

Simulate meiosis
sim_from_pedigree

Simulate genotypes for pedigree
sim_dof1_pedigree

Simulate pedigree for F1 between diversity outbreds and another inbred line
simcross-package

simcross: Simulate Experimental Crosses
sim_ril_pedigree

Generate a ril pedigree
CCcolors

Collaborative Cross colors
collapse_do_alleles

Collapse alleles for simulated DO genotypes
AILped

Example AIL pedigree
convert2geno_allchr

Convert continuous allele information into marker genotypes for multiple chromosomes
calc_Lstar

Calculate adjusted chromosome length for obligate chiasma
mouseL_mgi

Mouse chromosome lengths
get_geno

Get genotype at a single position
check_pedigree

Check a pedigree for errors
convert2geno

Convert continuous allele information into marker genotypes
plot_crosslines

Plot cross lines
create_parent

Create a parent object
cross

Cross two individuals
sim_do_pedigree

Simulate a pedigree for Diversity Outbred mice