Metadata-Version: 2.1
Name: mmsplice
Version: 1.0.0
Summary: Predict splicing variant effect from VCF
Home-page: https://github.com/gagneurlab/mmsplice
Author: Jun Cheng
Author-email: chengju@in.tum.de
License: MIT license
Description: # mmsplice
        [![CircleCI](https://circleci.com/gh/gagneurlab/MMSplice.svg?style=svg)](https://circleci.com/gh/gagneurlab/MMSplice)
        [![pypi](https://img.shields.io/pypi/v/mmsplice.svg)](https://pypi.python.org/pypi/mmsplice)
        
        Predict splicing variant effect from VCF
        
        Paper: Cheng et al. https://doi.org/10.1101/438986
        
        ![MMSplice](https://raw.githubusercontent.com/kipoi/models/master/MMSplice/Model.png)
        
        
        ## Installation
        -----------------
        
        External dependencies:
        ```bash
        pip install cyvcf2 cython
        ```
        
        Conda installation is recommended:
        ```bash
        conda install cyvcf2 cython -y
        ```
        
        ```bash
        pip install mmsplice
        ```
        
        ## Run MMSplice Online
        
        You can run mmsplice with following google colab notebooks online:
        
        - [run on vcf file](https://colab.research.google.com/drive/1Kw5rHMXaxXXsmE3WecxbXyGQJma80Eq6)
        
        ### Preparation
        -----------------
        
        #### 1. Prepare annotation (gtf) file
        Standard human gene annotation file in GTF format can be downloaded from ensembl or gencode.
        `MMSplice` can work directly with those files, however, some filtering is higly recommended.
        
        - Filter for protein coding genes.
        
        #### 2. Prepare variant (VCF) file
        A correctly formatted VCF file with work with `MMSplice`, however the following steps will make it less prone to false positives:
        
        - Quality filtering. Low quality variants leads to unreliable predictions.
        - Avoid presenting multiple variants in one line by splitting them into multiple lines. Example code to do it:
          ```bash
          bcftools norm -m-both -o out.vcf in.vcf.gz
          ```
        - Left-normalization. For instance, GGCA-->GG is not left-normalized while GCA-->G is. Details for unified representation of genetic variants see [Tan et al.](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4481842/)
          ```bash
          bcftools norm -f reference.fasta -o out.vcf in.vcf
          ```
        
        #### 3. Prepare reference genome (fasta) file
        Human reference fasta file can be downloaded from ensembl/gencode. Make sure the chromosome name matches with GTF annotation file you use.
        
        
        ### Example code
        -------------------
        
        Check [notebooks/example.ipynb](https://github.com/gagneurlab/MMSplice/blob/master/notebooks/example.ipynb)
        
        To score variants (including indels), we suggest to use primarily the `deltaLogitPSI` predictions, which is the default output. The differential splicing efficiency (dse) model was trained from MMSplice modules and exonic variants from MaPSy, thus only the predictions for exonic variants are calibrated.
        
        ```python
        # Import
        from mmsplice.vcf_dataloader import SplicingVCFDataloader
        from mmsplice import MMSplice, predict_all_table
        from mmsplice.utils import max_varEff
        
        # example files
        gtf = 'tests/data/test.gtf'
        vcf = 'tests/data/test.vcf.gz'
        fasta = 'tests/data/hg19.nochr.chr17.fa'
        csv = 'pred.csv'
        
        # dataloader to load variants from vcf
        dl = SplicingVCFDataloader(gtf, fasta, vcf)
        
        # Specify model
        model = MMSplice()
        
        # predict and save to csv file
        predict_save(model, dl, csv, pathogenicity=True, splicing_efficiency=True)
        
        # Or predict and return as df
        predictions = predict_all_table(model, dl, pathogenicity=True, splicing_efficiency=True)
        
        # Summerize with maximum effect size
        predictionsMax = max_varEff(predictions)
        ```
        
        ## VEP Plugin
        
        The VEP plugin wraps the prediction function from `mmsplice` python package. Please check documentation of vep plugin [under VEP_plugin/README.md](VEP_plugin/README.md).
        
        
        =======
        History
        =======
        
        1.0.0 (2019-07-23)
        ------------------
        * Dependicies fixed #16
        * Valide gtf, fasta, vcf chrom annotation #15
        * Ship mmsplice with prebuild exon set. #12
        * Faster variant overlapping with pyranges #11
        * Batch prediction with masking update in exon module
        
        0.1.0 (2018-07-17)
        ------------------
        
        * First release on PyPI.
        
Keywords: mmsplice
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
