countAllelesPerGeneByYear: Count each gene per year using their alleles

View source: R/func__geoTempAnalyser__countAllelesPerGeneByYear.R

countAllelesPerGeneByYearR Documentation

Count each gene per year using their alleles

Description

Neither function cares any alleles.

Usage

countAllelesPerGeneByYear(sam, mapping, gm, nul = NA)

Arguments

sam

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

mapping

A data frame in the output of lmm or findPhysLink.

gm

Gene content matrix. Its column names must match the gene names in the mapping data frame.

nul

A value for zero counts. It can be zero definitely, but setting it to NA makes it easier to draw a heat map.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

ac <- countAllelesPerGeneByYear(sam = sam, mapping = assoc$mapping, gm = assoc$genes$all, nul = -30)


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