Last updated: 2024-03-06

Checks: 6 1

Knit directory: HenriqueDGen/

This reproducible R Markdown analysis was created with workflowr (version 1.7.1). 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(20211012) 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 5f808d6. 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:    .DS_Store
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    data/.DS_Store
    Ignored:    output/.DS_Store
    Ignored:    output/Figures/.DS_Store

Untracked files:
    Untracked:  code/1CapHen.R
    Untracked:  data.zip
    Untracked:  output/BlupsHen.txt
    Untracked:  output/Correlogram.pdf
    Untracked:  output/Fig10_CircularHeatmapDAGrp.pdf
    Untracked:  output/Fig1_BarplotsCassavaFoliarDiseaseTraits.pdf
    Untracked:  output/Fig2_DenplotsCassavaFoliarDiseaseTraits.pdf
    Untracked:  output/Fig3_DenplotsCassavaAgronomicTraits.pdf
    Untracked:  output/Fig4_DenplotsBLUPsCassavaFoliarDiseaseTraits.pdf
    Untracked:  output/Fig5_DenplotsBLUPsCassavaAgronomicTraits.pdf
    Untracked:  output/Fig6_BarplotAccumulatedVariancesPCFoliarDiseases.pdf
    Untracked:  output/Fig7_ScatterplotPC1and2CorrelationArrowsFoliarDiseaseResistancePC.pdf
    Untracked:  output/Fig8_ScatterplotLD1and2CassavaFoliarDiseases3clusters.pdf
    Untracked:  output/Fig9_BoxplotsBLUPSDAGrpCassavaFoliarDiseases.pdf

Unstaged changes:
    Modified:   analysis/AnalisesDescritivas.Rmd
    Modified:   analysis/AnalisesModelosMistos.Rmd
    Modified:   analysis/Den_IndSH.Rmd
    Modified:   analysis/IndSel.Rmd
    Modified:   analysis/PCA_DAPC.Rmd
    Deleted:    output/Correlogram.tiff
    Deleted:    output/Fig6_BarplotAccumulatedVariancesPCFoliarDiseases.tiff
    Deleted:    output/Fig9_BoxplotsBLUPSDAGrpCassavaFoliarDiseases.tiff
    Modified:   output/MediasBLUPs.txt

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/IndSel.Rmd) and HTML (docs/IndSel.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
Rmd 5f808d6 LucianoRogerio 2023-11-30 New Updates
html 5f808d6 LucianoRogerio 2023-11-30 New Updates

Introduction

suppressMessages(library(tidyverse))
suppressMessages(library(adegenet))
library(reactable)
library(here)
here() starts at /Users/luciano/Documents/GitHub/HenriqueDGen
library(data.table)

Attaching package: 'data.table'
The following objects are masked from 'package:lubridate':

    hour, isoweek, mday, minute, month, quarter, second, wday, week,
    yday, year
The following objects are masked from 'package:dplyr':

    between, first, last
The following object is masked from 'package:purrr':

    transpose
BLUPS <- readRDS(here::here("output", "BLUPsDiseaseAgro.rds"))
rownames(BLUPS) <- BLUPS$CLONE

BLUPS2 <- BLUPS[,-1] %>% scale(., center = T, scale = T)
BLUPS[is.na(BLUPS)] <- 0
BLUPS2[is.na(BLUPS2)] <- 0
BLUPS2 <- BLUPS2 %>% as.data.frame %>% 
  dplyr::mutate(SelIn = -10*Anth + -10*BlLS + -10*BrLS + -5*WhLS + 5*Vigor
                + 8*NR + 10*RF + 20*DRY + 10*DMC + 10*PTR + 5*PPA)
BLUPS <- BLUPS %>% mutate(SelInd = BLUPS2$SelIn)

BLUPSTest <- BLUPS[BLUPS$CLONE %in% c("BGM-1683", "BGM-2095", "BGM-2097", "BGM-2151", "BGM-2339", "BRS-Amansa-Burro",
                                      "BRS-Caipira", "BRS-Dourada", "BRS-Formosa", "BRS-Formosa-Tetra", "BRS-Gema-de-Ovo",
                                      "BRS-Jari", "BRS-Kiriris", "BRS-Mulatinha", "BRS-NovoHorizonte", "BRS-Poti-Branca",
                                      "BRS-Tapioqueira", "BRS-Verdinha", "BR-11-34-41", "BR-11-34-45", "BR-11-34-64", "BR-12-107-002"),]
BLUPSGer <- BLUPS[!BLUPS$CLONE %in% BLUPSTest$CLONE,]
Top30 <- BLUPSGer %>% arrange(desc(SelInd)) %>% .[2:31,]
BLUPSF <- Top30 %>% bind_rows(BLUPSTest)

write.table(BLUPSF, file = here::here("output", "BLUPsSel.csv"), sep = ",", quote = F, row.names = F)
((colMeans(Top30[,-1]) - colMeans(BLUPSTest[,-1]))/colMeans(BLUPSTest[,-1]))*100
      Anth       BlLS       BrLS       WhLS      Vigor         NR         RF 
 -1.640186  -1.944298  -1.754515  -3.259334  31.334555 -10.406634   3.878786 
       DRY        DMC        PTR        PPA     SelInd 
 11.197848   8.484599  11.760792  23.667554  59.737739 

Last page

Back to home


sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.3.1

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Sao_Paulo
tzcode source: internal

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

other attached packages:
 [1] data.table_1.15.0 here_1.0.1        reactable_0.4.4   adegenet_2.1.10  
 [5] ade4_1.7-22       lubridate_1.9.3   forcats_1.0.0     stringr_1.5.1    
 [9] dplyr_1.1.4       purrr_1.0.2       readr_2.1.5       tidyr_1.3.1      
[13] tibble_3.2.1      ggplot2_3.5.0     tidyverse_2.0.0  

loaded via a namespace (and not attached):
 [1] gtable_0.3.4      xfun_0.42         bslib_0.6.1       htmlwidgets_1.6.4
 [5] lattice_0.22-5    tzdb_0.4.0        vctrs_0.6.5       tools_4.3.2      
 [9] generics_0.1.3    parallel_4.3.2    fansi_1.0.6       cluster_2.1.6    
[13] pkgconfig_2.0.3   Matrix_1.6-5      lifecycle_1.0.4   compiler_4.3.2   
[17] git2r_0.33.0      munsell_0.5.0     permute_0.9-7     httpuv_1.6.14    
[21] htmltools_0.5.7   sass_0.4.8        yaml_2.3.8        later_1.3.2      
[25] pillar_1.9.0      jquerylib_0.1.4   whisker_0.4.1     seqinr_4.2-36    
[29] ellipsis_0.3.2    MASS_7.3-60.0.1   cachem_1.0.8      vegan_2.6-4      
[33] nlme_3.1-164      mime_0.12         tidyselect_1.2.0  digest_0.6.34    
[37] stringi_1.8.3     reshape2_1.4.4    splines_4.3.2     rprojroot_2.0.4  
[41] fastmap_1.1.1     grid_4.3.2        colorspace_2.1-0  cli_3.6.2        
[45] magrittr_2.0.3    utf8_1.2.4        ape_5.7-1         withr_3.0.0      
[49] scales_1.3.0      promises_1.2.1    timechange_0.3.0  rmarkdown_2.25   
[53] igraph_2.0.2      workflowr_1.7.1   hms_1.1.3         shiny_1.8.0      
[57] evaluate_0.23     knitr_1.45        mgcv_1.9-1        rlang_1.1.3      
[61] Rcpp_1.0.12       xtable_1.8-4      glue_1.7.0        rstudioapi_0.15.0
[65] jsonlite_1.8.8    R6_2.5.1          plyr_1.8.9        fs_1.6.3