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 096ae19. 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/index.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/index.Rmd) and HTML (docs/index.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 3573a52 WevertonGomesCosta 2026-03-27 update
Rmd 5b10ff7 WevertonGomesCosta 2026-02-24 update
html 5b10ff7 WevertonGomesCosta 2026-02-24 update
html cd06825 WevertonGomesCosta 2025-11-04 update about, index and license
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.

Kernel-Based Integration of Near-Infrared Spectroscopy and Genomic Data

Welcome. This website organizes the analytical workflows, intermediate products, and manuscript-oriented reports for the study “Kernel-Based Integration of Near-Infrared Spectroscopy and Genomic Data for Enhanced Predictive Performance”.

The project investigates whether combining genomic markers, near-infrared spectroscopy (NIRS), and weather covariates through kernel-based models can improve predictive performance for agronomic traits in multi-environment maize trials.

Central scientific question

The study evaluates whether heterogeneous biological information sources provide complementary predictive signal when modeled jointly. In practical terms, the repository compares:

  • genomic prediction (G) based on SNP-derived similarity;
  • phenomic prediction (P) based on NIRS-derived similarity;
  • environmental information (E/W) represented through fixed or kernel-based structures;
  • integrated multi-kernel models combining genomic, phenomic, and environmental components.

The main analytical focus is not only whether integration is possible, but whether it is stable, reproducible, and genuinely advantageous across cross-validation scenarios that reflect realistic breeding conditions.

Study scope

The analyses are based on maize multi-environment trials conducted in College Station, Texas, under two water regimes (well-watered and water-stressed) across two years (2011 and 2012). The repository integrates:

  • phenotypic records for agronomic traits;
  • genomic marker data;
  • whole-kernel NIRS spectra;
  • daily weather covariates used to derive environmental kernels.

The target traits currently emphasized in the study are:

  • Grain yield (GY)
  • 500-kernel weight (KW)

Main analytical message

The original motivation of the project was to test whether integrating NIRS and genomic information could improve prediction beyond single-source models. The current version of the study supports a more selective conclusion:

  • genomic information provided the most robust predictive signal;
  • NIRS captured biologically relevant variation, but with lower stability across environments;
  • the environmental effect was strong and explained an important fraction of the observed variation;
  • adding weather kernels or explicit interaction kernels did not consistently improve predictive performance;
  • integrating G + P did not yield clear or systematic gains under the evaluated conditions.

This makes the repository useful not only as a positive integration example, but also as a reproducible case study on when multimodal data fusion does not deliver the expected predictive advantage.

Website contents

This site is organized around the main components of the analytical pipeline available in the repository:

  • About: project context, manuscript framing, and study overview.
  • Climate data: preprocessing and structuring of weather information used in environmental modeling.
  • Matrices: construction of genomic, phenomic, environmental, and interaction kernels.
  • Prediction analysis: model fitting and cross-validation using Bayesian multi-kernel regression.
  • Variance components: decomposition of explained variation across model structures.
  • Visualization: figures and summary plots used to interpret predictive ability and model behavior.
  • Additional analysis pages: exploratory and supporting reports used during the development of the study.

Reproducibility

The project is implemented in R and organized with workflowr for transparent reporting. Dependencies can be restored locally with renv.

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

The repository structure includes source analyses, data, helper code, intermediate outputs, and rendered website files.

Repository and contact

GitHub repository
WevertonGomesCosta/Integrating-nir-genomic-kernel

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

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


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, ↩︎