An application of GGplot Eitan Halper-Stromberg. Getting Started https://github.com/Eitan177/targetSeqView R CMD build targetSeqView.zip R CMD INSTALL.

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

BarCheck Barcode Validation System BarCheck BarCheck is designed to offer 100% product - barcode inspection via a simple user interface, ensuring:- ~
ITK-Overview Insight Software Consortium. What is ITK Image Processing Segmentation Registration No Graphical User Interface (GUI) No Visualization.
SQL Maestro full 2-machine installation guide
Topic - DATA PROVIDERS TRAINING COURSE DEPLOYMENT PROCESS MINCyT, Buenos Aires, Argentina, 7 – 11 October 2013.
SAS 9.2 Getting Started. 2006/03/01. SAS Main Window.
August 2012 This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project.
SARA Reken- en NetwerkdienstenToPoS | 3 juni 2007 More efficient job submission Evert Lammerts SARA Computing and Networking Services High Performance.
TE Price Book Download Instructions for downloading the TE Published Prices.
MS-Access XP Lesson 3. Validation Rule Property 1.Validation rule defines limitations to the data in a filed. Field Name:Marks Type:Number Validation.
R Packages Davor Cubranic SCARL, Dept. of Statistics.
Raspberry Pi The singing jelly baby.
CHAPTER 3 MORE ON FORM HANDLING INCLUDING MULTIPLE FILES WRITING FUNCTIONS.
Bundler is the Best! BADCamp
Learning Ruby - 8 Exploiting Libraries. Ruby's Built-in Libraries There's a large collection of standard libraries provided with Ruby The PickAxe provides.
{ Django Deployment Tips, Tricks and Best Practices Erik LaBianca, WiserTogether, Inc.
Will
Web Programming Assignment 4 - Extra Credit Old Dominion University Department of Computer Science CS 418/518 Fall 2010 Martin Klein.
Analyzing Android Browser Apps for file:// Vulnerabilities Daoyuan Wu and Rocky Chang Oct 13, 2014 The Hong Kong Polytechnic University Information Security.
Whiteboardmaths.com © 2004 All rights reserved
RDF Generation and Linking using Open Refine Daniel Vila-Suero
What is genomesontheCloud ?
GLOBAL VIRTUAL CLUSTER DEPLOYMENT THROUGH A CONTENT DELIVERY NETWORK Pongsakorn U-chupala, Kohei Ichikawa (NAIST) Luca Clementi, Philip Papadopoulos (UCSD)
SARs Total: 14,730 Suspicious Activity Report Filing Trend for the State of Nebraska For the period April 1, 1996 through December 31, 2006.
Steps to Validate e-TDS file.. Click on e-TDS file validation utility from Start-->Financial Accounting -XP/Soft One Options.
Practical Implementation of Windows Server 2012 Storage Technologies
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
To Download It From The Web 1) Go to and click on the tab named Microsoft Office and click on the link to MEGAUPLOADwww.jonathan2.tk.
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Installing Apache Axis Setting up your Tomcat server to use Web Services.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Install Software. UNIX Shell The UNIX/LINUX shell is a program important part of a Unix system. interface between the user & UNIX kernel starts running.
1Software Measurement Advanced Software Engineering COM360 University of Sunderland © 2001.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
How to create and install packages in R Presenter: Roman Jandarov
Data Structure Min Chen School of Computer Science and Engineering Seoul National University.
READING AND WRITING FILES. READING AND WRITING FILES SEQUENTIALLY  Two ways to read and write files  Sequentially and RA (Random Access  Sequential.
Embedded Reservation Space -Lakshminarayana Lakkavarapukota
Copy of the from the secure website - click on the AccoridaLife.zip link.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
TREES!!. POST PROCESSING Things that need work Place_Trees.py is poorly documented Some assumptions needed in creation of tree list – ex. %50 crown.
Programming Fundamentals I Java Programming Spring 2009 XuanTung Hoang Lab 01.
Importing a github repository Dong Nie. Example used: JavaTeaching If you have already loaded JavaTeahcing from zip file, you should delete it before.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Web Programming with PHP (3) Superglobals, Form & File processing.
Cumulative Updates and Future Versions How New Releases Will Work in the Future Microsoft Dynamics NAV.
Introduction to Information Security Vulnerabilities 1.
Integrative Genomics Viewer (IGV)
Using the HTML and CSS Validation Services
Chapter 5: Loops and Files.
Using Jenkins for your DSC CI Pipeline
BIAM 530 Innovative Education--snaptutorial.com
World Class Smart Security System - Maui, Hawaii
Test Automation For Web-Based Applications
Systems Design, Implementation, and Operation
Software Quality Assurance
Python Lessons 13 & 14 Mr. Kalmes.
Pink Slip Information – 75 Points Due Tuesday (January 9th)
This is where R scripts will load
Run Java file with Window cmd
Visual Studio Code for PowerShell
Microsoft Connect /19/2019 2:33 PM
Extending Languages.
This is where R scripts will load
ICES GitHub GitHub (github.com) is a good place to organize source code: 1 Available for anyone to see, download, and use 2 Selected users can add/modify.
Python Lessons 13 & 14 Mr. Husch.
Pink Slip Information – 75 Points Due Thursday (May 25th)
Packages Maria Novosolov.
SE-1021 Software Engineering II
Presentation transcript:

An application of GGplot Eitan Halper-Stromberg

Getting Started R CMD build targetSeqView.zip R CMD INSTALL targetSeqView_1.0.tar.gz Open the vignette Look at/do the examples Apply it to your own data if applicable Repurpose the code if you like

Input files Txt file with regions to inspect SampleDescChr1Start1End1LeftSideSegDupChr2Start2End2RightSideSeqDupValidationStatusSample LCL TRUE FALSEPCR Validated1320KB0001MultAlnForVignette.bam LCL TRUE TRUEPCR Validated1320KB0001MultAlnForVignette.bam Bam File

Example 1: failed path <- system.file("extdata", package="targetSeqView”) filename=file.path(path,"twoSVJunctionsFailed.txt”) retfail=ViewAndScore(filename=filename,bamFilePath=path,esti mateIndelRate=FALSE,estimateMmRate=FALSE,getReadLength =FALSE,build="hg19",verbose=TRUE)

View it! p1=formatPlot(retfail[[1]][[1]][[1]][[2]],title='Alignment supporting a structural variant') p2=formatPlot(retfail[[1]][[1]][[2]][[2]],title='supporting no SV') p3=formatPlot(retfail[[1]][[1]][[3]][[2]],title='supporting no SV') grid.newpage() pushViewport(viewport(layout = grid.layout(3, 1))) print(p1,vp = viewport(layout.pos.row = 1, layout.pos.col=1)) print(p2,vp = viewport(layout.pos.row = 2, layout.pos.col=1)) print(p3,vp = viewport(layout.pos.row = 3, layout.pos.col=1)) Event 1: Event 2: p1=formatPlot(retfail[[1]][[2]][[1]][[2]],title='Alignment supporting a structural variant') p2=formatPlot(retfail[[1]][[2]][[2]][[2]],title='supporting no SV') p3=formatPlot(retfail[[1]][[2]][[3]][[2]],title='supporting no SV') grid.newpage() pushViewport(viewport(layout = grid.layout(3, 1))) print(p1,vp = viewport(layout.pos.row = 1, layout.pos.col=1)) print(p2,vp = viewport(layout.pos.row = 2, layout.pos.col=1)) print(p3,vp = viewport(layout.pos.row = 3, layout.pos.col=1))

Example 2: Passed filename=file.path(path,"twoSVJunctionsPassed.txt") retpass=ViewAndScore(filename=filename,bamFilePath=path,estimateIndelRat e=FALSE, estimateMmRate=FALSE,getReadLength=FALSE,build="hg19",refexpansion=c(0,0),verbose=TRUE)

p1=formatPlot(retpass[[1]][[1]][[1]][[2]],title='Alignment supporting a structural variant', mismatchcolor='red') p2=formatPlot(retpass[[1]][[1]][[2]][[2]],title='supporting no SV', mismatchcolor='red') p3=formatPlot(retpass[[1]][[1]][[3]][[2]],title='supporting no SV', mismatchcolor='red') grid.newpage() pushViewport(viewport(layout = grid.layout(3, 1))) print(p1,vp = viewport(layout.pos.row = 1, layout.pos.col=1)) print(p2,vp = viewport(layout.pos.row = 2, layout.pos.col=1)) print(p3,vp = viewport(layout.pos.row = 3, layout.pos.col=1)) p1=formatPlot(retpass[[1]][[2]][[1]][[2]],title='Alignment supporting a structural variant', mismatchcolor='red') p2=formatPlot(retpass[[1]][[2]][[2]][[2]],title='supporting no SV', mismatchcolor='red') p3=formatPlot(retpass[[1]][[2]][[3]][[2]],title='supporting no SV', mismatchcolor='red') grid.newpage() pushViewport(viewport(layout = grid.layout(3, 1))) print(p1,vp = viewport(layout.pos.row = 1, layout.pos.col=1)) print(p2,vp = viewport(layout.pos.row = 2, layout.pos.col=1)) print(p3,vp = viewport(layout.pos.row = 3, layout.pos.col=1)) View it!

The data frame head(retpass[[1]][[1]][[2]][[2]]) afvec2 posvec2 ref ypostail refname 1 M HWI-ST619_61:3:2108:13668:175483:ATCACG 2 M HWI-ST619_61:3:2108:13668:175483:ATCACG 3 A HWI-ST619_61:3:2108:13668:175483:ATCACG 4 M HWI-ST619_61:3:2108:13668:175483:ATCACG 5 C HWI-ST619_61:3:2108:13668:175483:ATCACG 6 M HWI-ST619_61:3:2108:13668:175483:ATCACG dtailA <- ggplot(dftailA, aes(x = posvec2, y = ypostail, fill = factor(afvec2, levels = get("l")), height = 0.85)) + geom_tile() + facet_grid(. ~ ref, scales = "free") The call to ggplot

More data gureReproduction