DNA Methylation Sequencing Analysis
  • Introduction
  • Data Preparation
    • Locate the MethPipe Files
    • Download Utilities
    • Download Annotations
    • Annotation File Preparation – Defining Genomic Regions
  • Analysis Work Flow
    • DNA Methylation at Genomic Bins
    • DNA Methylation at CpG Islands
    • DNA Methylation at TFBS
    • DNA Methylation at Various Genic Structure Regions
    • DNA Methylation at Repeat Elements
    • Add CpG Islands Co-localization Information to HMR BED Files
    • Similarity and Differences of HMRs and PMDs from H1 and IMR90
      • HMRs
      • PMDs
  • Visualization Using R
    • Install R Libraries
    • Execute the R Scripts
  • An introduction of UCSC Genome Browser
    • General Usage
    • The Compressed Binary Index Format
Powered by GitBook
On this page

Was this helpful?

  1. Visualization Using R

Install R Libraries

The R available on ALPS is version 3.1.1 (latest version is 3.1.2 at the time of writing). Type R to initial the R environment.

R

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>

Within the R console, we use the install.packages() command to installed all required R libraries.

install.packages(c("data.table","ggplot2","gridExtra","reshape","scales"), repos="http://cran.us.r-project.org")

You may encounter these messages telling you certain directory you do not have WRITE permission. Please type "y" to both questions to create a personal library in your home directory.

Warning in install.packages(c("data.table", "ggplot2", "gridExtra", "plyr",  :
  'lib = "/pkg/biology/R/R-3.1.1/lib64/R/library"' is not writable
Would you like to use a personal library instead?  (y/n) y
Would you like to create a personal library
~/R/x86_64-unknown-linux-gnu-library/3.1
to install packages into?  (y/n) y

Use the library() command to lists all available packages in the libraries.

library()
Packages in library ‘/home/s00yao00/R/x86_64-unknown-linux-gnu-library/3.1’:

chron                   Chronological objects which can handle dates
                        and times
colorspace              Color Space Manipulation
data.table              Extension of data.frame
dichromat               Color Schemes for Dichromats
digest                  Create Cryptographic Hash Digests of R Objects
ggplot2                 An implementation of the Grammar of Graphics
gridExtra               functions in Grid graphics
gtable                  Arrange grobs in tables.
labeling                Axis Labeling
munsell                 Munsell colour system
proto                   Prototype object-based programming
reshape                 Flexibly reshape data.
reshape2                Flexibly Reshape Data: A Reboot of the Reshape
                        Package.
scales                  Scale functions for graphics.
stringr                 Make it easier to work with strings.

Press q to exit the package list, and type q() command to exit the R console. Choose "n" to not save the workspace as an image.

q()
Save workspace image? [y/n/c]: n
PreviousVisualization Using RNextExecute the R Scripts

Last updated 5 years ago

Was this helpful?