PCA_progeny: Perform a PCA on progeny

Description Usage Arguments Details Examples

View source: R/exported_functions.R

Description

Principal component analysis in order to identify individuals that deviate from the population.

Usage

1
PCA_progeny(dosage_matrix, highlight = NULL, colors = NULL, log = NULL)

Arguments

dosage_matrix

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

highlight

A list of character vectors specifying individual names that should be highlighted

colors

Highlight colors. Vector of the same length as highlight.

log

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

Details

Missing values are imputed by taking the mean of marker dosages per marker.

Examples

1
2
data("ALL_dosages")
PCA_progeny(dosage_matrix=ALL_dosages, highlight=list(c("P1", "P2")), colors="red")

mdavy86/polymapR documentation built on May 25, 2019, 9:35 p.m.