GitXplorerGitXplorer
m

pathminer

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
4485a3385b8f3321356c901cf4cbdd6d77c05692

Release v0.0.2

committed 11 years ago
Unverified
b7fe6460ee005187e3b0d3ba379091cd595075af

Initial commit

committed 11 years ago
Unverified
44c9c7f449509d5582beed86c0e32cd4b0ca6b9c

Initial commit

committed 11 years ago
Unverified
9fcfae83667d3cfd78b6646477568317669aba48

Initial commit

committed 11 years ago
Unverified
dceb1ee5fa22e4fd7b8f58666cd5359b982d0af1

Initial commit

committed 11 years ago
Unverified
adb997dd822c47faca5ceb85c00166a70aa62524

Initial commit

committed 11 years ago

README

The README file for this repository.

Pathminer: A simple biological pathway mining algorithm

This package provides a simple Python API for biological pathway mining using the Biocyc (+MetaCyc) web services. It is built on the separate package biocyc which handles the actual connections.

This algorithm has successfully been used in the Pathomx software to identify gene and metabolite changes within pathways. Parameters to the function as follows:

.. code:: python

data: a list of tuples in the format (biocyc_id, score); multiple datasets as a list of lists
target: what to mine - pathways, reactions or compartments (not supported yet)
algorithm: one of 'c', 'u', 'd', 'm', 't' 

    'Compound change scores for pathway': 'c'
    'Compound up-regulation scores for pathway': 'u'
    'Compound down-regulation scores for pathway': 'd'
    'Number compounds with data per pathway': 'm'
    'Pathway overall tendency': 't'

no_of_results: number of targets to return
shared: 'share' scores between pathways, to minimise influence of promiscuous metabolites
relative: 'scale' scores to the size of pathways, to reduce influence of pathway size

Simple usage is as follows.

.. code:: python

from biocyc import biocyc
biocyc.set_organism('meta')

from pathminer import mining

a = biocyc.get('FRUCTOSE-16-DIPHOSPHATE')
b = biocyc.get('GLC')

data = [(a,5),(b,10)]

mining(data)

[(glycolysis, 2.5), (gluconeogenesis, 2.5), (glycolysis, 2.5), (gluconeogenesis, 2.5), (glycogenolysis, 0.625)]