Showing posts with label teach R. Show all posts
Showing posts with label teach R. Show all posts

Sunday, January 10, 2021

A Tidy Transcriptomics introduction to RNA-Seq analyses

 

A Tidy Transcriptomics introduction to RNA-Seq analyses


https://stemangiola.github.io/bioc_2020_tidytranscriptomics/articles/tidytranscriptomics.html


Friday, May 12, 2017

*** R learning materials and computational biology

Online courses

Github applied computational genomics
https://github.com/quinlan-lab/applied-computational-genomics

https://github.com/BenLangmead/comp-genomics-class


R programing at Coursera
https://www.coursera.org/learn/r-programming

Data camp https://www.datacamp.com/ 
 introduction, intermediate, and advanced R

Statistics and R
https://www.edx.org/course/statistics-r-harvardx-ph525-1x

http://genomicsclass.github.io/book/pages/classes.html
https://courses.edx.org/courses/HarvardX/PH525.1x/1T2015/info

Quantitative biology workshop
https://www.edx.org/course/quantitative-biology-workshop-mitx-7-qbwx-2

Introduction to Bioconductor: annotation and analysis of genomes and genomics assays
https://www.edx.org/course/introduction-bioconductor-annotation-harvardx-ph525-5x

https://cgondro2.une.edu.au/Rcourse.htm
http://www.springer.com/us/book/9783319144740 . R book, primer to analysis of genomics data using R


Books and articles
An introduction to statistical learning with applications in R
http://www-bcf.usc.edu/~gareth/ISL/index.html


References:
http://hongqinlab.blogspot.com/2013/10/useful-r-materials-for-teaching.html
http://hongqinlab.blogspot.com/2015/06/ngs-tutorials.html


Sunday, March 26, 2017

Sample videos, Developing YouTube video to enhance education and training in bioinformatics and genomics



Selected Bioinformatics Videos


Seletec Computing with R Videos
Other tutorial videos

Animation on herd immunity
https://imgur.com/gallery/8M7q8#J7LANQ4


Wednesday, April 29, 2015

MSM guest lecture on R

Github: https://github.com/hongqin/MSM-guest-lecture

1.What is R? 

Wikipedia entry on R

Why R by Courtney Brown at Emory. 

Why R and beyond.

R blogger that provides recent and often interesting development about R.  

What is R video.

2. Install R to your own computers.

Instructions to download R. 

Install R studio.  RStudio provides a nice GUI to R.

Install packages to R: Video for Windows Version.

3. Introduction to R.


Hong Qin's slides: Overview of R;   Basic programming in RInput & Output in R;

Lydon Walker, getting started with R, an accelerated primer

Coursera course

 4. Simple exercises in R.

Qin's simple.R excises.  Please select 'Raw' and 'save-as' in text format. Unfortunately, web browser seem to automatically add 'txt' to the file name, and Rstudio does not run 'txt' format.  To solve this problem, we can 'create' a new R script, and copy-paste from code from the text file.

(The workshop audience mostly reached this step).

Youtube tutorial converting Excel data to CSV and load into R. 
    The sunflow seed Excel file is here.  

5. Make solution exercise.

Write an R function to calculate how much NaCl needed for X ml of Y mM NaCl solution. 

6. Simple statistical analysis in R.

Simple regression exercise.

7. Advanced training materials.

Multiple regression demo

Hierarchical clustering using cities. CodeVideo.

Laddy Gaga and clustering analysis. Code. Video.

Bioconductor workshop materials.




http://cran.r-project.org/doc/contrib/Seefeld_StatsRBio.pdf



9.   For preparation for the workshop

Wireless connection, laptops, power-outlets are recommended. 
Install packages and data on flash-drives in case internet connection is slow. (This can be a problem when all participants are download at the same time.)
A flow-chart on easel can be used for clarity.

Common problem is to set R working directory. 
 



Wednesday, March 11, 2015

From excel to R,


https://districtdatalabs.silvrback.com/intro-to-r-for-microsoft-excel-users

Monday, January 19, 2015

R/Rstudio tutorial page for BIO125, Spring 2015

This is a dynamic page and will change frequently during Spring semester of 2015.

1.What is R? 

Wikipedia entry on R

Why R by Courtney Brown at Emory. 

Why R and beyond.

R blogger that provides recent and often interesting development about R.  

What is R video (Added after the class).

2. Install R to your own computers.

Instructions to download R. 

Install R studio.  RStudio provides a nice GUI to R.

Install packages to R: Video for Windows Version.

3. Introduction to R.


Hong Qin's slides: Overview of R;   Basic programming in RInput & Output in R;

Lydon Walker, getting started with R, an accelerated primer


 4. Simple exercises in R.

Multiple regression demo

Hierarchical clustering using cities. CodeVideo.

Laddy Gaga and clustering analysis. Code. Video.

Bioconductor workshop materials.




http://cran.r-project.org/doc/contrib/Seefeld_StatsRBio.pdf



Wednesday, November 26, 2014

Elements of Statistical Learning, video, pdf, Hastie, Tibshirani, 2014

Cloned from R-Blogger. 

In January 2014, Stanford University professors Trevor Hastie and Rob Tibshirani (authors of the legendary Elements of Statistical Learning textbook) taught an online course based on their newest textbook, An Introduction to Statistical Learning with Applications in R (ISLR). I found it to be an excellent course in statistical learning (also known as “machine learning”), largely due to the high quality of both the textbook and the video lectures. And as an R user, it was extremely helpful that they included R code to demonstrate most of the techniques described in the book.
If you are new to machine learning (and even if you are not an R user), I highly recommend reading ISLR from cover-to-cover to gain both a theoretical and practical understanding of many important methods for regression and classification. It is available as a free PDF download from the authors’ website.
If you decide to attempt the exercises at the end of each chapter, there is a GitHub repository of solutions provided by students you can use to check your work.
As a supplement to the textbook, you may also want to watch the excellent course lecture videos (linked below), in which Dr. Hastie and Dr. Tibshirani discuss much of the material. In case you want to browse the lecture content, I’ve also linked to the PDF slides used in the videos.

Chapter 1: Introduction (slidesplaylist)

Chapter 2: Statistical Learning (slidesplaylist)

Chapter 3: Linear Regression (slidesplaylist)

Chapter 4: Classification (slidesplaylist)

Chapter 5: Resampling Methods (slidesplaylist)

Chapter 6: Linear Model Selection and Regularization (slidesplaylist)

Chapter 7: Moving Beyond Linearity (slidesplaylist)

Chapter 8: Tree-Based Methods (slidesplaylist)

Chapter 9: Support Vector Machines (slidesplaylist)

Chapter 10: Unsupervised Learning (slidesplaylist)

Interviews (playlist)

ISL Cover 2

Monday, October 27, 2014

bio233 lab, R and Rstudio analyze of serial dilution data

We spent about 1 hour install R and Rstudio. I then told many students to work as a team.
Some students have various windows computers, and their interface were different.

Then many students waited for xlsx package to be installed through wireless. I have to abadon the xlsx approach, and switched to csv approach.

I then let students reviewed their streaked plates. Only 1 plate can be given A-. The rest of them are at B- . About 2/3 of the plates have to be redone (below C).

I let the students try to streak the plates again. Next day, I found out that almost all students failed. Most students seem to pick the old colonies for every streak, meaning that they did not get the idea at all. 


Some students tried to open R code in the ZIP archive directly. This is a common mistake. This problem become more annoying with the different version of operating systems offer different viewing and extraction options. 



Monday, July 22, 2013

R tutorial for Oak Ridge Science Education


Please note that the entire workshop material can be download from its GitHub repository ORAU-R.

1.What is R? 

Wikipedia entry on R

Why R by Courtney Brown at Emory. 

Why R and beyond.

R blogger that provides recent and often interesting development about R.  

What is R video (Added after the class).

2. Install R to your own computers.

Instructions to download R. 

Install R studio.  RStudio provides a nice GUI to R.

Install packages to R: Video for Windows Version.

3. Introduction to R.


Hong Qin's slides: Overview of R;   Basic programming in R; Input & Output in R;

Lydon Walker, getting started with R, an accelerated primer


 4. Simple exercises in R.

Qin's simple.R excises.  Please select 'Raw' and 'save-as' in text format. Unfortunately, web browser seem to automatically add 'txt' to the file name, and Rstudio does not run 'txt' format.  To solve this problem, we can 'create' a new R script, and copy-paste from code from the text file.

(The workshop audience mostly reached this step).

Youtube tutorial converting Excel data to CSV and load into R. 
    The sunflow seed Excel file is here.  

5. Make solution exercise.

Write an R function to calculate how much NaCl needed for X ml of Y mM NaCl solution. 

6. Simple statistical analysis in R.

Simple regression exercise.

7. Advanced training materials.

Multiple regression demo

Hierarchical clustering using cities. Code, Video.

Laddy Gaga and clustering analysis. Code. Video.

Bioconductor workshop materials.




http://cran.r-project.org/doc/contrib/Seefeld_StatsRBio.pdf



9. Discussions on programming workshops.

Titus Brown's blog on teaching programming.

10. My reflections

The main workshop is led by Jame Ferguson and Bob Panoff. There were 9 college biology and 2 high-school biology faculty in the workshop.

I was given 90 minutes. My goal was that audience would be able to install R and Rstudio and run R scripts on their own after the workshop.

I spent 30 minutes on introducing R to the audience, my experience of teaching R and computational genomics to undergraduates. I showed them the GEO database and R interface.  I used the examples of make-solution, hclust on cities and Lady Gaga.  For the next 50 minutes, I let the audience to download and install Rstudio.  A few of them needed my help to down and install R and Rstudio. Most of them were able to run to the simple.R exercise (step 4.a). I run out of time after step 6.

I was somewhat stunned that downloading R code directly from GitHub repository is surprisingly cumbersome.

During the exercise time, a few people were clearly ahead and poked around. Some were especially interested in the GEO2R portal.

Bob mentioned that R has been used in a few other liberal art colleges, including Davidson and Pomona.

At the end of the workshop, I was asked "why do 'we' have to teach R to biology students?". I used my own experiences and argued that R is the state-of-the-art tool for data analysis in biology.


For preparation for the workshop
Wireless connection, laptops, power-outlets are recommended. 
Install packages and data on flash-drives in case internet connection is slow. (This can be a problem when all participants are download at the same time.)
A flow-chart on easel can be used for clarity.