Skip to content

Commit d6333c0

Browse files
committed
Small primer fixing
1 parent d6c5472 commit d6333c0

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Vaulot D., Geisen S., Mahé F., Bass D. 2020. pr2-primers: an 18S rRNA primer da
4646

4747
### Versions
4848

49-
1.1 - 2021-05-17
49+
1.1.0 - 2021-05-17
5050
* Panel to test individual primer or probes.
5151
* Add new primers and primer sets.
5252

R_scripts/script_update_shiny_files.R

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ cat(readChar(file_param, 1e5))
3939

4040
update_pr2 = FALSE
4141
update_new_primer_sets = FALSE
42+
update_stats_primer_sets = FALSE
4243

4344
# ===========================================================
4445
# Primer database
@@ -116,7 +117,7 @@ export(primer_sets, file = here(file_name), firstActiveRow = 2)
116117

117118

118119
# ===========================================================
119-
# PR2 database version 4.12.
120+
# Update PR2 database - current version 4.12.
120121
# ===========================================================
121122

122123
if (update_pr2){
@@ -145,9 +146,9 @@ if (update_pr2){
145146

146147
# ===========================================================
147148
# Build the file for all primer sets
149+
#
150+
# Note: This is to be done only when new primer sets are computed
148151
# ===========================================================
149-
150-
# This is to be done only when new primer sets are computed
151152

152153
if (update_new_primer_sets){
153154

@@ -180,8 +181,17 @@ if (update_new_primer_sets){
180181

181182
}
182183

184+
183185
# ===========================================================
184-
# Update primer sets and create labels
186+
# Update primer sets stats
187+
#
188+
# Note: This is to be done only when new primer sets are computed
189+
# ===========================================================
190+
191+
192+
if (update_stats_primer_sets){
193+
# ===========================================================
194+
# 1- Update primer sets and create labels
185195
# ===========================================================
186196

187197
primer_sets <- primer_sets %>%
@@ -214,7 +224,7 @@ primer_sets_labels <- primer_sets %>%
214224
specificity)
215225

216226
# ===========================================================
217-
# Summarize matches
227+
# 2 - Summarize matches
218228
# ===========================================================
219229

220230
pr2_match_final <- readRDS(file=here(str_c("R_paper/output/pr2_match_", gene_selected ,"_mismatches_", max_mismatch, ".rds")))
@@ -333,4 +343,8 @@ pr2_match_final <- readRDS(file=here(str_c("R_paper/output/pr2_match_", gene_sel
333343

334344
saveRDS(pr2_match_summary_primer_set, file=here(str_c("R_paper/output/pr2_match_", gene_selected ,"_mismatches_", max_mismatch, "_summary.rds")))
335345
saveRDS(pr2_match_summary_primer_set_sg, file=here(str_c("R_paper/output/pr2_match_", gene_selected ,"_mismatches_", max_mismatch, "_summary_sg.rds")))
336-
saveRDS(pr2_match_summary_primer_set_class, file=here(str_c("R_paper/output/pr2_match_", gene_selected ,"_mismatches_", max_mismatch, "_summary_class.rds")))
346+
saveRDS(pr2_match_summary_primer_set_class, file=here(str_c("R_paper/output/pr2_match_", gene_selected ,"_mismatches_", max_mismatch, "_summary_class.rds")))
347+
348+
}
349+
350+

data/primer_sets.rds

-8 Bytes
Binary file not shown.

data/primers.rds

-14 Bytes
Binary file not shown.

readme_docker.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
## Major steps
44

55
1. Make sure that the shiny application works on R studio
6-
1. Can run docker
76
2. Build docker file
87
* from shiny-verse
9-
* Install libraries as needed
8+
* Install packages as needed (load install_packages.R)
109
* Use the shiny-server command
1110
3. Test docker locally
12-
4. Upload to Google cloud
13-
* Set up neough memory (2 Go for pr2 primers)
14-
5. Upload to Docker web site
11+
4. Upload to GitHub, this will automatically force compilation on Google cloud and Docker site.
12+
13+
If the Docker application has not been yet uploaded to Google
14+
1. Upload to Google cloud
15+
* Set up enough memory (2 Go for pr2 primers)
16+
2. Upload to Docker web site
1517

1618
## Building docker image
1719

0 commit comments

Comments
 (0)