PolyDiv: PolyDiv

View source: R/poly_div.R

PolyDivR Documentation

PolyDiv

Description

This functions computes Fst at the gene level, between two sets of metagenomic samples. It compares the average allele frequencies across samples for each polymorphic site, and then outputs the median Fst value. The inputs are:

  • data: the polymorphism data created by MetaPoly's "GetGenesData" function

  • samp_vec: a vector that assigns each sample (vector values) to each population (vector names). The method handles two populations encoded as 0 and 1's

Usage

PolyDiv(data, samp_vec)

Mass23/MetaPoly documentation built on June 14, 2022, 6:31 p.m.