Skip to content

Commit bf46d97

Browse files
committed
minor update
1 parent 753952b commit bf46d97

3 files changed

Lines changed: 63 additions & 6 deletions

File tree

experiment-trait-data-visualizer/app.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ source('render-site-map.R')
1111
# schedule daily execution of cache refresh
1212
cache_update_cmd <- cron_rscript('cache-refresh.R')
1313

14-
if(!grepl('cache-update', cronR::cron_ls())){
15-
cron_add(command = cache_update_cmd, frequency = 'daily',
16-
id = 'cache-update', description = 'daily update of BETYdb cache')
17-
}
18-
14+
cron_clear(ask = FALSE)
15+
cron_add(command = cache_update_cmd, frequency = 'daily',
16+
id = 'cache-update', description = 'daily update of BETYdb cache')
1917

2018
# set page UI
2119
ui <- fluidPage(theme = shinytheme('flatly'),

experiment-trait-data-visualizer/cache-refresh.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ get_data_for_season <- function(season) {
4141
select(date, mean, variable_id, cultivar_id, treatment_id, site_id)
4242

4343
n_traits <- traits_table %>% summarize(n = n()) %>% collect(n = Inf)
44-
if(n_traits == 0) return()
44+
if(n_traits == 0){
45+
return()
46+
}
4547
sites_table <- tbl(bety_src, sql("select ST_AsText(sites.geometry) AS geometry, id from sites")) %>%
4648
filter(!is.na(geometry)) %>%
4749
filter(id %in% site_ids) %>%

scripts/experimental_design.Rmd

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Experimental Design
2+
3+
4+
```{r setup, echo=FALSE, message = FALSE}
5+
library(googlesheets)
6+
library(knitr)
7+
library(dplyr)
8+
9+
opts_knit$set(echo = FALSE, message = FALSE, cache = TRUE)
10+
11+
```
12+
## Accessions
13+
14+
```{r accessions, echo = FALSE, message = FALSE}
15+
ss <- gs_key("1Nfabx_n1rNlO6NW3olD8MAibJ3KHnOMmMwOYYw4wwGc")
16+
accessions <- gs_read(ss, ws = "Accessions")
17+
a <- accessions %>% mutate_each( funs_( lazyeval::interp( ~replace(., is.na(.), "") ) ) ) %>% select(Entry, Code, Source, Pedigree, Pedigree2)
18+
19+
a[1:193,] %>% kable
20+
21+
a[195:201,] %>% kable(caption = a[194,'Entry'])
22+
23+
a[204:252,] %>% kable(caption = a[203,'Entry'])
24+
25+
```
26+
27+
https://docs.google.com/spreadsheets/d/1Nfabx_n1rNlO6NW3olD8MAibJ3KHnOMmMwOYYw4wwGc/pubhtml?gid=239932660&amp;single=true
28+
29+
## Experiments
30+
31+
```{r experiments, echo = FALSE, message = FALSE}
32+
experiments <- gs_read(ss, ws = "Experiments")
33+
experiments %>% kable
34+
```
35+
36+
https://docs.google.com/spreadsheets/d/1Nfabx_n1rNlO6NW3olD8MAibJ3KHnOMmMwOYYw4wwGc/pubhtml?gid=890543376&amp;single=true
37+
38+
## 2016 Field Layout
39+
40+
### Under Gantry
41+
42+
```{r gantry-plot-layout, echo = FALSE, message = FALSE}
43+
gantry_plot_layout <- gs_read(ss, ws = "Gantry Plot Layout")
44+
gantry_plot_layout %>% kable
45+
```
46+
47+
https://docs.google.com/spreadsheets/d/1Nfabx_n1rNlO6NW3olD8MAibJ3KHnOMmMwOYYw4wwGc/pubhtml?gid=1231399646&amp;single=true
48+
49+
### West of Gantry
50+
51+
```{r west-of-gantry-plot-layout, echo = FALSE, message = FALSE}
52+
west_of_gantry_plot_layout <- gs_read(ss, ws = "West of Gantry Plot Layout")
53+
west_of_gantry_plot_layout %>% kable
54+
```
55+
56+
https://docs.google.com/spreadsheets/d/1Nfabx_n1rNlO6NW3olD8MAibJ3KHnOMmMwOYYw4wwGc/pubhtml?gid=728631369&amp;single=true
57+

0 commit comments

Comments
 (0)