Learn R Programming

landsepi (version 1.5.1)

getMatrixGenePatho: Get the "resistance gene/pathogen genotype" compatibility matrix.

Description

Build the matrix indicating if infection is possible at the beginning of the season for every combination of plant resistance gene (rows) and pathogen genotype (columns).

Usage

getMatrixGenePatho(params)

Value

an interaction matrix composed of 0 and 1 values.

Arguments

params

a LandsepiParams object.

Details

For hosts carrying each resistance gene, there is either possibility of infection by the pathogen genotype (value of 1), either complete protection (value of 0). Complete protection only occurs if the resistance gene targets the infection rate, has a complete efficiency, and is expressed from the beginning of the cropping season (i.e. this is not an APR).

See Also

getMatrixCultivarPatho, getMatrixCroptypePatho, getMatrixPolyPatho

Examples

Run this code
if (FALSE) {
simul_params <- createSimulParams()
gene1 <- loadGene(name = "MG 1", type = "majorGene")
gene2 <- loadGene(name = "MG 2", type = "majorGene")
genes <- data.frame(rbind(gene1, gene2), stringsAsFactors = FALSE)
simul_params <- setGenes(simul_params, genes)
getMatrixGenePatho(simul_params)
}

Run the code above in your browser using DataLab