getAssocGenePair: Find out rows corresponding to alleles of a given pair of...

View source: R/func__getAssocGenePair.R

getAssocGenePairR Documentation

Find out rows corresponding to alleles of a given pair of genes

Description

This is a little tool function for getting all rows relating to all alleles of two given genes.

Usage

getAssocGenePair(x, map, g1, g2, col1 = "y", col2 = "x")

Arguments

x

A data frame to be subset for the result.

map

A data frame to be searched against, which maps allele names to gene information. There must be two columns named "allele" and "gene".

g1

A string for the first gene name.

g2

A string for the second gene name.

col1

Name or index for the first column of alleles in x. Default: y.

col2

Name or index for the second column of alleles in x. Default: x.

Value

A data frame from x.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

getAssocGenePair(x = assoc$mapping, g1 = "StrA_AGly", g2 = "DfrA8_Tmt", col1 = "y", col2 = "x")


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