summary_cohort: Summarise cohorts.

View source: R/summary_cohort.R

summary_cohortR Documentation

Summarise cohorts.

Description

Summarise cohorts by number of founders, proportion of individuals genotyped and/or allele frequency information at a given locus.

Usage

summary_cohort(
  id,
  mother = NULL,
  father = NULL,
  cohort = NULL,
  genotype = NULL,
  genotype_delim = ""
)

Arguments

id

vector. Individual IDs

mother

vector. Maternal IDs corresponding to id.

father

vector. Paternal IDs corresponding to id.

cohort

vector (optional). Cohort number (e.g. birth year) corresponding to the id.

genotype

vector. Genotypes IDs corresponding to id.

genotype_delim

char. A character denoting the genotype delimited. Default = ”.

Examples


data(unicorn)
unicorn_summary <- summary_cohort(
  id = unicorn$id,
  mother = unicorn$mother,
  father = unicorn$father,
  cohort = unicorn$cohort,
  genotype = unicorn$Horns
)
plot_genedrop_cohort(unicorn_summary)


susjoh/genedroppeR documentation built on Sept. 9, 2024, 3:19 a.m.