getProbs | R Documentation |
Extract IBD probabilities for one or more markers from an object of class
IBDprob
.
getProbs(IBDprob, markers, sumProbs = FALSE)
IBDprob |
An object of class |
markers |
A character vector of markers that should be extracted. |
sumProbs |
Should the probabilities by summed per parent. If |
A data.frame with IBD probabilities for the extracted markers in the column and genotypes in the rows.
## Compute IBD probabilities for Steptoe Morex.
SxMIBD <- calcIBD(popType = "DH",
markerFile = system.file("extdata/SxM", "SxM_geno.txt",
package = "statgenIBD"),
mapFile = system.file("extdata/SxM", "SxM_map.txt",
package = "statgenIBD"))
## Get probabilities for a single marker.
probOne <- getProbs(IBDprob = SxMIBD,
markers = "plc")
head(probOne)
## Get probabilities for a multiple markers.
probMult <- getProbs(IBDprob = SxMIBD,
markers = c("plc", "tuba1"))
head(probMult)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.