mirror of
https://github.com/gladstone-institutes/Bioinformatics-Workshops.git
synced 2025-11-30 09:45:43 -08:00
finish up part 2
This commit is contained in:
parent
b16ecd33a9
commit
6380a82826
12 changed files with 13664 additions and 225 deletions
|
|
@ -2562,7 +2562,7 @@ class CountdownTimer {
|
|||
<section>
|
||||
<h1 class="title">Introduction to R Data Analysis - Part 1</h1>
|
||||
<h2 class="author">Natalie Elphick</h2>
|
||||
<h3 class="date">January 22nd</h3>
|
||||
<h3 class="date">January 22nd, 2024</h3>
|
||||
</section>
|
||||
|
||||
<section id="section" class="slide level2">
|
||||
|
|
@ -2593,16 +2593,15 @@ Matlab etc.)</li>
|
|||
<section id="part-1" class="slide level2">
|
||||
<h2>Part 1:</h2>
|
||||
<ol type="1">
|
||||
<li><p>What is R and why should you use it?</p></li>
|
||||
<li><p>The RStudio interface</p></li>
|
||||
<li><p>File types</p></li>
|
||||
<li><p>Error messages</p></li>
|
||||
<li><p>Variables</p></li>
|
||||
<li><p>Types & data structures</p>
|
||||
<p><em>10 min break</em></p></li>
|
||||
<li><p>Math and logic operations</p></li>
|
||||
<li><p>Functions and libraries</p></li>
|
||||
<li><p>Reading data into R</p></li>
|
||||
<li>What is R and why should you use it?</li>
|
||||
<li>The RStudio interface</li>
|
||||
<li>File types</li>
|
||||
<li>Error messages</li>
|
||||
<li>Variables</li>
|
||||
<li>Types & data structures</li>
|
||||
<li>Math and logic operations</li>
|
||||
<li>Functions and libraries</li>
|
||||
<li>Reading data into R</li>
|
||||
</ol>
|
||||
</section>
|
||||
<section>
|
||||
|
|
@ -2732,13 +2731,13 @@ and periods</li>
|
|||
one style of names</li>
|
||||
</ul>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Snake case</span></span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>dog_breeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>,<span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a>dog_breeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>, <span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span>
|
||||
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a><span class="co"># Period separated</span></span>
|
||||
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a>dog.breeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>,<span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span>
|
||||
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a>dog.breeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>, <span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span>
|
||||
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a></span>
|
||||
<span id="cb3-7"><a href="#cb3-7" aria-hidden="true" tabindex="-1"></a><span class="co"># Camel case</span></span>
|
||||
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a>DogBreeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>,<span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span></code></pre></div>
|
||||
<span id="cb3-8"><a href="#cb3-8" aria-hidden="true" tabindex="-1"></a>DogBreeds <span class="ot"><-</span> <span class="fu">c</span>(<span class="st">"Labrador Retriever"</span>, <span class="st">"Akita"</span>, <span class="st">"Bulldog"</span>)</span></code></pre></div>
|
||||
</section>
|
||||
<section id="poll-2" class="slide level2">
|
||||
<h2>Poll 2</h2>
|
||||
|
|
@ -2821,7 +2820,7 @@ types/structures</strong> (ex. nested lists)</li>
|
|||
<section id="min-break" class="title-slide slide level1">
|
||||
<h1>10 min break</h1>
|
||||
<center>
|
||||
<div class="countdown" id="timer_0b16aa2b" data-update-every="1" tabindex="0" style="right:0;bottom:0;margin:5%;padding:50px;font-size:5em;position: relative; width: min-content;">
|
||||
<div class="countdown" id="timer_386e6f50" data-update-every="1" tabindex="0" style="right:0;bottom:0;margin:5%;padding:50px;font-size:5em;position: relative; width: min-content;">
|
||||
<div class="countdown-controls"><button class="countdown-bump-down">−</button><button class="countdown-bump-up">+</button></div>
|
||||
<code class="countdown-time"><span class="countdown-digits minutes">10</span><span class="countdown-digits colon">:</span><span class="countdown-digits seconds">00</span></code>
|
||||
</div>
|
||||
|
|
@ -2966,131 +2965,6 @@ RNA-Seq Analysis Using R</a>
|
|||
<li>Feb 1, 2024 (9:30am-12:00pm)</li>
|
||||
</ul></li>
|
||||
</ol>
|
||||
</section></section>
|
||||
<section>
|
||||
<section id="chatgpt-tips-for-r" class="title-slide slide level1">
|
||||
<h1>ChatGPT Tips for R</h1>
|
||||
|
||||
</section>
|
||||
<section id="general-tips" class="slide level2">
|
||||
<h2>General Tips</h2>
|
||||
<ul>
|
||||
<li>Always confirm ChatGPT’s outputs are correct</li>
|
||||
<li>Provide as much detail as possible about the problem in the 1st
|
||||
prompt</li>
|
||||
<li>Use separate chats for separate tasks/projects</li>
|
||||
<li>Try the ‘Custom Instructions’ function that adds additional
|
||||
information to every prompt</li>
|
||||
<li>Can visit webpages (GPT 4 only), which can help get more specific
|
||||
answers</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="code-tips" class="slide level2">
|
||||
<h2>Code Tips</h2>
|
||||
<ul>
|
||||
<li>Commented R code yields better responses in my experience</li>
|
||||
<li>Provide the code and error message in the same prompt</li>
|
||||
<li>ChatGPT can work well to convert syntax and improve your code:
|
||||
<ul>
|
||||
<li>“Turn this loop into a function : [your code]”</li>
|
||||
<li>“Is there a better way to do this : [your code]”</li>
|
||||
</ul></li>
|
||||
<li>Check out the file:
|
||||
<code>example_code/1_convert_syntax_example.R</code> for an example use
|
||||
case</li>
|
||||
</ul>
|
||||
</section></section>
|
||||
<section>
|
||||
<section id="finding-r-packages" class="title-slide slide level1">
|
||||
<h1>Finding R Packages</h1>
|
||||
|
||||
</section>
|
||||
<section id="key-questions" class="slide level2">
|
||||
<h2>Key Questions</h2>
|
||||
<ul>
|
||||
<li>What assay was the package designed for?</li>
|
||||
<li>When was the last release?</li>
|
||||
<li>Is it maintained (frequent updates)?</li>
|
||||
<li>Does it work on all operating systems?</li>
|
||||
<li>Are other people using it? (citations)</li>
|
||||
<li>Do they respond to github issues?</li>
|
||||
<li>Is there a benchmarking paper?</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="bioconductor-and-cran" class="slide level2">
|
||||
<h2>BioConductor and CRAN</h2>
|
||||
<ul>
|
||||
<li><p>Both of these have stringent requirements for packages they host
|
||||
(eg. for BioConductor they have to run on all major operating
|
||||
systems)</p></li>
|
||||
<li><p>Prefer BioConductor packages if available over CRAN</p></li>
|
||||
<li><p>Prefer CRAN packages over ones only hosted on GitHub</p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="start-with-the-assay" class="slide level2">
|
||||
<h2>Start with the Assay</h2>
|
||||
<ul>
|
||||
<li>Click <a href="https://www.bioconductor.org/packages/release/BiocViews.html#___Sequencing">here</a>
|
||||
to go to BioC views</li>
|
||||
<li>Pick the assay you want to analyse</li>
|
||||
<li>Pick the type of analysis you want to do</li>
|
||||
<li>Find a package that does it</li>
|
||||
<li>Find benchmarking papers to narrow the list of packages down</li>
|
||||
<li>Find the vignette on the package page and refer to the manual for
|
||||
any questions not covered by it</li>
|
||||
</ul>
|
||||
</section></section>
|
||||
<section>
|
||||
<section id="additional-resources" class="title-slide slide level1">
|
||||
<h1>Additional Resources</h1>
|
||||
|
||||
</section>
|
||||
<section id="r-1" class="slide level2">
|
||||
<h2>R</h2>
|
||||
<ul>
|
||||
<li><p><a href="https://bookdown.org/yihui/rmarkdown/how-to-read-this-book.html">R
|
||||
Markdown: The Definitive Guide</a> : Excellent R markdown
|
||||
reference</p></li>
|
||||
<li><p><a href="https://r4ds.hadley.nz/">R for Data Science</a></p></li>
|
||||
<li><p><a href="https://ggplot2-book.org/">ggplot2: elegant graphics for
|
||||
data analysis</a></p></li>
|
||||
<li><p><a href="https://adv-r.hadley.nz/">Advanced R</a></p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="statistics" class="slide level2">
|
||||
<h2>Statistics</h2>
|
||||
<ul>
|
||||
<li><a href="https://bookdown.org/steve_midway/DAR">Data Analysis in
|
||||
R</a> : This book has more statistics details than <em>R for Data
|
||||
Science</em></li>
|
||||
<li><a href="https://bookdown.org/steve_midway/DAR/glms-generalized-linear-models.html">Generalized
|
||||
Linear Models</a><br />
|
||||
</li>
|
||||
<li><a href="https://bookdown.org/steve_midway/DAR/random-effects.html">Random
|
||||
Effects</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="rna-seq-analysis" class="slide level2">
|
||||
<h2>RNA-seq Analysis</h2>
|
||||
<ul>
|
||||
<li><a href="https://rnaseq.uoregon.edu/">RNA-seqlopedia</a> :
|
||||
Everything you need to know about RNA-seq experiments</li>
|
||||
<li><a href="https://luisvalesilva.com/datasimple/rna-seq_units.html">RNA-seq
|
||||
Expression Units</a> : Blog post on understanding common units</li>
|
||||
<li><a href="https://bioconductor.org/books/3.17/OSCA.intro/index.html">Introduction
|
||||
to Single-Cell Analysis with Bioconductor</a> : Covers the basics of
|
||||
scRNA-seq analysis in R</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="dimensional-reduction" class="slide level2">
|
||||
<h2>Dimensional Reduction</h2>
|
||||
<ul>
|
||||
<li><a href="https://uw.pressbooks.pub/appliedmultivariatestatistics/chapter/pca/">Tutorial
|
||||
on PCA</a> : PCA explained with R code examples</li>
|
||||
<li><a href="https://pair-code.github.io/understanding-umap/">Understanding
|
||||
UMAP</a> : Short explanation with great visualizations, mainly useful
|
||||
for scRNA-seq analysis</li>
|
||||
</ul>
|
||||
</section></section>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
10031
docs/Intro_to_R_data_analysis_part_2.html
Normal file
10031
docs/Intro_to_R_data_analysis_part_2.html
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -8,6 +8,7 @@
|
|||
<li><a href="https://gladstone-institutes.github.io/Bioinformatics-Workshops/Intro_to_Unix_Part_1.html">Introduction to Unix - Part 1</li>
|
||||
<li><a href="https://gladstone-institutes.github.io/Bioinformatics-Workshops/Intro_to_Unix_Part_2.html">Introduction to Unix - Part 2</li>
|
||||
<li><a href="https://gladstone-institutes.github.io/Bioinformatics-Workshops/Intro_to_R_data_analysis_part_1.html">Introduction to R Data Analysis - Part 1</li>
|
||||
<li><a href="https://gladstone-institutes.github.io/Bioinformatics-Workshops/Intro_to_R_data_analysis_part_2.html">Introduction to R Data Analysis - Part 2</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue