Adam Rauch Partner, LabKey Software adam@labkey.com. Extending LabKey Server Part 1: Retrieving and Presenting Data

Similar documents
Karl Lum Partner, LabKey Software Evolution of Connectivity in LabKey Server

Quick start. A project with SpagoBI 3.x

LabKey Server: An open source platform for scientific data integration, analysis, and collaboration

D83167 Oracle Data Integrator 12c: Integration and Administration

FileMaker 12. ODBC and JDBC Guide

Sisense. Product Highlights.

Module 1: Getting Started with Databases and Transact-SQL in SQL Server 2008

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

This three-day instructor-led course provides students with the tools to extend Microsoft Dynamics CRM 4.0.

Course MS55077A Project Server 2013 Development. Length: 5 Days

Oracle Data Integrator 11g: Integration and Administration

MicroStrategy Course Catalog

Beginning Oracle. Application Express 4. Doug Gault. Timothy St. Hilaire. Karen Cannell. Martin D'Souza. Patrick Cimolini

Chapter 24: Creating Reports and Extracting Data

Oracle Data Integrator 12c: Integration and Administration

Writing Queries Using Microsoft SQL Server 2008 Transact-SQL

FileMaker 13. ODBC and JDBC Guide

Business Insight Report Authoring Getting Started Guide

ArcSight Express Administration and Operations Course

Developing Web Applications for Microsoft SQL Server Databases - What you need to know

Building Views and Charts in Requests Introduction to Answers views and charts Creating and editing charts Performing common view tasks

Report and Dashboard Template User Guide

Extending Microsoft Dynamics CRM 4.0

COURSE SYLLABUS COURSE TITLE:

Authoring for System Center 2012 Operations Manager

Application Discovery Manager User s Guide vcenter Application Discovery Manager 6.2.1

Course Title: Reporting in Microsoft Dynamics CRM 2011

FileMaker 11. ODBC and JDBC Guide

RegoXchange Content List by RegoXchange

How is it helping? PragmatiQa XOData : Overview with an Example. P a g e Doc Version : 1.3

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

CHAPTER 4: BUSINESS ANALYTICS

Database Linker Tutorial

The Recipe for Sarbanes-Oxley Compliance using Microsoft s SharePoint 2010 platform

Microsoft Extending Microsoft Dynamics CRM 2011

ARIZONA DEPARTMENT OF TRANSPORTATION. Presented by Lonnie D. Hendrix, P.E. Assistant State Engineer, Maintenance

SQL Server 2012 Business Intelligence Boot Camp

Cloudfinder for Office 365 User Guide. November 2013

Microsoft Dynamics AX. Reporting and Business Intelligence in Microsoft Dynamics AX

Reporting Services. White Paper. Published: August 2007 Updated: July 2008

uncommon thinking ORACLE BUSINESS INTELLIGENCE ENTERPRISE EDITION ONSITE TRAINING OUTLINES

Administrator's Guide

Data Integration and ETL with Oracle Warehouse Builder: Part 1

Toad for Data Analysts, Tips n Tricks

(55042A) SharePoint 2013 Business Intelligence

Reporting Guide NetIQ Reporting Center

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

> Define the different phases of K2 development, including: understand, model, build, maintain and extend

OBIEE DEVELOPER RESUME

8912A: Configuration & Customization in Microsoft Dynamics CRM 4.0

for Sage 100 ERP Business Insights Overview Document

Course: SharePoint 2013 Business Intelligence

SharePoint 2013 Business Intelligence

<Insert Picture Here>

SharePoint Integration Framework Developers Cookbook

CRM Global Search: Installation & Configuration

Oracle Data Integrator: Administration and Development

NetWrix SQL Server Change Reporter. Quick Start Guide

Microsoft End to End Business Intelligence Boot Camp

Policy Compliance. Getting Started Guide. January 22, 2016

SAP BusinessObjects Design Studio Overview. Jie Deng, Product Management Analysis Clients November 2012

HR Onboarding Solution

Course: SAS BI(business intelligence) and DI(Data integration)training - Training Duration: 30 + Days. Take Away:

Implementing Data Models and Reports with Microsoft SQL Server 2012 MOC 10778

HTML5. Turn this page to see Quick Guide of CTTC

Before you may use any database in Limnor, you need to create a database connection for it. Select Project menu, select Databases:

SAP BO Course Details

SharePoint 2013 Business Intelligence Course 55042; 3 Days

This course will also teach how to create various kinds of dashboards using Reporting Services.

The Essential Guide to Meeting Administrative Challenges in Multi-Tiered SharePoint Environments

100% NO CODING NO DEVELOPING IMMEDIATE BUSINESS -25% -70% UNLIMITED SCALABILITY DEVELOPMENT TIME SOFTWARE STABILITY

Course MS55003A Microsoft SharePoint 2010 Business Intelligence Services

Copyright Pivotal Software Inc, of 10

Implementing Project Server 2010

Accessing Your Database with JMP 10 JMP Discovery Conference 2012 Brian Corcoran SAS Institute

SAP Crystal Reports & SAP HANA: Integration & Roadmap Kenneth Li SAP SESSION CODE: 0401

Course Code NCS2013: SharePoint 2013 No-code Solutions for Office 365 and On-premises

Publish Acrolinx Terminology Changes via RSS

Release 2.1 of SAS Add-In for Microsoft Office Bringing Microsoft PowerPoint into the Mix ABSTRACT INTRODUCTION Data Access

Microsoft Dynamics CRM2015 Fast Track for developers

XpoLog Center Suite Data Sheet

Customization and Configuration in Microsoft Dynamics CRM 4.0

Ernesto Ongaro BI Consultant February 19, The 5 Levels of Embedded BI

Sidebar Dashboard User Guide. Modified: June, 2013 Version 8.2

BizTalk Server Business Activity Monitoring. Microsoft Corporation Published: April Abstract

MatchPoint Technical Features Tutorial Colygon AG Version 1.0

Oracle BI 11g R1: Build Repositories

ActiveVOS Server Architecture. March 2009

The focus of this course is on the SharePoint 2013 business intelligence platform and not on the SQL business intelligence services.

Geodatabase Programming with SQL

SOFTWARE TESTING TRAINING COURSES CONTENTS

Data Mining, Predictive Analytics with Microsoft Analysis Services and Excel PowerPivot

Kaldeera Workflow Designer 2010 User's Guide

HTSQL is a comprehensive navigational query language for relational databases.

Lost in Space? Methodology for a Guided Drill-Through Analysis Out of the Wormhole

SAP BO 4.1 COURSE CONTENT

Data Management for Large Studies Robert R. Kelley, PhD. Thursday, September 27, 2012

Transcription:

Adam Rauch Partner, LabKey Software adam@labkey.com Extending LabKey Server Part 1: Retrieving and Presenting Data

Extending LabKey Server LabKey Server is a large system that combines an extensive set of tools and applications for managing biomedical research data But the single most powerful feature is the ability to extend and customize LabKey Server to meet your specific needs LabKey Server is not a product with a fixed set of functionality. it s a platform that you (and we) can extend in many different ways via code and customization 2

A Few Examples of Extending LabKey Server Customize the look and feel, navigation model, and data presentation of your projects, studies, and assays Assemble LabKey and external components into mash-ups, dashboards, and other custom views Encapsulate your process logic in custom data entry applications and workflows Augment existing features with processing steps, transformations & analyses matching your science Add deep knowledge & analysis of new data types 3

Extension Mechanisms In two presentations I ll cover six key extension mechanisms: Custom queries External schemas / data sources Script reports Server API / client libraries File-based modules Java modules Easy Primary Use Limited Retrieve & present data Create applications Hard Powerful 4

Security and Permissions All extension mechanisms respect access privileges Custom code typically impersonates the requesting user Your code can t subvert permissions (e.g., retrieve forbidden data) It s critical that you test your code/queries as a non-admin user Caveats & warnings Exception: Java code in a module can subvert security; be careful! Custom R code running on your web server can do nasty things Custom JavaScript running in your users browsers can do nasty things You damn well better trust people who add code to your server! Special Developers group determines who can write code Site administrators are added automatically Other users must be added explicitly 5

Extension Mechanisms Key extension mechanisms: Custom queries External schemas / data sources Script reports Server API / client libraries File-based modules Java modules Retrieve & present data Create applications 6

LabKey Query Terminology Query: a named, saved SQL SELECT statement Like a VIEW in a SQL database LabKey translates SQL to underlying implementation & enforces security Schema: a named collection of related tables and queries Table/query metadata: Column names, types, formats, etc. Custom view Subset of query functionality (column list, sort, filter) Intended for UI definition (not defined in SQL) Can do implicit joins via lookup 7

Custom Queries Use the full power of SQL to do custom analysis of your data Allow joins, grouping, aggregates, complex filters, pivots, functions, expression columns, etc. Access tables & queries exposed by modules and external schemas Respect the executing user s permissions Use meta data to configure display properties such as lookups, labels, URLs, standard and conditional formats, etc. Useful for preparing data for client API, charts, reports, export 8

Query Schema Browser 9 9

New Query 10

Query Web Part

Custom Queries: Tips & Tricks SQL is a good tool for narrowing down the data you really want to see or preparing data for other analysis The query schema browser is your friend Use it to explore the data sources, schemas and queries (built-in and user-defined) available in a folder Documentation on labkey.org LabKey SQL reference Meta data XML reference 12

External Schemas & Data Sources Provide access to data that is not managed by LabKey Scenarios Use LabKey to publish, report & visualize any data in your institution Build LabKey applications without relocating the data Join LabKey data with user-defined tables (same database) Publish SAS data sets securely and dynamically via LabKey 13

External Schemas & Data Sources Currently support: Microsoft SQL Server (2005 & 2008) PostgreSQL (8.3 9.1) MySQL (5.1 & 5.5) SAS (9.1 & 9.2) Oracle (11g) Steps 1. Add DataSource <Resource> elements to labkey.xml 2. Expose external schemas from these data sources (per-folder) 3. Tables and views are then visible like any other query 14

DataSource <Resource> Example Example <Resource> element that enables a MySQL data source. LabKey documentation includes examples for all supported databases. <Resource name="jdbc/mysqldatasource" auth="container" type="javax.sql.datasource" username="root" password="password" driverclassname="com.mysql.jdbc.driver" url="jdbc:mysql://localhost:3306/?autoreconnect=true &useunicode=true&characterencoding=utf8" maxactive="15" maxidle="7" useinformationschema="true" accesstounderlyingconnectionallowed="true" validationquery="select 1" /> 15

Script Reports Reports ( views ) provide alternate ways of displaying data, beyond a simple grid Time chart and crosstab are two built-in examples Use script reports to create custom transformations & visualizations of datasets and queries Write script reports in R or JavaScript Once created, users can invoke the custom report LabKey executes the code, providing query data & meta data Artifacts created by the code are then sent to the browser JavaScript report code runs in the user s browser; R report code runs on the server 16

Script Reports: Tips & Tricks Configure external script engines from the admin console Script reports are created with functional placeholder code The help tab in the script report designer is helpful 17

Any questions? Adam Rauch adam@labkey.com