C-MOOR strives to break down barriers to scientific participation by providing online access to real scientific data, analytical tools, mentorship, and opportunities to interact with real scientists. If you’ve never done any programming before, no worries! We’ve got tutorials to get you up to speed. Click on one of the links below for advice on how to get started, depending on your background.
If you want to dig deeper in to a particular topic, you will need access to R and RStudio so that you can run code yourself. You can do this in one of two ways:
Install base R: You can download R from the CRAN repository. Choose your operating system, then download the most recent release of R. Once you’ve downloaded the file, double-click to run it, and it should walk you through the R installation wizard. If you’re not sure about any of the options, choosing the default is a good idea.
Install RStudio: Download RStudio from the RStudio website. Find RStudio Desktop, which is completely free, and click the Download button. Once you’ve downloaded the file, double-click to run it, and it should walk you through the R installation wizard. If you’re not sure about any of the options, choosing the default is a good idea.
Start Up R and RStudio: Once you’ve installed RStudio you should be able to find and run it just like any other program. You can search for it in the search bar, or find it under the Start Menu (for Windows) or Applications (for Mac).
Choose a Tutorial and Get Started!: Find a topic you’re interested in and jump on in! Often tutorials will require you to install additional R packages that are specialized for dealing with particular types of data; instructions for installing any extra packages should be available along with the tutorials.
Most standard R packages can be installed using the install.packages()
command. You will need to enter the name of the package you want to install between the parentheses. For example, to install the learnr
package:
install.packages("learnr")
library()
command: library("learnr")
library()
command.sessionInfo()
command to see all your loaded packages. The most recent package you attached using the library()
command should show up as the first item under “other attached packages”.sessionInfo()
, you can use the following command: grep( "learnr", loadedNamespaces(), value=TRUE )
to see if the learnr
package is loaded. If it loaded successfully, you should see the output [1]"learnr"
. If it did not load, you will see character(0)
.Many R packages for analyzing biological data R are best installed using BioConductor. First you will need to tell R where to find the BioConductor installation instructions, using source("https://bioconductor.org/biocLite.R")
. You will then use the biocLite()
command to install the package. You will need to enter the name of the package you want to install between the parentheses. For example, to install the DESeq2
package:
source("https://bioconductor.org/biocLite.R")
biocLite("DESeq2")
library()
command: library("DESeq2")
library()
command.sessionInfo()
command to see all your loaded packages. The most recent package you attached using the library()
command should show up as the first item under “other attached packages”.sessionInfo()
, you can use the following command: grep( "DESeq2", loadedNamespaces(), value=TRUE )
to see if the DESeq2
package is loaded. If it loaded successfully, you should see the output [1]"DESeq2"
. If it did not load, you will see character(0)
.