Learn R Programming

coala (version 0.1.1)

calc_jsfs: Calculates the JSFS for two populations

Description

Calculates the JSFS for two populations

Usage

calc_jsfs(seg_sites, pop1, pop2)

Arguments

seg_sites
List of segregating sites
pop1
The rows of seg_sites that correspond to individuals of the first population.
pop2
same as pop1, but for the second population.

Value

  • The Joint Site Frequency Spectrum, as a matrix.