diff --git a/pr-preview/pr-325/_sources/introduction/raw_data_processing.md b/pr-preview/pr-325/_sources/introduction/raw_data_processing.md index 76af466d..bbb6a5e8 100644 --- a/pr-preview/pr-325/_sources/introduction/raw_data_processing.md +++ b/pr-preview/pr-325/_sources/introduction/raw_data_processing.md @@ -782,7 +782,7 @@ ref_dir="toy_human_ref" # Fetch CB permit list ## the right chevron (>) redirects the STDOUT to a file. -wget -qO- https://raw.githubusercontent.com/10XGenomics/cellranger/master/lib/python/cellranger/barcodes/3M-february-2018.txt.gz | gunzip - > 3M-february-2018.txt +wget -qO- https://github.com/f0t1h/3M-february-2018/raw/master/3M-february-2018.txt.gz | gunzip - > 3M-february-2018.txt ``` diff --git a/pr-preview/pr-325/_sources/preprocessing_visualization/quality_control.ipynb b/pr-preview/pr-325/_sources/preprocessing_visualization/quality_control.ipynb index fbeeb772..4f3ab5b2 100644 --- a/pr-preview/pr-325/_sources/preprocessing_visualization/quality_control.ipynb +++ b/pr-preview/pr-325/_sources/preprocessing_visualization/quality_control.ipynb @@ -963,589 +963,11 @@ "* Lukas Heumos\n", "* Lukas Zappia\n" ] - }, - { - "cell_type": "markdown", - "id": "1c468d05", - "metadata": {}, - "source": [ - "# Test: Quiz with pure html\n", - "## multiple choice question" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "id": "b9926ce3", - "metadata": { - "tags": [ - "remove_input" - ] - }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "\n", - "
\n", - "

What is the capital of France?

\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "

\n", - "\n", - " \n", - "

\n", - " ✔ Correct Answer: Paris\n", - "

\n", - "
\n", - "\n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "\n", - " \n", - "\n", - "
\n", - "

Which planet is known as the Red Planet?

\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "

\n", - "\n", - " \n", - "

\n", - " ✔ Correct Answer: Mars\n", - "

\n", - "
\n", - "\n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "\n", - " \n", - "\n", - "
\n", - "

Who wrote 'Hamlet'?

\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "
\n", - " \n", - "

\n", - "\n", - " \n", - "

\n", - " ✔ Correct Answer: Shakespeare\n", - "

\n", - "
\n", - "\n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "import sys\n", - "\n", - "sys.path.append(\"../src\")\n", - "\n", - "from lib import multiple_choice_question\n", - "\n", - "# Example MCQs With Explanations for Incorrect Answers\n", - "multiple_choice_question(\n", - " \"q1\",\n", - " \"What is the capital of France?\",\n", - " [\"Paris\", \"London\", \"Berlin\", \"Madrid\"],\n", - " \"Paris\",\n", - " explanations={\n", - " \"London\": \"London is the capital of the UK, not France.\",\n", - " \"Berlin\": \"Berlin is the capital of Germany, not France.\",\n", - " \"Madrid\": \"Madrid is the capital of Spain, not France.\",\n", - " },\n", - ")\n", - "\n", - "multiple_choice_question(\n", - " \"q2\",\n", - " \"Which planet is known as the Red Planet?\",\n", - " [\"Earth\", \"Mars\", \"Venus\", \"Jupiter\"],\n", - " \"Mars\",\n", - " explanations={\n", - " \"Earth\": \"Earth is not red; it is blue due to water.\",\n", - " \"Venus\": \"Venus is covered with thick clouds, not red.\",\n", - " \"Jupiter\": \"Jupiter is a gas giant with a Great Red Spot, but not called the Red Planet.\",\n", - " },\n", - ")\n", - "\n", - "multiple_choice_question(\n", - " \"q3\",\n", - " \"Who wrote 'Hamlet'?\",\n", - " [\"Shakespeare\", \"Hemingway\", \"Austen\", \"Dickens\"],\n", - " \"Shakespeare\",\n", - " explanations={\n", - " \"Hemingway\": \"Hemingway was a 20th-century writer known for 'The Old Man and the Sea'.\",\n", - " \"Austen\": \"Jane Austen wrote 'Pride and Prejudice', not 'Hamlet'.\",\n", - " \"Dickens\": \"Charles Dickens is famous for 'Oliver Twist' and 'A Christmas Carol'.\",\n", - " },\n", - ")" - ] - }, - { - "cell_type": "markdown", - "id": "a8c1849e", - "metadata": {}, - "source": [ - "## flip card" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "id": "f567ab22", - "metadata": { - "tags": [ - "remove_input" - ] - }, - "outputs": [ - { - "data": { - "text/html": [ - "\n", - " \n", - "\n", - "
\n", - "
\n", - "
\n", - " This is a simple question\n", - "
\n", - "
\n", - " a simple answer\n", - "
\n", - "
\n", - "
\n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "\n", - " \n", - "\n", - "
\n", - "
\n", - "
\n", - " this is another question, but with long answer\n", - "
\n", - "
\n", - " back_font_size must be adjusted for long answers\n", - "
\n", - "
\n", - "
\n", - " \n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "def flip_card(\n", - " question_id,\n", - " question,\n", - " answer,\n", - " front_color=\"#3965a3\",\n", - " back_color=\"#a8d480\",\n", - " text_color=\"white\",\n", - " front_font_size=20,\n", - " back_font_size=20,\n", - "):\n", - " html_code = f\"\"\"\n", - " \n", - "\n", - "
\n", - "
\n", - "
\n", - " {question}\n", - "
\n", - "
\n", - " {answer}\n", - "
\n", - "
\n", - "
\n", - " \n", - " \"\"\"\n", - " display(HTML(html_code))\n", - "\n", - "\n", - "# Example Flip Cards with Different Back Font Sizes\n", - "flip_card(\"q1\", \"This is a simple question\", \"a simple answer\")\n", - "flip_card(\n", - " \"q2\",\n", - " \"this is another question, but with long answer\",\n", - " \"back_font_size must be adjusted for long answers\",\n", - " front_font_size=20,\n", - " back_font_size=15,\n", - ")" - ] } ], "metadata": { "kernelspec": { - "display_name": "bp2", + "display_name": "book", "language": "python", "name": "python3" }, @@ -1559,7 +981,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.8" + "version": "3.11.8" } }, "nbformat": 4, diff --git a/pr-preview/pr-325/_sources/src/lib.py b/pr-preview/pr-325/_sources/src/lib.py index 8c90e58a..f1e34fc3 100644 --- a/pr-preview/pr-325/_sources/src/lib.py +++ b/pr-preview/pr-325/_sources/src/lib.py @@ -1,6 +1,21 @@ from IPython.display import HTML, display +# use by doing: +# import sys +# sys.path.append("../src") +# from lib import multiple_choice_question +# multiple_choice_question( +# "q1", +# "What is the capital of France?", +# ["Paris", "London", "Berlin", "Madrid"], +# "Paris", +# explanations={ +# "London": "London is the capital of the UK, not France.", +# "Berlin": "Berlin is the capital of Germany, not France.", +# "Madrid": "Madrid is the capital of Spain, not France.", +# }, +# ) def multiple_choice_question( question_id, question, @@ -62,12 +77,101 @@ def multiple_choice_question( let feedback = document.getElementById(feedbackId); if (element.value === correct) {{ feedback.innerHTML = "✅ Correct!"; - feedback.style.color = "green"; + feedback.style.color = "#a8d480"; }} else {{ feedback.innerHTML = "❌ Incorrect! " + explanation; - feedback.style.color = "red"; + feedback.style.color = "#EE4B2B"; }} }} """ display(HTML(html_code)) + + +# use by doing: +# import sys +# sys.path.append("../src") +# from lib import flip_card +# flip_card("q1", "This is a simple question", "a simple answer") +def flip_card( + question_id, + question, + answer, + front_color="#3965a3", + back_color="#a8d480", + text_color="white", + front_font_size=20, + back_font_size=20, +): + html_code = f""" + + +
+
+
+ {question} +
+
+ {answer} +
+
+
+ + """ + display(HTML(html_code)) diff --git a/pr-preview/pr-325/acknowledgements.html b/pr-preview/pr-325/acknowledgements.html index 4768b527..70f5c59d 100644 --- a/pr-preview/pr-325/acknowledgements.html +++ b/pr-preview/pr-325/acknowledgements.html @@ -8,7 +8,7 @@ - 50. Acknowledgements — Single-cell best practices + 49. Acknowledgements — Single-cell best practices @@ -67,8 +67,8 @@ - - + + @@ -175,93 +175,92 @@

Preprocessing and visualization

Identifying cellular structure

Inferring trajectories

Dealing with conditions

Modeling mechanisms

Deconvolution

Chromatin Accessibility

Spatial omics

Surface protein

Adaptive immune receptor repertoire

Multimodal integration

Reproducibility

Outlook

Acknowledgements

Glossary

@@ -474,7 +473,7 @@

Acknowledgements

-

50. Acknowledgements#

+

49. Acknowledgements#

It is often times easy to forget that many of the biggest advancements in science are only possible because of some seemingly unimportant experiments in the past. The single-cell field in all of its entirety is built on top of decades of fundamental research in biology and computer science. Without the fundamental sequencing and raw data processing techniques, we would not even dream of sequencing single cells. @@ -522,7 +521,7 @@

50. Acknowledgements

previous

-

49. Outlook

+

48. Outlook

50. Acknowledgements

next

-

51. Glossary

+

50. Glossary

diff --git a/pr-preview/pr-325/air_repertoire/clonotype.html b/pr-preview/pr-325/air_repertoire/clonotype.html index 2c0743a6..69e519a5 100644 --- a/pr-preview/pr-325/air_repertoire/clonotype.html +++ b/pr-preview/pr-325/air_repertoire/clonotype.html @@ -8,7 +8,7 @@ - 40. Clonotype analysis — Single-cell best practices + 39. Clonotype analysis — Single-cell best practices @@ -67,8 +67,8 @@ - - + + @@ -175,93 +175,92 @@

Preprocessing and visualization

Identifying cellular structure

Inferring trajectories

Dealing with conditions

Modeling mechanisms

Deconvolution

Chromatin Accessibility

Spatial omics

Surface protein

Adaptive immune receptor repertoire

Multimodal integration

Reproducibility

Outlook

Acknowledgements

Glossary

@@ -471,26 +470,26 @@

Contents