randomRef {AllelicImbalance} | R Documentation |
Create a vector of random reference alleles
randomRef(x, ...) ## S4 method for signature 'ASEset' randomRef(x, source = "alleleCounts", ...)
x |
|
... |
internal arguments |
source |
'alleleCounts' |
Randomly shuffles which of the two alleles for each genotype that is indicated as reference allele, based on either allele count information or previous ref and alt alleles.
When the source is 'alleleCounts', the two most expressed alleles are taken as reference and alternative allele.
Jesper R. Gadin, Lasse Folkersen
#load example data data(ASEset.sim) a <- ASEset.sim ref(a) <- randomRef(a, source = 'alleleCounts')