assignPairID: Assign an ID to each pair of alleles or patterns.

View source: R/func__assignPairID.R

assignPairIDR Documentation

Assign an ID to each pair of alleles or patterns.

Description

This is a generic function that assigns an ID to each pair of object names. For example, a single ID is assigned to two rows in a data frame for associations between patterns (pat_1, pat_2) and (pat_2, pat_1).

Usage

assignPairID(lmms, from = 1, paired.rows = TRUE)

Arguments

lmms

A data frame whose first two columns (named y and x respectively) are used to assign pair IDs.

from

The initial pair ID.

paired.rows:

whether there are only two rows per pair of alleles, each in an inverse direction. Set paired.rows = FALSE to process allele pairs in the data frame lmms.ds[["dif"/"idd"]].

Author(s)

Yu Wan (wanyuac@126.com)

Examples

a0 <- assoc[["lmms.pat"]][["dif"]][["h1"]]
a0 <- assignPairID(lmms = a0, from = 1, paired.rows = TRUE)


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