Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

platformbias

The goal of platformbias is to provide statistical tests for platform bias, as well as simulations for these scenarios. The package currently implements tests for allele frequency differences between datasets.

The /scripts folder contains R and bash scripts for implementing Allele Frequency Filter (AF-filter) test and Logistic Mixed Model Filter (LMM-filter) test for harmonizing external controls in multiethnic case-control association studies with platform-specific genotyping biases. Current scripts are written for our simulated data for two scenarios (1) single generation with no family relatedness, and (2) 30 generations with relatedness within subpopulation. Scripts for simulating genotypes with platform biases and allele flips are included as well. R-package version for AF-filter and LMM-filter are in development.

Installation

The current development version can be installed from the GitHub repository using devtools:

install.packages("devtools") # if needed
library(devtools)
install_github('OchoaLab/platformbias', build_vignettes = TRUE)

Example

library(platformbias)

# test that the allele frequency in one dataset (counts of one allele `x1` out of `n1` total alleles) equals that in a second dataset (counts `x2` out of `n2`).
data <- af_test( x1, n1, x2, n2 )
data$pval

About

Population Genetics Inference

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages