Last updated: 2026-03-27

Checks: 6 1

Knit directory: Integrating-nir-genomic-kernel/

This reproducible R Markdown analysis was created with workflowr (version 1.7.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown file has unstaged changes. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20250829) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version bb0b635. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    data/Article_documents/
    Ignored:    data/Maize-NIRS-GBS-main/
    Ignored:    output/Matrizes/ZEZE.rds
    Ignored:    output/adjust_models.rar
    Ignored:    output/climate_results/additional_climate_plots.tiff
    Ignored:    output/climate_results/combined_additional_climate_plots.tiff
    Ignored:    output/climate_results/combined_climate_plot.tiff
    Ignored:    output/cv-schemes.tiff
    Ignored:    output/results/
    Ignored:    output/variance_components/rep_1/
    Ignored:    output/variance_components/rep_10/
    Ignored:    output/variance_components/rep_11/
    Ignored:    output/variance_components/rep_12/
    Ignored:    output/variance_components/rep_13/
    Ignored:    output/variance_components/rep_14/
    Ignored:    output/variance_components/rep_15/
    Ignored:    output/variance_components/rep_16/
    Ignored:    output/variance_components/rep_17/
    Ignored:    output/variance_components/rep_18/
    Ignored:    output/variance_components/rep_19/
    Ignored:    output/variance_components/rep_2/
    Ignored:    output/variance_components/rep_20/
    Ignored:    output/variance_components/rep_3/
    Ignored:    output/variance_components/rep_4/
    Ignored:    output/variance_components/rep_5/
    Ignored:    output/variance_components/rep_6/
    Ignored:    output/variance_components/rep_7/
    Ignored:    output/variance_components/rep_8/
    Ignored:    output/variance_components/rep_9/
    Ignored:    output/variance_components/var_components_GY.tiff
    Ignored:    output/variance_components/var_components_KW.tiff
    Ignored:    output/variance_components/var_components_combined.tiff
    Ignored:    output/variance_components/variance_components_all.dat
    Ignored:    output/variance_components/variance_components_all.rds

Unstaged changes:
    Modified:   analysis/about.Rmd
    Modified:   analysis/license.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/about.Rmd) and HTML (docs/about.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
html 2b82058 WevertonGomesCosta 2026-03-27 update
Rmd 7b39806 WevertonGomesCosta 2026-03-27 update about and index
html 7b39806 WevertonGomesCosta 2026-03-27 update about and index
html 3573a52 WevertonGomesCosta 2026-03-27 update
Rmd 5b10ff7 WevertonGomesCosta 2026-02-24 update
html cd06825 WevertonGomesCosta 2025-11-04 update about, index and license
html b80800b WevertonGomesCosta 2025-11-03 update about.html
html 80b3304 WevertonGomesCosta 2025-11-03 update index, about, license html
Rmd 9a3bfcc WevertonGomesCosta 2025-11-03 update about, index and license
html 9a3bfcc WevertonGomesCosta 2025-11-03 update about, index and license
Rmd 870efdc WevertonGomesCosta 2025-09-16 update about, license and index
html 870efdc WevertonGomesCosta 2025-09-16 update about, license and index
html 51754b1 WevertonGomesCosta 2025-08-29 add index, about, and license .rmd and .html
Rmd a2bc83b WevertonGomesCosta 2025-08-29 Start workflowr project.

About the article

This repository accompanies the manuscript “Kernel-Based Integration of Near-Infrared Spectroscopy and Genomic Data for Enhanced Predictive Performance” and documents the data-processing, kernel construction, prediction, and visualization workflows used in the study.

The project evaluates whether kernel-based integration of genomic markers, near-infrared spectroscopy (NIRS), and weather covariates can improve prediction for agronomic traits in multi-environment maize trials. The analyses were developed under a hierarchical Bayesian framework in R, with reproducible workflows organized through workflowr.

Study overview

The study was based on multi-environment field trials conducted in College Station, Texas, during 2011 and 2012, under two contrasting water management regimes: well-watered (WW) and water-stressed (WS). These combinations generated four macro-environments used throughout the prediction analyses:

The repository integrates three main sources of information:

The target traits analyzed in the manuscript are:

Analytical scope

The repository contains the workflows required to:

Main findings

The central hypothesis of the study was that integrating genomic and NIRS information through kernel methods could improve predictive ability relative to single-source models. However, the current analyses indicate a more restrictive result:

These results suggest that, in this dataset, NIRS captured a strong environment-dependent physiological signal, but did not provide a sufficiently stable complementary signal to improve genomic prediction across environments.

Repository structure

The project is organized into the following directories:

Reproducibility

All analyses were implemented in R and are intended to be reproducible through the project environment. Package dependencies can be restored with renv, and the website/reporting workflow is managed with workflowr.

A typical local setup is:

install.packages("renv")
renv::restore()

Citation and contact

If you use this repository, please cite the corresponding manuscript when available.

Author / Contact
Weverton Gomes da Costa
Departamento de Estatística, Universidade Federal de Viçosa (UFV)
Email:

Project website
https://wevertongomescosta.github.io/Integrating-nir-genomic-kernel/

GitHub repository
https://github.com/WevertonGomesCosta/Integrating-nir-genomic-kernel


R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26200)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=Portuguese_Brazil.utf8  LC_CTYPE=Portuguese_Brazil.utf8   
[3] LC_MONETARY=Portuguese_Brazil.utf8 LC_NUMERIC=C                      
[5] LC_TIME=Portuguese_Brazil.utf8    

time zone: America/Sao_Paulo
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] vctrs_0.7.1       cli_3.6.5         knitr_1.50        rlang_1.1.7      
 [5] xfun_0.54         stringi_1.8.7     otel_0.2.0        promises_1.5.0   
 [9] jsonlite_2.0.0    workflowr_1.7.2   glue_1.8.0        rprojroot_2.1.1  
[13] git2r_0.36.2      htmltools_0.5.9   httpuv_1.6.16     sass_0.4.10      
[17] rmarkdown_2.30    evaluate_1.0.5    jquerylib_0.1.4   tibble_3.3.1     
[21] fastmap_1.2.0     yaml_2.3.12       lifecycle_1.0.5   whisker_0.4.1    
[25] stringr_1.6.0     compiler_4.5.1    fs_1.6.6          Rcpp_1.1.1       
[29] pkgconfig_2.0.3   rstudioapi_0.17.1 later_1.4.4       digest_0.6.39    
[33] R6_2.6.1          pillar_1.11.1     magrittr_2.0.4    bslib_0.9.0      
[37] tools_4.5.1       cachem_1.1.0     

  1. Weverton Gomes da Costa, Pós-Doutorando, Departamento de Estatística - Universidade Federal de Viçosa, ↩︎