Giter Site home page Giter Site logo

pybel / pybel-notebooks Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 4.0 17.05 MB

Notebooks demonstrating the usage of PyBEL and PyBEL Tools

License: Apache License 2.0

Jupyter Notebook 99.99% Python 0.01%
nbviewer biological-expression-language systems-biology bioinformatics networks

pybel-notebooks's Introduction

PyBEL Notebooks

This repository contains Jupyter notebooks demonstrating the PyBEL and PyBEL Tools packages.

Cookbook

This directory contains notebooks that address small problems.

This directory contains notebooks that analyze the contents of a BEL graph.

  1. Graph Summary
  2. Citation Summary
  3. Error Analysis

This directory contains notebooks dealing with input/output and data integration.

  1. Parsing JGIF
  2. Resolving Protein Complexes

This directory contains notebooks demonstrating algorithms implemented with PyBEL and NetworkX.

  1. Generation of Unbiased Candidate Mechanisms
  2. Subgraph Expansion
  3. Subgraph Comparison
  4. Candidate Mechanism Pertubation Amplitude
  5. Time Series Analysis with CMPA
  6. Concordance Analysis

Root Directory

Template Notebook (source)

This notebook serves as a style guide for other notebooks in this repository.

BEL Compiler Comparison Notebook (source) (nbviewer)

The speed and usability of the PyBEL compiler is compared to the two legacy options: bel.rb and the OpenBEL Framework.

test.py (source)

This file can be run with python3 -m nose to check that notebooks run to completion.

pybel-notebooks's People

Contributors

cthoyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pybel-notebooks's Issues

Collapsing of Orthologous genes

Juliane said this is a post-processing feature that would be really nice.

  • Get data from OpenBEL Framework (in BEL) and HGNC (in JSON)
  • Parse into new graph
  • Collapse all rat and mouse genes to orthologous human genes
  • Statistics
    • Change in degree distribution
    • Change in other graph statistics - betweeness, centrality, characteristic path length

Later:

  • Data model for orthology in sqlalchemy
  • External scripts for download and versioning

New pybel breaks indra dependencies in BEL to Natural Language

The latest version of pybel breaks indra dependencies in the BEL to Natural Language notebook

pybel.get_version()

'0.14.11-dev'

indra.util.get_version.get_version()

'1.17.0-c8f35a6f7a00e8a6116b707b6a034f57a72f22ae'

pbp = process_pybel_graph(sialic_acid_graph)
pbp.statements
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-17-2420ef54593c> in <module>
----> 1 pbp = process_pybel_graph(sialic_acid_graph)
      2 pbp.statements

~/Projects/Proposals/MARS/Pathogenesis/indra/indra/sources/bel/api.py in process_pybel_graph(graph)
    150     """
    151     bp = PybelProcessor(graph)
--> 152     bp.get_statements()
    153     if bp.annot_manager.failures:
    154         logger.warning('missing %d annotation pairs',

~/Projects/Proposals/MARS/Pathogenesis/indra/indra/sources/bel/processor.py in get_statements(self)
     90             for node_ix, node in enumerate((u_data, v_data)):
     91                 if isinstance(node, dsl.ComplexAbundance):
---> 92                     self._get_enum_complex(u_data, v_data, k, d, node_ix)
     93             subj_activity = _get_activity_condition(d.get(pc.SUBJECT))
     94             obj_activity = _get_activity_condition(d.get(pc.OBJECT))

~/Projects/Proposals/MARS/Pathogenesis/indra/indra/sources/bel/processor.py in _get_enum_complex(self, u_data, v_data, k, edge_data, node_ix)
    187         cplx_agent.bound_conditions = []
    188         agents.append(cplx_agent)
--> 189         ev = self._get_evidence(u_data, v_data, k, edge_data)
    190         stmt = Complex(agents, evidence=[ev])
    191         self.statements.append(stmt)

~/Projects/Proposals/MARS/Pathogenesis/indra/indra/sources/bel/processor.py in _get_evidence(self, u_data, v_data, k, edge_data)
    327         ev_pmid = None
    328         if ev_citation:
--> 329             cit_type = ev_citation[pc.CITATION_DB]
    330             cit_ref = ev_citation[pc.CITATION_IDENTIFIER]
    331             if cit_type == pc.CITATION_TYPES[pc.CITATION_TYPE_PUBMED]:

AttributeError: module 'pybel.constants' has no attribute 'CITATION_DB'

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.