sample.match: snp.match

View source: R/snp-match.R

sample.matchR Documentation

snp.match

Description

Match samples in two aSnpMatrix objects

Usage

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

Arguments

x

aSnpMatrix object

y

aSnpMatrix object

col.x

optional, column identifier for x@samples for matching

col.y

optional, column identifier for y@samples for matching

Details

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

Value

a named list of length two with elements

x

indices of matching samples in x

y

indices of matching samples 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.