getAllelesEarliestAppearance: Get earliest appearance of each allele in a vector

View source: R/func__geoTempAnalyser__getAllelesEarliestAppearance.R

getAllelesEarliestAppearanceR Documentation

Get earliest appearance of each allele in a vector

Description

For a group of alleles, this function returns the earliest occurrence time and country of each allele.

Usage

getAllelesEarliestAppearance(alleles, pam, sam)

Arguments

alleles

A vector of allele names.

pam

A presence-absence matrix of these alleles. It may come from the element pam in the output list of the function ringPlotPAM.

sam

A data frame of sample information. Required columns: Strain, Country, Year_low and Year_up.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

emg_1 <- getAllelesEarliestAppearance(alleles = targets, pam = rp_1$pam, sam = sam)


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.