filt_snps: Filter SNPs

Description Usage Arguments Value Examples

Description

Some SNPs do not work as well as others and might be filtered out.

Usage

1
2
3
4
5
6
7
filt_snps(dat, filt)

## S3 method for class 'raw_data'
filt_snps(dat, filt)

## S3 method for class 'norm_data'
filt_snps(dat, filt)

Arguments

dat

Matrix with raw data or list with intensity, theta, position and chromosome objects.

filt

Character or numberic vector with SNP names or rownumbers to filter out.

Value

Filtered matrix.

Examples

1
2
3
4
5
6
7
8
if(require(brassicaData)){
data("raw_napus", package = "brassicaData", envir = environment())

dat <- intens_theta(raw_napus)
dat <- remove_suffix(dat, "_Grn")
dat <- geno_baf_rratio(dat, delthresh = 11)
dat <- filt_snps(dat, dat$snps[is.na(rowMeans(dat$baf, na.rm = TRUE))])
}

grafab/gsrc documentation built on May 17, 2019, 8:18 a.m.