snp.match: snp.match

View source: R/snp-match.R

snp.matchR Documentation

snp.match

Description

Match snps in two aSnpMatrix objects

Usage

snp.match(x, y, col.x = 0, col.y = 0)

Arguments

x

aSnpMatrix object

y

aSnpMatrix object

col.x

optional, column identifier for x@snps for matching

col.y

optional, column identifier for y@snps for matching

Details

Extract indices of overlapping SNPs in two aSnpMatrix objects. By default, match is on rownames(snps(x)), rownames(snps(y)).

Value

a named list of length two with elements

x

indices of matching SNPs in x

y

indices of matching SNPs in y

Author(s)

Chris Wallace

Examples

x <- example.data(1:10,1:10)
y <- example.data(6:15,6:15)
snp.match(x,y)
sample.match(x,y)

chr1swallace/annotSnpStats documentation built on April 18, 2023, 11:22 a.m.