Skip to content

Commit 3debc3a

Browse files
committed
testing emojis
1 parent e6ef5d3 commit 3debc3a

File tree

5 files changed

+40
-20
lines changed

5 files changed

+40
-20
lines changed

06-web-tools.Rmd

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ NOTE: In cases where long list of features is provided, STRING may chnage some o
116116
STRING generates multiple tabs as output, shown here:
117117

118118
<!-- ![](images/string-results-tabs.png){ width=100% } -->
119-
```{r, echo=FALSE, out.width="100%", fig.align = "center", fig.cap="Results tabs in STRING"}
119+
```{r, echo=FALSE, eval=TRUE, out.width="100%", fig.align = "center", fig.cap="Results tabs in STRING"}
120120
# out.width="50%",
121121
knitr::include_graphics("images/string-results-tabs.png")
122122
```
@@ -337,7 +337,7 @@ The leading edge column has three values:
337337
- signal: They contribute 40% of the enrichment signal, highlighting their importance in driving the association between this gene set and the biological phenotype being studied.
338338

339339

340-
#### **Challenge:** How different ranking metrics impact the output? {- .challenge}
340+
#### **Challenge:** How do different ranking metrics impact the output? {- .challenge}
341341

342342
Run GSEA analysis using Hallmark gene sets with two metrics (tTest and Ratio_of_Classes). What are the upregulated terms (FDR < 0.1) in the `Diff` class, based on the t-test and Ratio of Classes metrics?
343343

@@ -358,3 +358,10 @@ Why might the HALLMARK_CHOLESTEROL_HOMEOSTASIS gene set be upregulated specifica
358358

359359
Reactome is an open-source database of curated biological pathways across species, offering pathway maps and enrichment tools to analyse gene lists in a pathway-focused context. It’s ideal for visualising data within established biochemical and cellular processes.
360360

361+
Some content with emojis:
362+
363+
- ❓ What do you think about this question?
364+
365+
- 🤔 I'm thinking about how to solve this.
366+
367+

_output.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
bookdown::bs4_book:
22
css: style.css
3+
# includes:
4+
# in_header: custom-header.html
35
# before_body: custom.js
6+
# includes:
7+
# in_header: custom.js
48
theme:
59
primary: "#1D0F81"
610
repo: https://github.com/MonashBioinformaticsPlatfor/Functional_Enrichment_BioCommons_2024

custom-header.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script>
2+
document.addEventListener("DOMContentLoaded", function () {
3+
const headings = document.querySelectorAll('h1');
4+
headings.forEach(heading => {
5+
if (heading.textContent.includes("Day 1") || heading.textContent.includes("Day 2")) {
6+
heading.style.fontSize = "2.5em";
7+
heading.style.fontWeight = "bold";
8+
heading.style.textAlign = "center";
9+
}
10+
});
11+
});
12+
</script>

custom.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
document.addEventListener("DOMContentLoaded", function () {
2-
const headers = document.querySelectorAll(".book-toc li a");
3-
headers.forEach(header => {
4-
header.addEventListener("click", function () {
5-
const parentLi = header.parentElement;
6-
if (parentLi.classList.contains("active")) {
7-
parentLi.classList.remove("active");
8-
} else {
9-
parentLi.classList.add("active");
10-
}
2+
const headings = document.querySelectorAll('h1');
3+
headings.forEach(heading => {
4+
if (heading.textContent.includes("Day 1") || heading.textContent.includes("Day 2")) {
5+
heading.style.fontSize = "2.5em";
6+
heading.style.fontWeight = "bold";
7+
heading.style.textAlign = "center";
8+
}
119
});
12-
});
1310
});

style.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/*
2-
table {
3-
max-width: 500px;
4-
border-spacing: 0px;
5-
width: auto;
6-
}
71

8-
th, td {
9-
padding: 2px 5px;
2+
/*
3+
.book h1:contains("Day 1"),
4+
.book h1:contains("Day 2") {
5+
font-size: 2.5em;
6+
font-weight: bold;
7+
text-align: center;
8+
margin-top: 1em;
9+
margin-bottom: 0.5em;
1010
}
1111
*/
1212

0 commit comments

Comments
 (0)