parental_quantities: Calculate frequency of each markertype.

View source: R/exported_functions.R

parental_quantitiesR Documentation

Calculate frequency of each markertype.

Description

Plots and returns frequency information for each markertype.

Usage

parental_quantities(
  dosage_matrix,
  parent1 = "P1",
  parent2 = "P2",
  log = NULL,
  ...
)

Arguments

dosage_matrix

An integer matrix with markers in rows and individuals in columns.

parent1

Character string specifying the first (usually maternal) parentname.

parent2

Character string specifying the second (usually paternal) parentname.

log

Character string specifying the log filename to which standard output should be written. If NULL log is send to stdout.

...

Arguments passed to barplot

Value

A named vector containing the frequency of each markertype in the dataset.

Examples

data("ALL_dosages","screened_data")
parental_quantities(dosage_matrix=ALL_dosages)
parental_quantities(dosage_matrix=screened_data)

polymapR documentation built on Nov. 5, 2023, 1:09 a.m.