chrom_init: Intialize a chromosome object (diploid)

View source: R/chrom_init.R

chrom_initR Documentation

Intialize a chromosome object (diploid)

Description

Intialize a chromosome object (diploid)

Usage

chrom_init(
  c = 10,
  map,
  h1_breakpoints = NULL,
  h1_donors = c("A"),
  h2_breakpoints = NULL,
  h2_donors = c("A")
)

Arguments

c

Chromosome to initialize (int); default is 10

map

Dataframe with physical and genetic positions for chromosome trying to be simulated. Of format chr,physical_position,gentic_position

h1_breakpoints

physical breakpoint locations where donor identity changes on copy one of chromosome; default is NULL (list)

h1_donors

donor identities for copy one of chromosome; default is A (list)

h2_breakpoints

physical breakpoint locations where donor identity changes on copy two of chromosome; default is NULL (list)

h2_donors

donor identities for copy two of chromosome; default is A (list)

Value

A list of lists with attributes chr, h1, and h2, with h1 and h2 each containing vectors of breakpoint locations and donor names


sarahodell/magicsim documentation built on Sept. 25, 2023, 8:12 a.m.