filterHitsR2: Filter SNPs based on R2

Description Usage Arguments Value

View source: R/qtl_postProcess.R

Description

Identify genes that have two different lead SNPs and remove one of them if the R2 between the two SNPs is greater than R2_thresh.

Usage

1
filterHitsR2(feature_snp_pairs, genotypes, R2_thresh = 0.8)

Arguments

feature_snp_pairs

Data frame with two columns: gene_id, snp_id.

genotypes

Genotype matrix (SNPs in rows, samples in columns)

R2_thresh

R2 threshold, default 0.8.

Value

Filtered feature_snp_pairs that does not cotain highly correlated SNPs for single feature.


kauralasoo/seqUtils documentation built on May 20, 2019, 7:42 a.m.