cjlee112 / pygr

Python graph database framework for bioinformatics

This URL has Read+Write access

pygr /
name age message
file .gitignore Fri Sep 11 16:51:06 -0700 2009 Added MANIFEST to .gitignore as automatically g... [Marek Szuba]
file LICENSE.txt Thu Jun 04 17:27:30 -0700 2009 Renamed COPYING to LICENSE.txt (Issue 96) [Marek Szuba]
file MANIFEST.in Fri Sep 11 16:47:19 -0700 2009 Added a manifest template for building source p... [Marek Szuba]
file README.txt Thu Jun 04 17:28:29 -0700 2009 Renamed README to README.txt (Issue 95) [Marek Szuba]
directory doc/ Sun Nov 29 21:54:00 -0800 2009 added primaryKey arg to SQLTable reference docs [Christopher Lee]
directory misc/ Mon Nov 30 18:49:21 -0800 2009 Bumped the Debian-package version number to 0.8.1 [Marek Szuba]
directory pygr/ Wed Dec 02 12:11:29 -0800 2009 Merge commit 'remotes/mkszuba/misc_updates' [Christopher Lee]
file setup.cfg Fri Jul 31 13:26:06 -0700 2009 Switch bytecode optimisation on by default for ... [Marek Szuba]
file setup.py Thu Nov 05 19:48:58 -0800 2009 Addressed PEP-8 incompatibilities detected by p... [Marek Szuba]
directory tests/ Wed Dec 02 13:47:28 -0800 2009 Added a missing backslash. [Marek Szuba]
README.txt
Pygr README
===========

Introduction
------------

Pygr is an open source software project used to develop graph database 
interfaces for the popular Python language, with a strong emphasis 
on bioinformatics applications ranging from genome-wide analysis of 
alternative splicing patterns, to comparative genomics queries of 
multi-genome alignment data.

Latest Release
--------------

http://www.sourceforge.net/projects/pygr/

Documentation
-------------

doc/pygr/index.html is a good place to start. 

You can also check out:

http://bioinfo.mbi.ucla.edu/pygr/docs/

Core Prerequisites
-----------------

1) Python >= 2.1 

Apps Prerequiites
-----------------
  
MySQL-python >= 1.2.0
MySQL >= 3.23.x  

Note: While pygr's core functionality is solely dependent on a sane python environment, the aformentioned apps 
requirements must be installed if one wishes to utilize the apps modules and test code. 

Supported Platforms
-------------------

In theory, pygr should work on any platform that adequately supports python.

Here are the OS's we've successfully tested on:

o Linux 2.2.x/2.4.x
o OS X 
o OpenBSD
o Windows XP

Installation
------------

Installing pygr is quite simple. 

1) tar -xzvf pygr-0.3.tar.gz 
2) cd pygr
3) python setup.py install 

Once the test framework has completed successfully, the setup script
will install pygr into python's respective site-packages directory. 
If you don't want to install pygr into your system-wide site-packages,
replace the "python setup.py install" command with
"python setup.py build".  This will build pygr but not install it
in site-packages.

Using Pygr
----------
Pygr contains several modules imported as follows:
from pygr import seqdb # IMPORT SEQUENCE DATABASE MODULE

If you did not install pygr in your system-wide site-packages, you 
must set your PYTHONPATH to the location of your pygr build.
For example, if your top-level pygr source directory is PYGRDIR then
you'd type something like:
setenv PYTHONPATH PYGRDIR/build/lib.linux-i686-2.3
where the last directory name depends on your specific architecture.

Pygr has a myriad of applications, however, providing a comprehensive 
description of its utility is out of the scope of this document (see
Documentation). 

If you wish to test your install using the provided test scripts, 
or simply want to give pygr an initial whirl, follow these steps:

1) Flesh out ~/.my.cnf, like so:

------- cut here -------
[client]
socket = /var/lib/mysql/mysql.sock
user = zach
password = seaurchin007!
------ cut here -------

2) cd pygr/tests/ 
3) mysql < HUMAN_SPLICE_03
4) python test.py 

License
-------

GPL

Author
------
Chris Lee <clee@ucla.edu>