Giter Site home page Giter Site logo

pdebartol / snpmap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mirkodevita98/snpmap

0.0 0.0 1.0 46.03 MB

snpMAP is a single-nucleotide-variant (SNP) interpretation program that works on synonymous-SNPs and non-synonymous-SNPs. It takes a VCF file in input and annotates it with the predictions.

Python 13.61% Jupyter Notebook 86.39%

snpmap's Introduction

Table of Contents

Users' Guide

snpMAP is a single-nucletide-variant (SNP) interpretation program that works on synonymous-SNPs and non-synonymous-SNPs. It takes a VCF file in input and annotates it with the predictions.

Configuration

snpMAP requires a configuration file conformant with this standard:

{
    "classification": "binary",
    "use_polyphen": "True", # Set True to use polyphen features 
    "retrain": "False",
    "input":{
        "data_dir": "data",
        "dependencies_dir": "dependencies",
        "case_path": "/home/anej/repos/studies/CBM/P2/data/case_processed_v2.vcf",  # Input VCF file
        "clinvar_path": "/home/anej/repos/studies/CBM/P2/train_data/clinvar.vcf" # SNP clinvar annotations (for train)
    },
    "output":{
        "cache_dir": "cache",
        "results_dir": "results",
        "classification_dir": "classification"
    },
    "SeattleSeq":{ # Set the java classpaths for the 4 jars in the dependecies and the seattle138 dir. 
        "java_classpath": "./
        :/home/anej/repos/studies/CBM/P2/dependencies/seattle138/httpunit-1.7.jar
        :/home/anej/repos/studies/CBM/P2/dependencies/seattle138/js-1.6R5.jar
        :/home/anej/repos/studies/CBM/P2/dependencies/seattle138/nekohtml-0.9.5.jar
        :/home/anej/repos/studies/CBM/P2/dependencies/seattle138/xercesImpl-2.6.1.jar
        :/home/anej/repos/studies/CBM/P2/dependencies/seattle138/"
    }
}

Making predictions

Once the config.json file is configured, annotating your VCF file with predictions is as simple as:

python3 snpMAP.py     

If you want to train the model on your machine, please set the "retrain" option to True, otherwise pre-trained model will be used for prediction. This, however, is maily used for developmental purposes, thus, is not needed and will result the same model as provided in the repository.

The use_polyphen flag should be set to True by default and only disabled if the PolyPhen2 server is not responding (for more than 20-30 minutes). Disabling it allows for making the predictions without the PolyPhen2 features.

The default mode of the model is "binary". The use of "multiclass" is possible for the nsSNP's, but does not result in a substantially better predictor, and thus, the corresponding model is not included in the repository.

snpmap's People

Contributors

mirkodevita98 avatar

Forkers

anejsvete

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.