Package snp.plotter. February 20, 2015



Similar documents
Journal of Statistical Software

LD-Plus. Visualizing SNP Statistics in the Context of Linkage. Disequilibrium

Package empiricalfdr.deseq2

Statistical Analysis for Genetic Epidemiology (S.A.G.E.) Version 6.2 Graphical User Interface (GUI) Manual

Package retrosheet. April 13, 2015

Package tagcloud. R topics documented: July 3, 2015

Package cgdsr. August 27, 2015

SeattleSNPs Interactive Tutorial: Web Tools for Site Selection, Linkage Disequilibrium and Haplotype Analysis

Package hoarder. June 30, 2015

Scatter Plots with Error Bars

Package treemap. February 15, 2013

Package erp.easy. September 26, 2015

Package ggrepel. February 8, 2016

Package plan. R topics documented: February 20, 2015

Package colortools. R topics documented: February 19, Type Package

Package MBA. February 19, Index 7. Canopy LIDAR data

Package TRADER. February 10, 2016

Step-by-Step Guide to Bi-Parental Linkage Mapping WHITE PAPER

Package HHG. July 14, 2015

Package TSfame. February 15, 2013

MATLAB Programming. Problem 1: Sequential

Package uptimerobot. October 22, 2015

Writing R packages. Tools for Reproducible Research. Karl Broman. Biostatistics & Medical Informatics, UW Madison

Package hazus. February 20, 2015

Package RIGHT. March 30, 2015

SNPbrowser Software v3.5

Package decompr. August 17, 2016

Package DCG. R topics documented: June 8, Type Package

Each function call carries out a single task associated with drawing the graph.

Scientific Graphing in Excel 2010

Step by Step Guide to Importing Genetic Data into JMP Genomics

Package neuralnet. February 20, 2015

Package treemap. October 14, 2015

Package LexisPlotR. R topics documented: April 4, Type Package

Package copa. R topics documented: August 9, 2016

In this article, learn how to create and manipulate masks through both the worksheet and graph window.

Package png. February 20, 2015

elprolog MONITOR-WebAccess Operation Manual

Portal Connector Fields and Widgets Technical Documentation

Go to: URL:

NICK COLLIER - REPAST DEVELOPMENT TEAM

Package SHELF. February 5, 2016

Microsoft Excel 2010 Part 3: Advanced Excel

Getting an ArcGIS Online account, creating a web map with the ArcGIS.com Map Viewer, loading and a shapefile, and then sharing options, step-by-step.

Working with Tables: How to use tables in OpenOffice.org Writer

Doing Multiple Regression with SPSS. In this case, we are interested in the Analyze options so we choose that menu. If gives us a number of choices:

Tutorial on gplink. PLINK tutorial, December 2006; Shaun Purcell,

Visualization Quick Guide

Visual Tutorial Basic Edition 1. Visual. Basic Edition Tutorial.

Package sjdbc. R topics documented: February 20, 2015

Package dunn.test. January 6, 2016

Decreases the magnification of your chart. Changes the magnification of the displayed chart.

Analytics for Tally.ERP 9

Package packrat. R topics documented: March 28, Type Package

Scribe Online Integration Services (IS) Tutorial

Introduction to Microsoft Excel 2007/2010

Examples of Data Representation using Tables, Graphs and Charts

Package sendmailr. February 20, 2015

Formulas, Functions and Charts

The Reporting Console

Education Solutions Development, Inc. APECS Navigation: Business Systems Getting Started Reference Guide

Reading and writing files

Package OECD. R topics documented: January 17, Type Package Title Search and Extract Data from the OECD Version 0.2.

Pavement Management System Overview

Package survpresmooth

Planning and Managing Projects with Microsoft Project Professional 2013

Oracle Marketing Encyclopedia System

RFID Logger Software User Manual Rev 1.0

Package EstCRM. July 13, 2015

McAfee Endpoint Encryption Reporting Tool

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

AT&T Online Fax User Guide Version 1.0

Using R for Linear Regression

Window Glass Design 5 According to ASTM E 1300

Company Setup 401k Tab

Package bigdata. R topics documented: February 19, 2015

Custom Reporting System User Guide

Creating Web Pages with Microsoft FrontPage

SAP Business Intelligence ( BI ) Financial and Budget Reporting. 7.0 Edition. (Best Seller At Least 43 copies Sold)

Charts for SharePoint

Hierarchical Clustering Analysis

Improved Navigation Magento Extension User Guide

Package fimport. February 19, 2015

Package GSA. R topics documented: February 19, 2015

Sonatype CLM for Maven. Sonatype CLM for Maven

Package hive. January 10, 2011

How To Import A File Into The Raise S Edge

Using Style Sheets for Consistency

ABOUT THIS DOCUMENT ABOUT CHARTS/COMMON TERMINOLOGY

DiskPulse DISK CHANGE MONITOR

STATGRAPHICS Online. Statistical Analysis and Data Visualization System. Revised 6/21/2012. Copyright 2012 by StatPoint Technologies, Inc.

Using Parametric Equations in SolidWorks, Example 1

Digitally Signing Acrobat PDF Files

Xerox Standard Accounting Import/Export User Information Customer Tip

Package whoapi. R topics documented: June 26, Type Package Title A 'Whoapi' API Client Version Date Author Oliver Keyes

Oracle Forms Services Secure Web.Show_Document() calls to Oracle Reports

A Program for PCB Estimation with Altium Designer

Intro to Excel spreadsheets

Transcription:

Version 0.5.1 Date 2014-02-26 Title snp.plotter Package snp.plotter February 20, 2015 Author Augustin Luna <augustin@mail.nih.gov>, Kristin K. Nicodemus <kristin.nicodemus@well.ox.ac.uk>, <nicodemusk@mail.nih.gov> Maintainer Augustin Luna <augustin@mail.nih.gov> Depends R (>= 2.0.0), grid Imports genetics Suggests knitr Description Creates plots of p-values using single SNP and/or haplotype data. Main features of the package include options to display a linkage disequilibrium (LD) plot and the ability to plot multiple datasets simultaneously. Plots can be created using global and/or individual haplotype p-values along with single SNP p-values. Images are created as either PDF/EPS files. License GPL (>= 2) URL https://github.com/cannin/snp_plotter or http://cbdb.nimh.nih.gov/~kristin/snp.plotter.html biocviews Genetics VignetteBuilder knitr NeedsCompilation no Repository CRAN Date/Publication 2014-02-26 18:13:31 R topics documented: snp.plotter.......................................... 2 Index 6 1

2 snp.plotter snp.plotter SNP/haplotype association p-value and linkage disequilibrium plotter Creates plots of p-values using single SNP and/or haplotype data. Main features of the package include options to display a linkage disequilibrium (LD) plot and the ability to plot multiple set of results simultaneously. Plots can be created using global and/or individual haplotype p-values along with single SNP p-values. Images are created as either PDF/EPS files. Description Usage SNP/haplotype association p-value and linkage disequilibrium plotter Creates plots of p-values using single SNP and/or haplotype data. Main features of the package include options to display a linkage disequilibrium (LD) plot and the ability to plot multiple set of results simultaneously. Plots can be created using global and/or individual haplotype p-values along with single SNP p-values. Images are created as either PDF/EPS files. snp.plotter(even.spaced = FALSE, PVAL.THRESHOLD = 1, USE.GBL.PVAL = TRUE, SYMBOLS = NA, SAMPLE.LABELS = NULL, LAB.Y = "log", DISP.HAP = FALSE, DISP.SNP = TRUE, DISP.COLOR.BAR = TRUE, DISP.PHYS.DIST = TRUE, DISP.LEGEND = TRUE, DISP.MARKER.LINES = TRUE, DISP.LDMAP = FALSE, DISP.TYPE = "symbol", DISP.MULT.LAB.X = FALSE, DISP.SNP.NAMES = TRUE, DISP.CONNECTING.LINES = TRUE, LD.TYPE = "dprime", LD.COLOR.SCHEME = "heat", USE.COLORS = TRUE, COLOR.LIST = NULL, PALETTE.FILE = NULL, IMAGE.TITLE = NULL, IMAGE.NAME = "snp.plotter", IMAGE.TYPE = "pdf", IMAGE.SIZE = 3.5, CONNECTING.LINES.FACTOR = 1, CONNECTING.LINES.ADJ = 0, CONNECTING.LINES.VERT.ADJ = -1, CONNECTING.LINES.FLEX = 0, SNP.FILE = NULL, HAP.FILE = NULL, GENOTYPE.FILE = NULL, FONT.FACTOR = NULL, SYMBOL.FACTOR = NULL, config.file = NULL) Arguments config.file SNP.FILE HAP.FILE Name of a configuration file for snp.plotter parameters in the form ATTRIBUTE=value. This option can be used in place of specifying options at the R command line. Tab-delimited input file containing p-values for single SNPs (see note below). The contents of each SNP.FILE includes four necessary columns ASSOC, SNP.NAME, LOC, and SS.PVAL corresponding to positive or negative association (indicating susceptibility or protective alleles), a SNP label, the location, and a p-value for each SNP. SNP labels cannot start with numbers. Example: "s1.txt,s2.txt,s3.txt" MANDATORY Tab-delimited input file containing p-values for haplotypes (see note below). The contents of each HAP.FILE includes three necessary columns ASSOC, G.PVAL, and I.PVAL followed by a set of columnns of SNPs with corresponding haplotypes. Haplotypes are presented in a step-wise fashion with the major

snp.plotter 3 GENOTYPE.FILE EVEN.SPACED USE.GBL.PVAL DISP.HAP DISP.SNP DISP.LDMAP allele given as 1 and the minor allele as 2; haplotype variants for a set of SNPs should be grouped. SNP labels in HAP.FILE must be the same as in SNP.FILE, and only SNPs with corresponding haplotypes need to be included. Example: "h1.txt,h2.txt,h3.txt" OPTIONAL Tab-delimited input file containing genotypes as a PED file with 6 columns preceding the genotype data: family ID, individual ID, father ID, mother ID, sex, and affection status; these coloums are not used in the creation of the LD plot. This file is used for calculating D or r-squared values for the LD heatmap plot. Only one LD plot can be shown (see note below). OPTIONAL Logical. Should the p-values be displayed at even spacing or at genetic map distances? Logical. Use global haplotype p-values (as opposed to individual p-values)? Unfilled symbols connected by solid lines are used to indicate global haplotype p-values, default symbol: circle. Unfilled and filled symbols are used to indicate alleles 1 and 2, respectively connected by solid lines and dashed lines for positive and negative association (indicating susceptibility or protective haplotypes) when using individual haplotype p-values. Logical. Display haplotype p-values? Logical. Display single SNP p-values? Logical. Display the LD heatmap? DISP.PHYS.DIST Logical. Display the range of the X-scale? DISP.LEGEND Logical. Display a legend with sample labels and corresponding symbols? DISP.COLOR.BAR Logical. Display bar showing colors and corresponding values of LD plot? DISP.TYPE Options: "symbol" DISP.MULT.LAB.X Logical. Display evenly spaced X-axis tick-labels; up to 5 labels are shown. DISP.MARKER.LINES Logical. Display lines at p-value thresholds of 0.05, 0.01, 0.001, etc. DISP.SNP.NAMES Logical. Display the names of SNPs on a plot. DISP.CONNECTING.LINES Logical. Display connecting lines from p-value plot to LD map. USE.COLORS COLOR.LIST SYMBOLS PALETTE.FILE SAMPLE.LABELS LAB.Y Logical. Restrict LD heatmap colors and default symbol colors to gray-scale List of colors (one for each sample) known to GraphApp (see note below) for displaying p-value symbols. Example: "red,blue,green,black,orange" Options: circle, square, diamond, triangle; Symbols can either be filled or not filled by appending "-fill" e.s., square-fill. NA may be specified. In this case, the SNP.FILE ASSOC column is read and an up-triangle and down-triangle are used to indicate positive and negative association (indicating susceptibility or protective alleles), respectively. Example: "circle,na,diamond-fill,triangle" Colors are hexidecimal HTML color codes; one color per line. OPTIONAL Labels for each sample. Example: "d-cc,d2-cc,d1-fam" Options: ln (natural log) or log (log10)

4 snp.plotter IMAGE.TYPE IMAGE.TITLE IMAGE.SIZE IMAGE.NAME Options: "pdf" or "eps" Title of the image in quotes. Note: Title text may not wrap. Options: 3.5 or 7. Sizes are in inches and correspond to 1 or 2 columns per printed page. Name of the output file. The correct extension will be appended depending on the value of IMAGE.TYPE PVAL.THRESHOLD The minimum value of the the Y-scale will be set to this value. Default: 1 (to ignore option). LD.TYPE LD metric. Options: "dprime" or "rsquare" LD.COLOR.SCHEME LD heatmap color scheme. Options: heat (red-yellow-white), cm (cyan-magenta), topo (topographical map colors), gray (gray-scale), or custom; custom requires palette file (PALETTE.FILE) to be defined CONNECTING.LINES.FACTOR Adjusts the length of the connecting lines. Range: 0-2 CONNECTING.LINES.ADJ Can be used to adjust the position of connecting lines in relation to SNP names. Negative values shift the connecting lines to the left and positive values shift the lines to the right. Range: 0-1 CONNECTING.LINES.VERT.ADJ Can be used to vertically adjust the position of connecting lines in relation to SNP names. More negative value shift the connecting lines down. Range: -0.5-0 CONNECTING.LINES.FLEX Adjusts the spread of the connecting lines. Range: 0-2 Details Value SYMBOL.FACTOR FONT.FACTOR Scaling value for symbols. Larger values are generate larger symbols. Range: 0-1 Scaling value for SNP names. Larger values are generate larger SNP names. Range: 0-1 snp.plotter produces publishable-quality plots of p-values using single SNP and/or haplotype data. Main features of the package include options to display a linkage disequilibrium (LD) plot below the p-value plot using either the r-squared or D LD metric with a user-specified LD heatmap color scheme, setting the X-axis to equal spacing or to use the physical SNP map, and specification of plot labels, colors and symbols for desplaying p-values. A major strength of the package is that it can plot multiple set of results simultaneously. Plots can be created using global and/or individual haplotype p-values along with single SNP p-values. The package provides a simple way to convey both association and LD information in a single appealing graphic and requires virtually no knowledge of the R programming language. Code to create the LD map was modified from the LDHeatmap package by Ji-Hyung Shin, et al. (2006, version 0.2) A list containing two items: config.var and gbl.var, which includes the values of all significant variables used by snp.plotter

snp.plotter 5 Note Configuration Files Due to the large number of parameters implemented for flexibility, it is suggested that snp.plotter be run using the config.file argument. Example Datasets Examples of SNP.FILE, HAP.FILE, GENOTYPE.FILE, and configuration files are provided at https://github.com/cannin/snp_plotter with further explanation on the file formats. Lists Comma delimited lists (SNP.FILE, HAP.FILE, COLOR.LIST, SYMBOLS, etc) should not have spaces between entries. If using the config.file argument, these lists should not have quotations in the configuration file. Example: "red,blue,green,black,orange" Colors COLOR.LIST colors are limited to those known to GraphApp. A short list can be found at http://en.wikipedia.org/wiki/x11.color.names; the complete list is located in the R source code file Palettes PALETTE.FILE colors are hexidecimal HTML color codes http://en.wikipedia.org/ wiki/x11.color.names. The first and last colors correspond to the lowest and highest value of the chosen LD metric, respectively. One color per line. PDFs The error "unable to start device pdf" may occur when attempting to overwrite an open PDF document. P-values A p-value of 1 or NA can be used in SNP.FILE to prevent displaying information about a single SNP Number of Datasets snp.plotter handles 10 set of results, but provides default values for only 5 set of results File Input All input files should be placed in the same directory Author(s) Augustin Luna <augustin.luna at mail.nih.gov>, Kristin K. Nicodemus <kristin.nicodemus at well.ox.ac.uk>. Website: https://github.com/cannin/snp_plotter Examples ## Not run: snp.plotter(config.file="config.txt") ## End(Not run)

Index Topic aplot, snp.plotter, 2 Topic hplot snp.plotter, 2 snp.plotter, 2 6