StFS / gor

GORpipe is a tool based on a genomic ordered relational architecture and allows analysis of large sets of genomic and phenotypic tabular data using declarative query language, in a parallel execution engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

The GORpipe analysis tool is developed and released here by WuXi Nextcode Genomics. It originates from the pioneers of population based genomic analysis, deCODE genetics, headquartered in Reykjavik, Iceland.

GORpipe is a tool based on a genomic ordered relational architecture and allows analysis of large sets of genomic and phenotypic tabular data using declarative query language, in a parallel execution engine. It is very efficient in a wide range of use-cases, including genome wide batch analysis, range-queries, genomic table joins of variants and segments, filtering, aggregation etc. The query language combines ideas from SQL and Unix shell pipe syntax, supporting seek-able nested queries, materialized views, and a rich set of commands and functions. For more information see the paper in Bioinformatics (https://dx.doi.org/10.1093%2Fbioinformatics%2Fbtw199).

Prerequisites

Before setting up GORpipe the following need to be installed:

Setting Up Test Data

Test data for GOR is setup by cloning the GOR test data repository (https://github.com/gorpipe/gor-test-data) as a submodule into the tests/data folder. This is done via:

git submodule update --init --recursive

Getting Started With GORpipe

To get started with GORpipe, compile the code:

 make build

Now gor queries can been run against test data. For example via:

./gortools/build/install/gor-scripts/bin/gorpipe "gor tests/data/gor/dbsnp_test.gor | top 10"

The results should be as follows:

Chrom   POS     reference       allele  differentrsIDs
chr1    10179   C       CC      rs367896724
chr1    10250   A       C       rs199706086
chr10   60803   T       G       rs536478188
chr10   61023   C       G       rs370414480
chr11   61248   G       A       rs367559610
chr11   66295   C       A       rs61869613
chr12   60162   C       G       rs544101329
chr12   60545   A       T       rs570991495
chr13   19020013        C       T       rs181615907
chr13   19020145        G       T       rs28970552

Setting Up an Interactive Shell for GORpipe

GORpipe can be invoked and used through an interactive shell session in a terminal - a sort of REPL for GOR, coined GORshell. Start a GORshell by executing:

tools/build/install/tools/bin/gorshell   

Now queries can be via:

gor tests/data/gor/dbsnp_test.gor | top 10

For a list of GOR input sources and pipe commands and other details, simple type "help" within the GOR shell

Running GOR without setting up the test data submodule can be done via generating GOR rows and then running GOR against that data. For example:

gor <(gorrows -p chr1:1000-20000 -segment 100 -step 50 | multimap -cartesian <(norrows 100 | group -lis -sc #1))

Add To Path

For convenience, GORpipe and GORshell can be added to path. For example on mac via by editing /etc/paths:

sudo vim /etc/paths 

and adding lines

<...>/gortools/build/install/gor-scripts/bin
<...>/tools/build/install/tools/bin/gorshell 

to /etcs/paths

Then GORpipe and GORshell can be started via gorpipe and gorshell

Citations

If you make use of GORpipe in your research, we would appreciate a citation of the following paper:

GORpipe: a query tool for working with sequence data based on a Genomic Ordered Relational (GOR) architecture
Bioinformatics, Volume 32, Issue 20, 15 October 2016, Pages 3081–3088,
https://dx.doi.org/10.1093%2Fbioinformatics%2Fbtw199

License

GORpipe is free software: you can redistribute it and/or modify
it under the terms of the AFFERO GNU General Public License as published by
the Free Software Foundation.

GORpipe is distributed "AS-IS" AND WITHOUT ANY WARRANTY OF ANY KIND,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
NON-INFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. See
the AFFERO GNU General Public License for the complete license terms.

You should have received a copy of the AFFERO GNU General Public License
along with GORpipe.  If not, see <http://www.gnu.org/licenses/agpl-3.0.html>

About

GORpipe is a tool based on a genomic ordered relational architecture and allows analysis of large sets of genomic and phenotypic tabular data using declarative query language, in a parallel execution engine.

License:GNU Affero General Public License v3.0


Languages

Language:Java 58.0%Language:Scala 41.6%Language:Python 0.1%Language:Shell 0.1%Language:ANTLR 0.1%Language:Groovy 0.1%Language:Makefile 0.0%Language:Dockerfile 0.0%