indv_init: Intialize an Indv object

View source: R/indv_init.R

indv_initR Documentation

Intialize an Indv object

Description

Intialize an Indv object

Usage

indv_init(
  chr,
  map,
  h1_donors = c("A"),
  h1_breakpoints = NULL,
  h2_donors = c("A"),
  h2_breakpoints = NULL
)

Arguments

chr

Number of 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

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.