Learn R Programming

AllelicImbalance (version 1.6.2)

randomRef: Random ref allele from genotype

Description

Create a vector of random reference alleles

Usage

randomRef(x, ...)
"randomRef"(x, inferGenotypes = FALSE)

Arguments

x
ASEset object
...
internal arguments
inferGenotypes
infer genotypes from count matrix

Details

Randomly shuffles which of the two alleles for each genotype that is indicated as reference allele.

Examples

Run this code
#load example data
data(ASEset.sim)
a <- ASEset.sim

mcols(a)[["ref"]] <- randomRef(a, inferGenotypes=TRUE)

Run the code above in your browser using DataLab