indProbs {poolHelper}R Documentation

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)

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.

Value

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

Examples

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


[Package poolHelper version 1.1.0 Index]