Description Usage Arguments Value Examples
getIBDposterior()
calculates the posterior probabilities of IBD sharing between pairs of isolates.
1 | getIBDposterior(ped.genotypes, parameters, number.cores = 1, error = 0.001)
|
ped.genotypes |
A list containing 2 objects.
See the |
parameters |
A data frame containing meioses and IBD probability estimates for all pairwise combinations of isolates.
See the |
number.cores |
Positive integer. The number of cores used for parallel execution. |
error |
The genotyping error rate. The default value is 0.001. |
A data frame with the first four columns:
Chromosome
SNP identifiers
Genetic map distance
Base-pair position
where each row describes a single SNP. These columns are headed chr, snp_id, pos_M
and pos_bp
respectively.
Columns 5 onwards contain the posterior probabilities for each pair of isolates, where a single column corresponds to one pair of isolates.
These columns are labeled with merged family IDs and isolate IDs separated by a slash symbol (/).
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# calculate the posterior probability of IBD sharing
# note: this can take a while to run if there are many pairs
my_posterior <- getIBDposterior(ped.genotypes = png_genotypes,
parameters = png_parameters,
number.cores = 1,
error = 0.001)
head(my_posterior[,1:10])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.