poolProbs: Probability of contribution of each pool
Description
This function computes the probability of contribution of each pool towards
the total depth of coverage of a single population. If multiple pools where
used to sequence a single population, it is possible that some pools
contribute more than others.
Usage
poolProbs(nPools, vector_np, nSNPs, pError)
Value
a matrix with the probabilities of contribution for each pool. Each
row represents a different pool and each column is a different site.
Arguments
nPools
an integer indicating how many pools were used to sequence the
population.
vector_np
is a vector where each entry contains the number of diploid
individuals of a given pool. Thus, if a population was sequenced using two
pools, each with 10 individuals, this vector would contain two entries and
both will be 10.
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 pool contribution
towards the total number of reads of a population - the higher the value
the more unequal are the pool contributions.