GithubHelp home page GithubHelp logo

combat-tb / vcf2neo Goto Github PK

View Code? Open in Web Editor NEW
3.0 8.0 2.0 39.05 MB

A tool to import SnpEff annotated files to a Neo4j Graph database

License: GNU General Public License v3.0

Python 85.04% Dockerfile 4.08% Common Workflow Language 8.50% Shell 2.38%
variant-calling neo4j-database graph-database tuberculosis py2neo snpeff

vcf2neo's Introduction

vcf2neo

Build Status Coverage Status DOI

A tool to import and map SnpEff annotated VCF files to COMBAT-TB NeoDB Graph database.

Prerequisites:

Usage

Clone repository:

$ git clone https://github.com/SANBI-SA/vcf2neo.git
...
$ cd vcf2neo

Build COMBAT-TB NeoDB:

$ docker-compose up --build -d
...

Install and run vcf2neo:

  • Using pip
$ pip install -i https://test.pypi.org/simple/ vcf2neo
...
  • or via setup in virtualenv
$ virtualenv envname
...
$ source envname/bin/activate
$ pip install -r requirements.txt
$ python setup.py install

Import and map SnpEff annotated VCF files to genes and drugs in NeoDB:

You change the default database location (localhost) by setting the DATABASE_URL environment variable to remote.

$ vcf2neo load_vcf --help
Usage: vcf2neo load_vcf [OPTIONS] VCF_DIR

  Load SnpEff annotated VCF files to genes and drugs in NeoDb.

Options:
  --owner TEXT                    Specify owner.  [default: $USER; required]
  -p, --phenotype [XDR|MDR|SUSCEPTIBLE|UNKNOWN]
                                  Specify phenotype.  [required]
  -a, --antibiotic TEXT           Specify antibiotic. E.g. Rifampicin
                                  [required]
  --help                          Show this message and exit.
$ vcf2neo load_vcf -p UNKNOWN -a UNKNOWN PATH/TO/VCF_DIR
...

Exploring variant data:

Point your browser to localhost:7474 to access the Neo4j browser.

To view the schema, run:

call db.schema.visualization

Sample Cypher query:

MATCH(g:Gene)--(v:Variant)--(cs:CallSet)
RETURN g.name as gene, v.consequence as variant, cs.name as file
LIMIT 25

vcf2neo's People

Contributors

pvanheus avatar thobalose avatar zipho avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ismailm thobalose

vcf2neo's Issues

Refactor model

We need to refactor the current variants model to one or two nodes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.