Slide 1

Slide 1 text

INTRODUCTION TO Stephen D. Turner, Ph.D. University of Virginia Bioinformatics Core Director bioinformatics.virginia.edu BIOLOGICAL DATA SCIENCE BIMS 8382 bioconnector.org/bims8382

Slide 2

Slide 2 text

About the course • See course website (bioconnector.org/bims8382) for syllabus, FAQ, course material, etc. • 90% hands on, live-coding in class. - Bring your laptop and charger every day. • Heavily focused on R - Scientific computing is a lab skill, just like pipetting, cell culture, etc. - R’s ecosystem for data analysis, especially in bioinformatics, is simply amazing (more later…) 2

Slide 3

Slide 3 text

About the course • Weeks 1-4: learn R - Introduction to R environment - Advanced data manipulation - Advanced data visualization - Reproducible research • Weeks 5-6: use R for actual analysis - Lecture/overview of RNA-seq - Analyzing RNA-seq data in R 3

Slide 4

Slide 4 text

But why don’t we spend more time learning tool X for analysis Y? 4

Slide 5

Slide 5 text

We Are in the Middle of a New Movement in Genomics 5 Genomics & bioinformatics is advancing at grueling pace •New questions •New study designs •New technologies, new [fill-in-the-blank]-seq

Slide 6

Slide 6 text

6

Slide 7

Slide 7 text

7 dsRNA-Seq FRAG-Seq SHAPE-Seq PARTE-Seq PARS-Seq Structure-Seq DMS-Seq Cir-Seq Dup-Seq Nucleo-Seq DNAse-Seq DNAseI-Seq Sono-Seq FAIRE-Seq NOMe-Seq ATAC-Seq RAD-Seq Freq-Seq CNV-Seq Novel-Seq TAm-Seq Repli-Seq ARS-Seq Sort-Seq Pool-Seq Bubble-Seq RNA-Seq GRO-Seq Quartz-Seq CAGE-Seq Nascent-Seq Cel-Seq 3P-Seq NET-Seq SS3-Seq FRT-Seq 3-Seq PRO-Seq Bru-Seq TIF-Seq TIVA-Seq Smart-Seq PAS-Seq PAL-Seq Ribo-Seq Frac-Seq GTI-Seq SELEX-Seq CRE-Seq STARR-Seq SRE-Seq CLASH-Seq ChIRP-Seq CHART-Seq RAP-Seq RIP-Seq iCLIP-Seq PTB-Seq ChIP-Seq ChIP-Seq PB-Seq PDZ-Seq PD-Seq Chem-Seq CAB-Seq HELP-Seq TAB-Seq TAmC-Seq fCAB-Seq MeDIP-Seq Methyl-Seq oxBS-Seq RBBS-Seq BS-Seq BisChIP-Seq Bar-Seq TraDI-Seq Tn-Seq IN-Seq Immuno-Seq mutARS-Seq Ig-Seq Ig-seq Ren-Seq Mu-Seq Stable-Seq WIMP-Seq BOINC-Seq https://liorpachter.wordpress.com/seq/

Slide 8

Slide 8 text

8 http://www.ebi.ac.uk/~nf/hts_mappers/ E.g.: tools for short read alignment

Slide 9

Slide 9 text

9 E.g.: workflows for RNA-seq Eyras et al. Methods to Study Splicing from RNA-Seq. http://dx.doi.org/10.6084/m9.figshare.679993

Slide 10

Slide 10 text

10 http://omictools.com/ >10,000 software tools for -omics data analysis http://www.mybiosoftware.com/biology-software-list >12,000 software tools, publications

Slide 11

Slide 11 text

• 9000+ R packages available • >1000 bioinformatics-specific R packages • ~200 R packages for gene expression • ~100 R packages just for RNA-seq! • Each have their own idiosyncrasies, usage, strengths/weaknesses, goals. • Many tools that were state of the art in 2015 are obsolete in 2016. orig: @aaronquinlan

Slide 12

Slide 12 text

Goal of this course: I’m NOT going to teach you tool X for analysis Y, because you probably won’t do Y, and you almost certainly won’t use tool X next year. Goal: get comfortable with the scientific computing environment (data manipulation, analysis, reproducible research, external packages, finding help) so you can figure out how to do analysis Y with tool X when you need to. 12

Slide 13

Slide 13 text

Let’s get started with R! 13

Slide 14

Slide 14 text

Why Because R is awesome. R?

Slide 15

Slide 15 text

R is FREE. 15 Free, as in beer. Free, as in speech.

Slide 16

Slide 16 text

R is FREE. 16 Software Cost $1,140 - $4,370 + maintenance $8,700 - $140,000 / year $2,390 - $40,600 / year $2,150 + $1,000s for modules $0

Slide 17

Slide 17 text

R Community

Slide 18

Slide 18 text

R Community 18 NYT: R is the “lingua franca” of data analysts inside corporations and academia. Norman Nie, scholar and co- founder of SPSS: R is “the most powerful and flexible statistical programming language in the world.”

Slide 19

Slide 19 text

R Community 19 CRAN = Comprehensive R Archive Network http://cran.us.r-project.org/ Over 9,000 free add-on packages.

Slide 20

Slide 20 text

R Community • Over 1000 free packages for bioinformatics analysis using R. • NGS analysis: - Manipulate: import FASTQ/bam, trim, transform, align, manipulate sequences, … - Applications: Quality Assessment, ChIP-seq, differential expression, RNA-seq, much more. - Annotation: gene, pathway, GO, homology, … Access GO, KEGG, NCBI, Biomart, UCSC, … • Much, much more: flow cytometry, DNA methylation, microarrays, TFBS analysis, eQTL analysis, functional annotation, … • BioC Community: Conferences (since 2002), mailing list, … • http://bioconductor.org/ 20

Slide 21

Slide 21 text

Amazing Graphics edwardtufte.com

Slide 22

Slide 22 text

ggplot(data=diamonds, aes(x=carat, y=price)) + geom_point() + facet_grid(clarity~color) GettingGeneticsDone.com

Slide 23

Slide 23 text

manhattan(data, annotate=snps) cran.r-project.org/web/packages/qqman/

Slide 24

Slide 24 text

http://nyti.ms/1pvhu2t http://nyti.ms/1ff2bWa

Slide 25

Slide 25 text

“Visualizing Friendships” http://on.fb.me/MlI0NI

Slide 26

Slide 26 text

The Arteries of the World, in Tweets https://blog.twitter.com/2013/the-geography-of-tweets

Slide 27

Slide 27 text

K-means Clustering 86 Single Malt Scotch Whiskies http://blog.revolutionanalytics.com/2013/12/k-means- clustering-86-single-malt-scotch-whiskies.html

Slide 28

Slide 28 text

BIG DATA and

Slide 29

Slide 29 text

R and Big Data • What’s big data? - Too large to process using traditional processing applications 
 — Wikipedia - “Volume, velocity, variety” 
 — Doug Laney, 2001 - “When computing the answer takes longer than the cognitive process of designing the model” 
 — Hadley Wickham, R developer 29

Slide 30

Slide 30 text

R and Big Data • ff: access datasets too large to fit into memory • bigmemory: store large objects in memory and files with external pointer, enabling transparent access from R to large objects. • pbdMPI: Interface to MPI • pbdNCDF4: multiple processes can read/write same file • snow (simple network of workstations): abstraction layer, hiding communication details from parallelized processed. • foreach: iterate over a collection without loop counter. • multicore: run parallel computation on computers with multiple cores without explicit user request. • RHIPE: interface between R and Hadoop • BatchJobs: Map/Reduce functionality to HPC systems using Torque/PBS, SGE, LSF, etc. • gputools: common data-mining algorithms implemented using nVidia CUDA language/library • Many, many more at http://cran.r-project.org/web/views/HighPerformanceComputing.html 30

Slide 31

Slide 31 text

programming as a language

Slide 32

Slide 32 text

R as a programming language • New tools/procedures can be written in R, shared, and used by others. • Open-source. - Don’t know what a function does? Look at the code yourself. - Don’t like how a function works? Hack the code and re-write how it works yourself. • R packages: Extend R with more functions, data, graphics. - CRAN: >9,000 packages - Bioconductor: >1,000 packages 32

Slide 33

Slide 33 text

R as a programming language • Reproducible research - Point & click interfaces are NOT reproducible. - R code is written in plain text file. Running same code on same data should reproduce exact results. - R “scripts” are easily shared. - Latex, Knitr: Allow seamless integration of R code into self- documenting report. 33

Slide 34

Slide 34 text

34 Demo: Reproducible Research with R

Slide 35

Slide 35 text

Resources

Slide 36

Slide 36 text

Resources 36 http://blog.revolutionanalytics.com/ R Mailing List: http://www.r-project.org/mail.html Bioconductor Mailing List: http://www.bioconductor.org/help/mailing-list/

Slide 37

Slide 37 text

Resources 37 Programming Q&A Site. Over 40,000 questions tagged with “R”: http://stackoverflow.com/ CrossValidated Statistics Q&A Site. Over 1,000 questions tagged with “R”: http://stats.stackexchange.com/

Slide 38

Slide 38 text

Resources 38 Computing for Data Analysis https://www.coursera.org/course/compdata R Programming: https://www.coursera.org/course/rprog Roger Peng: All videos on YouTube: http://www.youtube.com/user/rdpeng/videos

Slide 39

Slide 39 text

Resources 39 TryR: A short, interactive course to let you jump right in. Learn and run code right in the browser. http://tryr.codeschool.com/ http://www.rseek.org/ A custom Google search engine for R-related topics.

Slide 40

Slide 40 text

Resources 40 Editor Console Workspace Graphics RStudio: A beautiful, free, full-featured IDE. http://www.rstudio.com/

Slide 41

Slide 41 text

Resources 41 bioconnector.org/bims8382/help

Slide 42

Slide 42 text

Local Resources 42 StatLab statlab.library.virginia.edu bioconnector.virginia.edu/phs PHS@HSL Stats Questions? bioconnector.virginia.edu/dash DASH Data Analysis Support Hub

Slide 43

Slide 43 text

Local Resources 43 Web: bioinformatics.virginia.edu E-Mail: [email protected] Blog: GettingGeneticsDone.com Twitter: @genetics_blog Facebook: facebook.com/UVABioinformaticsCore