Learn R Programming

MoBPS (version 1.13.1)

get.genotyped.snp: Derive which markers are genotyped of selected individuals

Description

Function to derive which markers are genotyped for the selected individuals

Usage

get.genotyped.snp(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  export.alleles = FALSE,
  use.id = TRUE,
  array = NULL
)

Value

Binary Coded is/isnot genotyped level for in gen/database/cohorts selected individuals

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

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

cohorts

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

id

Individual IDs to search/collect in the database

export.alleles

If TRUE export underlying alleles instead of just 012

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names (default: TRUE)

array

Use only markers available on the array

Examples

Run this code
data(ex_pop)
genotyped.snps <- get.genotyped.snp(ex_pop, gen=2)

Run the code above in your browser using DataLab