Last updated: 2022-01-26

Checks: 6 1

Knit directory: HenriqueDGen/

This reproducible R Markdown analysis was created with workflowr (version 1.6.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(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 119cc22. 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/

Untracked files:
    Untracked:  data/Dados Produtivos 2011-2021.CSV
    Untracked:  data/Dados Produtivos 2011-2021.CSV1.CSV
    Untracked:  output/DadosProdutivos.rds
    Untracked:  output/DadosVigor.rds

Unstaged changes:
    Modified:   analysis/index.Rmd
    Modified:   output/DadosFenotipicosv2.RDS

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
Rmd 119cc22 LucianoRogerio 2022-01-18 Atividades Henrique 18 Janeiro
html 119cc22 LucianoRogerio 2022-01-18 Atividades Henrique 18 Janeiro
Rmd 8fec827 LucianoRogerio 2021-12-07 fix the introduction section
html 8fec827 LucianoRogerio 2021-12-07 fix the introduction section
Rmd d124c30 LucianoRogerio 2021-12-07 Update of the webpage to english writting
html d124c30 LucianoRogerio 2021-12-07 Update of the webpage to english writting
Rmd f272038 LucianoRogerio 2021-12-07 Update of the analysis and website layout
html f272038 LucianoRogerio 2021-12-07 Update of the analysis and website layout
Rmd e535227 LucianoRogerio 2021-11-24 Update Layout Website
html e535227 LucianoRogerio 2021-11-24 Update Layout Website
html 62922ff LucianoRogerio 2021-11-18 Build site.
Rmd f51cdc6 LucianoRogerio 2021-11-18 Add the Dendrogram analysis
Rmd 97d638d LucianoRogerio 2021-11-02 Update of html links
html 97d638d LucianoRogerio 2021-11-02 Update of html links
html b9ef481 LucianoRogerio 2021-11-02 Build site and add new Data
Rmd 7286357 LucianoRogerio 2021-11-02 Insercao do caractere Area de Antracnose e PCA
html 4842664 LucianoRogerio 2021-10-19 Build site.
Rmd 3dbea3e LucianoRogerio 2021-10-19 Fix link to MixedModels page
html 39d114b LucianoRogerio 2021-10-19 Build site.
Rmd a740a97 LucianoRogerio 2021-10-19 Fix link to MixedModels page
Rmd b9ece4f LucianoRogerio 2021-10-12 Second Commit
html b9ece4f LucianoRogerio 2021-10-12 Second Commit
Rmd d2d70ff LucianoRogerio 2021-10-12 Second Commit
html d2d70ff LucianoRogerio 2021-10-12 Second Commit
Rmd 9293d6c LucianoRogerio 2021-10-12 Start workflowr project.

Introduction

Phenotypic data

Descriptive and deviance analysis were performed to verify the distribution and the genotypic effects for resistance to foliar diseases. In this work we used a natural logarithm transformation for Affected area by Anthracnosis at the innoculated area at stem in cassava plants (AnAr).

suppressMessages(library(tidyverse))
Warning: package 'tibble' was built under R version 4.1.1
Warning: package 'readr' was built under R version 4.1.1
library(here)
Warning: package 'here' was built under R version 4.1.2
here() starts at C:/Users/jhenr/OneDrive/Documentos/GitHub/HenriqueDGen
suppressMessages(library(reactable))
Warning: package 'reactable' was built under R version 4.1.2
# Data read by R using here package to allow the read in any computer with different directory path
PhenoData <- readRDS(here::here("data", "DadosFenotipicos.RDS"))
# Add the control information for the Mixed Models analysis
control <- names(table(PhenoData$accession_name)[table(PhenoData$accession_name) > 30])
PhenoData$control <- ifelse(PhenoData$accession_name %in% control, PhenoData$accession_name, "999") 
PhenoData$new <- ifelse(PhenoData$accession_name %in% control, 0, 1)

# Change the Disease names to english abbreviations
colnames(PhenoData)[7:11] <- c("Anth", "WhLS", "BrLS", "BlLS", "AnAr")

# Natural logarithm transformation for Anthracnosis Area
PhenoData$AnAr <- log(PhenoData$AnAr)

Table 1. Phenotypic data for resistance to foliar disease evaluated at the Cassava Germplasm Bank of EMBRAPA, data collected in 2021.

Anthracnosis (Anth), White Leaf spot (WhLS), Brown Leaf spot (BrLS), Blight Leaf Spot (BlLS), Affected area by Anthracnosis at the innoculated area at stem in cassava plants (AnAr).

lnfUtl <- colnames(PhenoData)[c(1:4, 12:13)]
PhenoData$talhao_number <- NULL
PhenoData$Idade <- NULL
traits <- colnames(PhenoData)[!colnames(PhenoData) %in% lnfUtl]
PhenoData2 <- PhenoData %>% gather(key = traits, value = Y, -all_of(lnfUtl))

Table 2. Data entry for the descriptive analysis and mixed models for resistance of foliar disease in cassava.

Anthracnosis (Anth), White Leaf spot (WhLS), Brown Leaf spot (BrLS), Blight Leaf Spot (BlLS), Affected area by Anthracnosis at the innoculated area at stem in cassava plants (AnAr).

saveRDS(PhenoData2, here::here("output", "DadosFenotipicosv2.RDS"))
# Rodar o script aqui dentro


#install.packages("reshape2")


library(reshape2)
Warning: package 'reshape2' was built under R version 4.1.2

Attaching package: 'reshape2'
The following object is masked from 'package:tidyr':

    smiths
DadosProdutivos <- read.table(here::here("data", "Dados Produtivos 2011-2021.CSV1.CSV"), header = T, sep = ";")

head(DadosProdutivos)
   Ano      Campo                  Local Genotipos.BGM Genotipos Bloco Linha
1 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0023  BGM-0023     1    27
2 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0023  BGM-0023     2    25
3 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0023  BGM-0023     3    16
4 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0025  BGM-0025     1     7
5 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0025  BGM-0025     2     4
6 2011 Agroverde1 CNPMF (Cruz das Almas)      BGM-0025  BGM-0025     3     3
  Coluna Stand  AP APsF DMC   PTR   PRC  PRNC   PPA Vigor Vigor45D Vigor6M
1      7    18 128   NA  NA 47.81 41.56  6.25 46.88    NA     <NA>      NA
2     14    17 229   NA  NA 45.94 35.06 10.88 49.06    NA     <NA>      NA
3     24    20 268   NA  NA 71.25 59.95 11.30 56.56    NA     <NA>      NA
4      2    16 174   NA  NA 21.25 13.96  7.29 21.25    NA     <NA>      NA
5     11    17 202   NA  NA 25.00 19.91  5.09 27.50    NA     <NA>      NA
6     20    17 230   NA  NA 16.25  9.19  7.06 29.38    NA     <NA>      NA
  Vigor12M
1       NA
2       NA
3       NA
4       NA
5       NA
6       NA
colnames(DadosProdutivos)[c(4,10:20)] <- c("Genotipo-BGM","AP", "APsF","DMC",
                                            "PTR","PRC", "PRNC","PPA","Vigor","Vigor45D","Vigor6M","Vigor12M")

DadosProdutivos2 <- DadosProdutivos[,1:16]

DadosProdutivosfin <- reshape2::melt(data = DadosProdutivos2,id.vars = c("Ano","Campo","Local","Genotipo-BGM","Genotipos","Bloco","Linha", "Coluna"),
                                     variable.name = "Trait",
                                     value.name = "Value") %>% filter(!is.na(Value))

saveRDS(object = DadosProdutivosfin, file = here::here("output", "DadosProdutivos.rds"))


DadosVigor <- DadosProdutivos[,c(1:8,17:20)]
head(DadosVigor)
   Ano      Campo                  Local Genotipo-BGM Genotipos Bloco Linha
1 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0023  BGM-0023     1    27
2 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0023  BGM-0023     2    25
3 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0023  BGM-0023     3    16
4 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0025  BGM-0025     1     7
5 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0025  BGM-0025     2     4
6 2011 Agroverde1 CNPMF (Cruz das Almas)     BGM-0025  BGM-0025     3     3
  Coluna Vigor Vigor45D Vigor6M Vigor12M
1      7    NA     <NA>      NA       NA
2     14    NA     <NA>      NA       NA
3     24    NA     <NA>      NA       NA
4      2    NA     <NA>      NA       NA
5     11    NA     <NA>      NA       NA
6     20    NA     <NA>      NA       NA
DadosVigorFin <- reshape2::melt(data = DadosVigor, id.vars = c("Ano","Campo","Local","Genotipo-BGM",
                                    "Genotipos","Bloco","Linha","Coluna"),
                                         variable.name = "Epoca",
                                         value.name = "Value") %>% filter(!is.na(Value))

head(DadosVigorFin)
   Ano         Campo                         Local  Genotipo-BGM     Genotipos
1 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas)          4271          4271
2 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas)          4271          4271
3 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas)    01/03/2011    01/03/2011
4 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas) 11-CONQUISTA2 11-CONQUISTA2
5 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas)   2011-24-156   2011-24-156
6 2021 BR.BAG.20.Rec UFRB-Candial (Cruz das Almas)   2011-24-156   2011-24-156
  Bloco Linha Coluna Epoca Value
1     1    10     10 Vigor     3
2     1     9     10 Vigor     3
3     1     1      1 Vigor     3
4     1     3      1 Vigor     3
5     1    10     11 Vigor     3
6     2     7     17 Vigor     3
saveRDS(object = DadosVigorFin, file = here::here("output", "DadosVigor.rds"))

Dendrogram and Shannon-Weaver Index


sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

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

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

other attached packages:
 [1] reshape2_1.4.4  reactable_0.2.3 here_1.0.1      forcats_0.5.1  
 [5] stringr_1.4.0   dplyr_1.0.7     purrr_0.3.4     readr_2.0.1    
 [9] tidyr_1.1.3     tibble_3.1.4    ggplot2_3.3.5   tidyverse_1.3.1

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.7        lubridate_1.7.10  assertthat_0.2.1  rprojroot_2.0.2  
 [5] digest_0.6.27     utf8_1.2.2        plyr_1.8.6        reactR_0.4.4     
 [9] R6_2.5.1          cellranger_1.1.0  backports_1.2.1   reprex_2.0.1     
[13] evaluate_0.14     httr_1.4.2        pillar_1.6.2      rlang_0.4.11     
[17] readxl_1.3.1      rstudioapi_0.13   whisker_0.4       rmarkdown_2.10   
[21] htmlwidgets_1.5.4 munsell_0.5.0     broom_0.7.9       compiler_4.1.0   
[25] httpuv_1.6.3      modelr_0.1.8      xfun_0.25         pkgconfig_2.0.3  
[29] htmltools_0.5.2   tidyselect_1.1.1  workflowr_1.6.2   fansi_0.5.0      
[33] crayon_1.4.1      tzdb_0.1.2        dbplyr_2.1.1      withr_2.4.2      
[37] later_1.3.0       grid_4.1.0        jsonlite_1.7.2    gtable_0.3.0     
[41] lifecycle_1.0.0   DBI_1.1.1         git2r_0.28.0      magrittr_2.0.1   
[45] scales_1.1.1      cli_3.0.1         stringi_1.7.4     fs_1.5.0         
[49] promises_1.2.0.1  xml2_1.3.2        ellipsis_0.3.2    generics_0.1.0   
[53] vctrs_0.3.8       tools_4.1.0       glue_1.4.2        hms_1.1.0        
[57] fastmap_1.1.0     yaml_2.2.1        colorspace_2.0-2  rvest_1.0.1      
[61] knitr_1.33        haven_2.4.3