https://github.com/biometris/statgenmpp
See https://biometris.github.io/statgenMPP for a full description
https://github.com/biometris/statgenmpp
cran genetics mpp qtl-mapping r-package
Last synced: 4 months ago
JSON representation
See https://biometris.github.io/statgenMPP for a full description
- Host: GitHub
- URL: https://github.com/biometris/statgenmpp
- Owner: Biometris
- Created: 2022-03-14T14:25:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-10-17T13:11:38.000Z (9 months ago)
- Last Synced: 2026-02-16T05:23:12.751Z (5 months ago)
- Topics: cran, genetics, mpp, qtl-mapping, r-package
- Language: R
- Homepage: https://biometris.github.io/statgenMPP
- Size: 11.8 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# statgenMPP 
[](https://www.r-pkg.org/pkg/statgenMPP)
[](https://www.r-pkg.org/pkg/statgenMPP)
[](https://github.com/Biometris/statgenMPP/actions?workflow=R-CMD-check)
[](https://app.codecov.io/gh/Biometris/statgenMPP)
The statgenMPP package is developed as an easy-to-use package for QTL mapping in biparental and multi-parent populations. The package has many ways of visualizing inputs and results. First Identity By Descent (IBD) probabilities are computed using Hidden Markov Models. These probabilities are then used in a mixed model approach for QTL Mapping as described in [Li et al. 2021](https://link.springer.com/article/10.1007/s00122-021-03919-7).
* Install from CRAN:
```{r, eval = FALSE}
install.packages("statgenMPP")
```
* Install latest development version from GitHub (requires [remotes](https://github.com/r-lib/remotes) package):
```{r, eval = FALSE}
remotes::install_github("Biometris/statgenMPP", ref = "develop", dependencies = TRUE)
```
## Example
Here we give a simple example, using a single biparental population. The example contains simulated data for one F4DH population. The population type F4DH is a cross between two parents, A and C, followed by 3 generations of selfings, followed by a DH generation, see [statgenIBD](https://biometris.github.io/statgenIBD/) for details.
First we load the marker data and phenotypic data and calculate the IBDs using the `calcIBDMPP` function:
```{r simIBD}
library(statgenMPP)
markerFiles <- system.file("extdata/multipop", "AxC.txt",
package = "statgenMPP")
mapFile <- system.file("extdata/multipop", "mapfile.txt",
package = "statgenMPP")
phenoDat <- read.delim(system.file("extdata/multipop", "AxBxCpheno.txt",
package = "statgenMPP"))
ACMPP <- calcIBDMPP(crossNames = c("AxC"),
markerFiles = markerFiles,
pheno = phenoDat,
popType = "F4DH",
mapFile = mapFile,
evalDist = 5)
```
The population has the following simple structure, for more complicated examples see the vignette.
```{r plotPACMPP}
plot(ACMPP, plotType = "pedigree")
```
The next step is to select QTLs using `selQTLMPP`:
```{r ACMQM}
ACMQM <- selQTLMPP(MPPobj = ACMPP, trait = "yield", threshold = 3)
```
The QTL-mapping profile and parental effects:
```{r plotQPEACMQM}
plot(ACMQM, plotType = "QTLProfileExt")
```
The confidence intervals around the parental effects for each QTL:
```{r plotCIACMQM}
plot(ACMQM, plotType = "parCIs")
```
A summary of the QTL-analyis gives a short overview containing the total number of markers and the number of QTLs found. Also for all QTLs their position on the chromosome is shown as well as the nearest marker on the original map, the explained variance, and the effects and the standard errors of all parents:
```{r sumACMQM}
## Print summary
summary(ACMQM)
```