quantifySNPs: Simple quantifySNPs function.

View source: R/quantifySNPs.R

quantifySNPsR Documentation

Simple quantifySNPs function.

Description

quantifySNPs converts trinary snps to frequency data

Usage

quantifySNPs(
  snps,
  freqthresh = 0.1,
  shiftit = FALSE,
  replaceWithF = TRUE,
  traitvecin = NA,
  trainvec = NA
)

Arguments

snps

input matrix

freqthresh

remove snps below this frequency

shiftit

shift the snps to smooth the estimate

replaceWithF

replaces snps with frequency values

traitvecin

map snps to trait vector

trainvec

defines training data

Value

matrix is output

Author(s)

Avants BB

Examples


mat <- matrix(c(0, 1, 2, 0, 0, 1, 2, 2, 2), ncol = 3)
wmat <- quantifySNPs(mat, freqthresh = 0)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.