Learn R Programming

MoBPS (version 1.13.1)

mutation.intro: Mutation intro

Description

Function to change the base-pair in a specific loci

Usage

mutation.intro(
  population,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  qtl.posi,
  target.variant = NULL,
  haplo.set = 1
)

Value

Population-List with mutated marker for the selected individual

Arguments

population

Population list

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

qtl.posi

Marker number to mutate

target.variant

target variant to obtain (( if haplotype already is correct do not introduce a mutation ))

haplo.set

Select chromosome set (default: 1 , alt: 2, 1:2 (to edit both))

Examples

Run this code
data(ex_pop)
ex_pop <- mutation.intro(ex_pop, database = cbind(1,1,1), qtl.posi=100)

Run the code above in your browser using DataLab