Learn R Programming

poolHelper (version 1.1.0)

indProbs: Probability of contribution of each individual

Description

This function computes the probability of contribution for each individual of a given pool. Please note that this function works for a single pool and should not be directly applied to situations where multiple pools were used.

Usage

indProbs(np, nSNPs, pError)

Value

a matrix with the probabilities of contribution for each individual. Each row represents a different individual and each column is a different site.

Arguments

np

an integer specifying how many individuals were pooled.

nSNPs

an integer indicating how many SNPs exist in the data.

pError

an integer representing the value of the error associated with DNA pooling. This value is related with the unequal individual contribution towards the total number of reads contributed by a single pool - the higher the value the more unequal are the individual contributions.

Examples

Run this code
# probability of contribution for 10 individuals at 5 sites
indProbs(np = 10, nSNPs = 5, pError = 100)

Run the code above in your browser using DataLab