Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.5%) to scientific vocabulary
Keywords
lmm
met-analysis
plant-breeding
Last synced: 9 months ago
·
JSON representation
Repository
Utilities for field trial analysis.
Basic Info
- Host: GitHub
- Owner: AparicioJohan
- License: other
- Language: R
- Default Branch: main
- Homepage: https://apariciojohan.github.io/agriutilities/
- Size: 23.8 MB
Statistics
- Stars: 20
- Watchers: 1
- Forks: 4
- Open Issues: 2
- Releases: 3
Topics
lmm
met-analysis
plant-breeding
Created over 4 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
Code of conduct
README.Rmd
---
output: github_document
bibliography: ./vignettes/bibliography.bib
---
```{r, include = FALSE}
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
collapse = TRUE,
comment = "",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# agriutilities
[](https://CRAN.R-project.org/package=agriutilities)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://r-pkg.org/pkg/agriutilities)
[](https://r-pkg.org/pkg/agriutilities)
agriutilities is an `R` package designed to make the analysis of
field trials easier and more accessible for everyone working in plant breeding.
It provides a simple and intuitive interface for conducting **single** and
**multi-environmental** trial analysis, with minimal coding required. Whether
you're a beginner or an experienced user, agriutilities will help you quickly
and easily carry out complex analyses with confidence. With built-in functions
for fitting Linear Mixed Models (**LMM**), agriutilities is the ideal choice for
anyone who wants to save time and focus on interpreting their results.
## Installation
### From CRAN
``` r
install.packages("agriutilities")
```
### From GitHub
You can install the development version of agriutilities from
[GitHub](https://github.com/AparicioJohan/agriutilities) with:
``` r
remotes::install_github("AparicioJohan/agriutilities")
```
## Automatic Data Analysis Pipeline
This is a basic example which shows you how to use some of the functions of the
package.
### Identify the Experimental Design
The function `check_design_met` helps us to check the quality of the data and
also to identify the experimental design of the trials. This works as a quality
check or quality control before we fit any model.
```{r}
library(agriutilities)
library(agridat)
data(besag.met)
dat <- besag.met
results <- check_design_met(
data = dat,
genotype = "gen",
trial = "county",
traits = "yield",
rep = "rep",
block = "block",
col = "col",
row = "row"
)
```
```{r, fig.dpi=600}
plot(results, type = "connectivity")
plot(results, type = "missing")
```
Inspecting the output.
```{r}
print(results)
```
### Single Trial Analysis (STA)
The results of the previous function are used in `single_trial_analysis()` to
fit single trial models. This function can fit, Completely Randomized Designs
(**CRD**), Randomized Complete Block Designs (**RCBD**), Resolvable Incomplete
Block Designs (**res-IBD**), Non-Resolvable Row-Column Designs (**Row-Col**)
and Resolvable Row-Column Designs (**res-Row-Col**).
> **NOTE**: It fits models based on the randomization detected.
```{r}
obj <- single_trial_analysis(results, progress = FALSE)
```
Inspecting the output.
```{r}
print(obj)
```
```{r, fig.dpi=600}
plot(obj, horizontal = TRUE, nudge_y_h2 = 0.12)
plot(obj, type = "correlation")
```
The returning object is a set of lists with trial summary, BLUEs, BLUPs,
heritability, variance components, potential extreme observations, residuals,
the models fitted and the data used.
### Two-Stage Analysis (MET)
The results of the previous function are used in `met_analysis()` to
fit multi-environmental trial models.
```{r, message=FALSE, warning=FALSE}
met_results <- met_analysis(obj, vcov = "fa2", progress = FALSE)
```
Inspecting the output.
```{r}
print(met_results)
```
### Exploring Factor Analytic in MET analysis.
```{r}
pvals <- met_results$trial_effects
model <- met_results$met_models$yield
fa_objt <- fa_summary(
model = model,
trial = "trial",
genotype = "genotype",
BLUEs_trial = pvals,
k_biplot = 8,
size_label_var = 4,
filter_score = 1
)
```
```{r, fig.dpi=600}
fa_objt$plots$loadings_c
fa_objt$plots$biplot
```
For more information and to learn more about what is described here you may find
useful the following sources: @isik2017genetic; @rodriguez2018correcting.
## Code of Conduct
Please note that the agriutilities project is released with a [Contributor Code
of Conduct](https://apariciojohan.github.io/agriutilities/CODE_OF_CONDUCT.html).
By contributing to this project, you agree to abide by its terms.
# References
Owner
- Name: Johan Steven Aparicio
- Login: AparicioJohan
- Kind: user
- Location: Cali, Colombia
- Company: CIAT
- Website: https://beanteam.shinyapps.io/MrBean/
- Twitter: jstaparicio
- Repositories: 4
- Profile: https://github.com/AparicioJohan
Universidad del Valle
GitHub Events
Total
- Issues event: 2
- Watch event: 3
- Push event: 2
Last Year
- Issues event: 2
- Watch event: 3
- Push event: 2
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 7
- Total pull requests: 1
- Average time to close issues: about 1 month
- Average time to close pull requests: less than a minute
- Total issue authors: 5
- Total pull request authors: 1
- Average comments per issue: 1.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- AparicioJohan (3)
- cculma (1)
- SchmidtPaul (1)
- statslover123 (1)
- LizaAndrews (1)
Pull Request Authors
- AparicioJohan (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 438 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: agriutilities
Utilities for Data Analysis in Agriculture
- Homepage: https://github.com/AparicioJohan/agriutilities
- Documentation: http://cran.r-project.org/web/packages/agriutilities/agriutilities.pdf
- License: MIT + file LICENSE
-
Latest release: 1.2.1
published over 1 year ago
Rankings
Stargazers count: 15.1%
Forks count: 17.8%
Average: 24.7%
Downloads: 25.4%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/draft-pdf.yml
actions
- actions/checkout v3 composite
- actions/upload-artifact v1 composite
- openjournals/openjournals-draft-action master composite
DESCRIPTION
cran
- asreml * enhances
- Matrix * imports
- SpATS * imports
- data.table * imports
- dplyr * imports
- emmeans * imports
- ggplot2 * imports
- ggpubr * imports
- ggrepel * imports
- lme4 * imports
- lmerTest * imports
- magrittr * imports
- psych * imports
- rlang * imports
- statgenSTA * imports
- stats * imports
- tibble * imports
- tidyr * imports
- agridat * suggests
- cluster * suggests
- knitr * suggests
- lattice * suggests
- rmarkdown * suggests