hf.alignment.stats: Calculate population genetics statistics from a PopGenome...

Description Usage Details Examples

View source: R/hf.alignment.stats.R

Description

Takes in a PopGenome GENOME object (from PopGenome::readData) and calculates basic population genetics statistics. Uses afufs if needed. Returns a data frame with most of the statistics. The original GENOME object is modified as normal by the PopGenome functions.

Usage

1
hf.alignment.stats(go, slide = F, window = 1000, step = 500)

Details

Runs these functions from PopGenome: diversity.stats neutrality.stats

Examples

1
2
3
4
5
6
## Not run: 
fasta_file <- "name_of_aligned.fasta"
pg.object <- hf.readData(fasta_file)
pg.dataframe <- hf.alignment.stats(pg.object)

## End(Not run)

swainechen/hfufs documentation built on June 22, 2020, 7:02 a.m.