create_scheme: create_scheme

View source: R/create_scheme.R

create_schemeR Documentation

create_scheme

Description

The function creates scheme from the provided parental information:
1. single parent1 X single parent2
2. single parent1 X list of parents2
3. list of parents1 X single parent2
All combinations of list of parents1 X list of parents2 is not allowed

Usage

create_scheme(P1,P2,N,id)

Arguments

P1

Required: parent/s 1, a name or a list of names of the parents 1

P2

Optional: parent/s 2, a name or a list of names of the parents 2

F

Required: number of repeated crossing generations, all crosses between founders will considered F1, the selfing will be continued for F1 up to F number of generations

N

Required: number of individuals in each repeated generation

S

Optional: number of lines in the segregating families descending form the last generation, F
If 0, no segregant families will be produced

id

Required: ID of the current breeding procedure

Value

Output is a structured object of: 1. scheme: contains the pedigree information of all haplotypes in a data frame of four columns:
1.haplotype IDs
2.generation
3.parent 1
4.parent 2

Examples

P1 = c("Gregory","TifGurd","Tifrunner")
scheme = create_scheme(P1,"GTC20",200,'pop1')

USDA-ARS-GBRU/crossword documentation built on May 23, 2024, 11:45 p.m.