matchpos: Function to match a set of variants to a reference by...

Description Usage Arguments

View source: R/matchpos.R

Description

If REF/ALT alleles available, will also check them for reverse coding. Specify the exclude.ambiguous option for possible sense/antisense ambiguity.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
matchpos(
  tomatch,
  ref.df,
  auto.detect.tomatch = T,
  auto.detect.ref = T,
  chr = "",
  ref.chr = "",
  pos = "",
  ref.pos = "",
  snp = "",
  ref.snp = "",
  ref = "",
  ref.ref = "",
  alt = "",
  ref.alt = "",
  exclude.ambiguous = F,
  silent = F,
  rm.duplicates = F
)

Arguments

tomatch

A data.frame or data.table

ref.df

A data.frame or data.table

rm.dumplicates

Remove SNPs with more than one match


yingxi-kaylee/ssCTPR documentation built on Nov. 14, 2021, 5:24 a.m.