get_values: get_values

View source: R/get_values.R

get_valuesR Documentation

get_values

Description

The function calculates the phenotypic values based on th supplied input genotype object and QTN effects.

Usage

get_values(geno,qtn_effect,dominant)

Arguments

geno

Required: genotype object

qtn_effect

Required: qtn_effect object

dominant

Optional: a logical object for dominance, default is FALSE

Value

the phenotypic values

Examples

gff = "crossword_processing/peanut.gff"
chr_stat = "crossword_processing/chr_siz.txt"
chr_length = "crossword_processing/chr_len.txt"
gen2phy = physical2genomic(gff,chr_stat,chr_length,200000)
homo = TRUE
input_pheno = "crossword_processing/pheno.txt"
parental_genotypes = get_parental_genotypes(input,gen2phy,homo)
biased_selection = TRUE
min_qtn_freq = 0
dominant=FALSE
effect_distribution = "equall"
pop3 = create_families(pop=pop2,S=15,id="pop3",chr_length=chr_length)
ids = pop3[[1]][pop3[[1]]$gen==pop3[[1]][nrow(pop3[[1]]),2],1]
geno = select_haplotype(pop3,ids)
qtn_effect = get_values(qtn = 5,gen2phy=gen2phy,biased_selection=biased_selection,parental_genotypes=parental_genotypes,min_qtn_freq=min_qtn_freq,dominant=min_qtn_freq,effect_distribution=effect_distribution)
values = get_values(geno,qtn_effect,dominant)

USDA-ARS-GBRU/crossword documentation built on Oct. 11, 2024, 12:51 a.m.