Skip to content

Commit 5cc4172

Browse files
Render bookdown
1 parent 1359fbe commit 5cc4172

36 files changed

+299
-75
lines changed

docs/03-writing_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ devtools::session_info()
518518
## collate en_US.UTF-8
519519
## ctype en_US.UTF-8
520520
## tz Etc/UTC
521-
## date 2024-06-14
521+
## date 2024-09-04
522522
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
523523
##
524524
## ─ Packages ───────────────────────────────────────────────────────────────────

docs/03-writing_code_activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ devtools::session_info()
5353
## collate en_US.UTF-8
5454
## ctype en_US.UTF-8
5555
## tz Etc/UTC
56-
## date 2024-06-14
56+
## date 2024-09-04
5757
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
5858
##
5959
## ─ Packages ───────────────────────────────────────────────────────────────────

docs/04-refactoring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ proc.time() - start_time
559559

560560
```
561561
## user system elapsed
562-
## 8.467 0.003 8.469
562+
## 8.472 0.000 8.472
563563
```
564564

565565
:::{.query}
@@ -587,7 +587,7 @@ proc.time() - start_time
587587

588588
```
589589
## user system elapsed
590-
## 0.716 0.575 0.628
590+
## 0.744 0.600 0.646
591591
```
592592

593593
The `outer()` function performs the same calculation as the nested loop in the original code, but more efficiently. It returns a matrix of all possible combinations of x and y values, with each element of the matrix being the product of the corresponding x and y values. The `rowSums()` function is then used to sum the elements of each row of the matrix, which is equivalent to summing the products of x and y for each index `i` in the original loop. This method avoids the need for the nested loop, resulting in a faster and more efficient computation.
@@ -615,7 +615,7 @@ proc.time() - start_time
615615

616616
```
617617
## user system elapsed
618-
## 0.310 0.291 0.255
618+
## 0.364 0.259 0.262
619619
```
620620

621621
One optimized way to perform the same calculation is by using the `%*%` operator to perform matrix multiplication. This can be done by converting x and y to matrices and transposing one of them so that their dimensions align for matrix multiplication. This code should be much faster than the original implementation because it takes advantage of highly optimized matrix multiplication algorithms in R.

docs/05-annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ devtools::session_info()
386386
## collate en_US.UTF-8
387387
## ctype en_US.UTF-8
388388
## tz Etc/UTC
389-
## date 2024-06-14
389+
## date 2024-09-04
390390
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
391391
##
392392
## ─ Packages ───────────────────────────────────────────────────────────────────

docs/05-annotation_activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ devtools::session_info()
192192
## collate en_US.UTF-8
193193
## ctype en_US.UTF-8
194194
## tz Etc/UTC
195-
## date 2024-06-14
195+
## date 2024-09-04
196196
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
197197
##
198198
## ─ Packages ───────────────────────────────────────────────────────────────────

docs/404.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,19 @@ <h1>Page not found</h1>
391391
<p>You may want to try searching to find the page's new location, or use
392392
the table of contents to find the page you are looking for.</p>
393393
</div>
394+
395+
<hr>
396+
<center>
397+
<div class="container">
398+
<iframe class="responsive-iframe" src="https://c-savonen.shinyapps.io/widget-survey/?course_name=ai_programming" style="width: 400px; height: 220px; overflow: auto;"></iframe>
399+
</div>
400+
</div>
401+
</center>
402+
394403
<hr>
395-
<center>
404+
<center>
396405
<div class="footer">
397406
All illustrations <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY. </a>
398-
<br>
399407
All other materials <a href= "https://creativecommons.org/licenses/by/4.0/"> CC-BY </a> unless noted otherwise.
400408
<a href="https://hutchdatascience.org/" target="_blank"><img src="https://hutchdatascience.org/images/crazy-idea-wide.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
401409
</div>

docs/About.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Tools Used:
3838
## collate en_US.UTF-8
3939
## ctype en_US.UTF-8
4040
## tz Etc/UTC
41-
## date 2024-06-14
41+
## date 2024-09-04
4242
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
4343
##
4444
## ─ Packages ───────────────────────────────────────────────────────────────────

docs/about-the-authors.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ <h1>About the Authors<a href="about-the-authors.html#about-the-authors" class="a
472472
## collate en_US.UTF-8
473473
## ctype en_US.UTF-8
474474
## tz Etc/UTC
475-
## date 2024-06-14
475+
## date 2024-09-04
476476
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
477477
##
478478
## ─ Packages ───────────────────────────────────────────────────────────────────
@@ -538,11 +538,19 @@ <h1>About the Authors<a href="about-the-authors.html#about-the-authors" class="a
538538
-->
539539

540540
</div>
541+
542+
<hr>
543+
<center>
544+
<div class="container">
545+
<iframe class="responsive-iframe" src="https://c-savonen.shinyapps.io/widget-survey/?course_name=ai_programming" style="width: 400px; height: 220px; overflow: auto;"></iframe>
546+
</div>
547+
</div>
548+
</center>
549+
541550
<hr>
542-
<center>
551+
<center>
543552
<div class="footer">
544553
All illustrations <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY. </a>
545-
<br>
546554
All other materials <a href= "https://creativecommons.org/licenses/by/4.0/"> CC-BY </a> unless noted otherwise.
547555
<a href="https://hutchdatascience.org/" target="_blank"><img src="https://hutchdatascience.org/images/crazy-idea-wide.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
548556
</div>

docs/ai-for-bioinformatics-hands-on-exercise.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,19 @@ <h2><span class="header-section-number">23.2</span> Questions<a href="ai-for-bio
426426

427427

428428
</div>
429+
430+
<hr>
431+
<center>
432+
<div class="container">
433+
<iframe class="responsive-iframe" src="https://c-savonen.shinyapps.io/widget-survey/?course_name=ai_programming" style="width: 400px; height: 220px; overflow: auto;"></iframe>
434+
</div>
435+
</div>
436+
</center>
437+
429438
<hr>
430-
<center>
439+
<center>
431440
<div class="footer">
432441
All illustrations <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY. </a>
433-
<br>
434442
All other materials <a href= "https://creativecommons.org/licenses/by/4.0/"> CC-BY </a> unless noted otherwise.
435443
<a href="https://hutchdatascience.org/" target="_blank"><img src="https://hutchdatascience.org/images/crazy-idea-wide.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
436444
</div>

docs/ai-for-bioinformatics.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,19 @@ <h2><span class="header-section-number">21.3</span> Using these topics for Bioin
424424
</div>
425425
</div>
426426
</div>
427+
428+
<hr>
429+
<center>
430+
<div class="container">
431+
<iframe class="responsive-iframe" src="https://c-savonen.shinyapps.io/widget-survey/?course_name=ai_programming" style="width: 400px; height: 220px; overflow: auto;"></iframe>
432+
</div>
433+
</div>
434+
</center>
435+
427436
<hr>
428-
<center>
437+
<center>
429438
<div class="footer">
430439
All illustrations <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY. </a>
431-
<br>
432440
All other materials <a href= "https://creativecommons.org/licenses/by/4.0/"> CC-BY </a> unless noted otherwise.
433441
<a href="https://hutchdatascience.org/" target="_blank"><img src="https://hutchdatascience.org/images/crazy-idea-wide.png" style="width: 80%; padding-left: 15px; padding-top: 8px;"</a>
434442
</div>

0 commit comments

Comments
 (0)