Applied Bioinformatics Introduction to R, continued Bing Zhang Department of Biomedical Informatics Vanderbilt University

Slides:



Advertisements
Similar presentations
B2PDF b2pdf is the new and innovative release of our powerful command line tool for PDF customization b2pdf is a robust stand alone PDF file generation.
Advertisements

ISecurity GUI User-Friendly Interface. Features Full support of all green-screen functionality Simultaneous views of multiple iSecurity screens and activities.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
R tutorial g/methods2.2010/R-intro.pdf.
Picture Manipulation The manipulation of (already created) pictures. May be applied to vector graphics or bitmaps. We will consider bitmaps and introduce.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
ENGR 3 rocks. Desktop-->Classes-->Matlab-Engineering-- >matlab_using_engineering_toolkits.bat.
IS&T Scientific Visualization Tutorial – Spring 2010 Robert Putnam Plotting packages overview.
Introduction to Raster Graphics Resize an image until it is pixelated.
ESRM 250 & CFR 520: Introduction to GIS © Phil Hurvitz, KEEP THIS TEXT BOX this slide includes some ESRI fonts. when you save this presentation,
ElVis Features & Animations Michael Shmulevich PPPL Summer High School Intern Mentor – Eliot Feibush August 14, 2008.
Zinnia Bell. RAWimages are image files that have not yet processed, they contain minimally processed data from the image sensor of either a image scanner,
Applied Bioinformatics Introduction to Linux and R Bing Zhang Department of Biomedical Informatics Vanderbilt University
Bitmapped Images. Bitmap Images Today’s Objectives Identify characteristics of bitmap images Resolution, bit depth, color mode, pixels Determine the most.
Filtering (I) Dr. Chang Shu COMP 4900C Winter 2008.
Computer Concepts – Illustrated 8 th edition Unit C: Computer Software.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
File Formats About graphic file formats And image compression.
Powerpoint Templates 1 GIMP GNU Image Manipulation Program © Copyright 2015, Fred McClurg All Rights Reserved Introduction to Web Programming Kirkwood.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Carolina Environmental Program UNC Chapel Hill The Analysis Engine – A New Tool for Model Evaluation, Sensitivity and Uncertainty Analysis, and more… Alison.
All About File Formats Mr. Butler John Jay High School Department of Technology.
Digital Image: Representation & Processing (2/2) Lecture-3
Data Objects in R Vector1 dimensionAll elements have the same data types Data types: numeric, character logic, factor Matrix2 dimensions Array2 or more.
Piotr Wolski Introduction to R. Topics What is R? Sample session How to install R? Minimum you have to know to work in R Data objects in R and how to.
Using the ‘R’ Language for Bioinformatics
An Introduction to R graphics Cody Chiuzan Division of Biostatistics and Epidemiology Computing for Research I, 2012.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
Introduction to Interactive Media Interactive Media Components: Text.
Resizing Images CS 268. Where to start? Pictures (of course)  Need to down size them for the web.  Pictures taken with a 10 mega pixel camera are usually.
Tools for the Professional working with Graphics.
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
“Paper” output Root Graphics Workshop 16/07/2010.
Web Graphics By Chris Harding. Contents  Software  Vector Graphics and Pixel Based  Transparent Images  Compression  GIF vs. JPEG  Animated GIF.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Adobe photoshop digital image making. the basics Adobe PhotoShop is an image-editing program that lets you create and edit digital images. ◦PhotoShop.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Introduction to R Carol Bult The Jackson Laboratory Functional Genomics (BMB550) Spring 2011.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Bioinformatics for biologists
Configure your animation in Xtplot, then check “Save animation to image files” and click Run. Save images here Choose PNG, JPEG, TIFF, or Bitmap.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Matrix Multiplication The Introduction. Look at the matrix sizes.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Information Systems Design and Development Media Types Computing Science.
Matlab & Image processing toolbox Heejune Ahn SeoulTech Last updated Jan.
Configure your animation in Xtplot, then check “Save animation to image files” and click Run. Save images here Choose PNG, JPEG, TIFF, or Bitmap.
Hank Childs, University of Oregon April “29 th”, 2015 CIS 330: _ _ _ _ ______ _ _____ / / / /___ (_) __ ____ _____ ____/ / / ____/ _/_/ ____/__ __ / /
CONTENT INCLUDED IN POSTERS THAT WOULD BE DISPLAYED IN A GYM AND METHODS BY WHICH THESE POSTERS CAN BE CREATED.
File Formats Different applications (programs) store data in different formats. Applications support some file formats and not others. Open…, Save…, Save.
Multimedia Subject: Informatics of Technology II year
Chapter 3 Image Files © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website,
Introduction to Graphics
Performing statistical analyses using the Rshell processor
Matrices and Data Holt Algebra 2.
Chapter 3 Image Files © 2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
A computer display is made up of small squares, called pixels.
Representing Images 2.6 – Data Representation.
ИНФОРМАТИКА И РАЧУНАРСТВО Наставна тема: РАЧУНАРСКА ГРАФИКА
Code is on the Website Outline Comparison of Excel and R
PLACE YOUR TITLE HERE **Poster Author(s) Go Here
Programming for Art: Images
Matrices and Data Holt Algebra 2.
Background For security point of view, AGL would need frame work to grant access right to system resources. A window A Audio sink A file system ,,,,,
> Introduction to Nelson Rios, Tulane University
Presentation transcript:

Applied Bioinformatics Introduction to R, continued Bing Zhang Department of Biomedical Informatics Vanderbilt University

Matrix subsetting and combining 2 TaskR code Import data from a tabular file data<-read.table("GSE8671_exp.txt",head=TRUE,sep="\t") Convert data frame to matrix data0<-as.matrix(data) Get dimensions of the matrix dim(data0) Select discrete rows by index data0[c(1,3,5,7,9),] Select continuous rows by index data0[5:10,] Select discrete columns by index data0[,c(1,3,5,7,9)] Select continuous columns by indexdata0[,5:10] Select both rows and columns by indexdata0[1:10,1:5] Select one row by namedata0[“1438_at”,] Select both rows and columns by namedata0[c(“1438_at”, “117_at”),c(“GSM215052”, “GSM215079”)] Calculate variances for all rowsgene_variances<-apply(data0,1,var) Calculate means for all rowsgene_means<-apply(data0,1,mean) Combine columns (same number of rows)combined<-cbind(data0,gene_means,gene_variances) Select rows by output of a comparisoncombined[gene_means>60000,]

Save your work The R environment is controlled by hidden files in the startup directory .Rdata .Rhistory Save before quit  > q() Save worksapce image? [y/n/c]: During a session  > save.image() Save your code to a file (e.g. diff.r), which can be excuted in batch  $ R CMD BATCH diff.r & &: running a program in the background Screen output to diff.r.Rout 3

Install and load packages CRAN packages   >6000 packages BioConductor packages   ~1000 packages for the analysis of high-throughput genomics data 4 TaskR code Install a CRAN packageinstall.packages (“package name”) Install a BioConductor packagesouce (“ biocLite (“package name”) Load a package/librarylibrary (“package name”)

Graphics in R R has very strong graphic capacities High quality, high reproducibility, lots of packages On-screen graphics  Works in R Gui (both Windows and Mac)  In Linux, requires X11 (windowing system for bitmap displays) in Linux Output to a file  postscript, pdf, svg  jpeg, png, tiff, … 5 Start a pdf filepdf(“gse4183_clustering.pdf”, width=10, height=15) Generate a heatmapheatmap.plus(data3, Rowv=as.dendrogram(rhc), Colv=as.dendrogram(hc), colSideColors=ann, cexRow=0.5, cexCol=0.5, col=greenred(256)) Close the filedev.off()