pic_calc: Polymorphic Information Content calculation for genind...

View source: R/pic.R

pic_calcR Documentation

Polymorphic Information Content calculation for genind objects

Description

This function is a simple wrapper of the PIC function from polysat package. It allows to quickly calculate Polymorphic Information Content or PIC from a genind object. Check PIC help page under polysat package for references.

Usage

pic_calc(obj, ploidy = 2, bypop = FALSE)

Arguments

obj

a codominant genind object

ploidy

Integer. The ploidy of the data.

bypop

Boolean, indicating whether to calculate PIC for each population and overall or only overall.

Value

a data.frame with PIC values (per locus & mean) for each population and overall

Author(s)

Nikolaos Tourvas


nikostourvas/PopGenUtils documentation built on April 23, 2022, 1:14 p.m.