[Biopython] Representing biological networks was: Re: (no subject)
Leighton Pritchard
Leighton.Pritchard at hutton.ac.uk
Mon Jan 30 11:55:46 UTC 2012
Hi,
I use Cytoscape and NetworkX, which cope perfectly well - as far as I've pushed them - with GML as a language for data transfer (you might want to get into the habit of using the relabel=True option when using read_gml(), though ;) ).
However, for biological networks, you might also want to look at SBML which, unlike XGMML, is actively maintained and biology-specific, to see if it meets your needs. Cytoscape handles this format directly, but coverage is still lacking in NetworkX (which would be the appropriate place for this, rather than Biopython, in my opinion). There is a Python API to libSBML, though.
http://sbml.org/Main_Page
http://sbml.org/Software/libSBML/docs/python-api/
http://wiki.cytoscape.org/Cytoscape_User_Manual/Network_Formats
https://networkx.lanl.gov/trac/ticket/325
Cheers,
L.
On 30 Jan 2012, at Monday, January 30, 11:14, Peter Cock wrote:
On Mon, Jan 30, 2012 at 10:09 AM, Kristian Ullrich
<kristian_ullrich at yahoo.de<mailto:kristian_ullrich at yahoo.de>> wrote:
Hello Biopython Team,
I am going to work with biological networks, next to the great tool cytoscape
I want to create networks out of python. To my knowledge there exists
pygraphviz and networkx which can produce gml and dot output files.
Cytoscape uses the XGMML Language
(http://www.cs.rpi.edu/research/groups/pb/punin/public_html/XGMML/).
Is there an easy way of how to use or manipulate existing python xml
parsers to work with xgmml files or are there plans of the Biopython
Team to write an XGMML - parser?
Since a lot of biologist work with cytoscape this would be a very useful
tool to build graphical netowrks.
Thank you in anticipation
Kristian Ullrich
Hi,
XGMML looks much more general than 'just' biology, so I
wonder if XGMML support in NetworkX would a better idea?
I couldn't find an open issue on this on their tracker, but
certainly they sounded positive about this back in 2009,
http://groups.google.com/group/networkx-discuss/browse_thread/thread/fb30306e43414c74
Peter
P.S. There are several Python libraries for using dot
files and GraphViz (which is an excellent library), I
don't recall why but last time I needed to do this I used
pydot - http://code.google.com/p/pydot/
_______________________________________________
Biopython mailing list - Biopython at lists.open-bio.org<mailto:Biopython at lists.open-bio.org>
http://lists.open-bio.org/mailman/listinfo/biopython
--
Dr Leighton Pritchard MRSC
DG31, Plant Pathology Programme, James Hutton Institute (Dundee)
Errol Road, Invergowrie, Perth and Kinross, Scotland, DD2 5DA
e:leighton.pritchard at hutton.ac.uk w:http://www.hutton.ac.uk/staff/leighton-pritchard
gpg/pgp: 0xFEFC205C tel: +44(0)844 928 5428 x8827 or +44(0)1382 568827
________________________________________________________
This email is from The James Hutton Institute (JHI), however the views
expressed by the sender are not necessarily the views of JHI and its
subsidiaries. This email and any attachments are confidential and are intended
solely for the use of the recipient(s) to whom they are addressed. If you
are not the intended recipient, you should not read, copy, disclose or rely on
any information contained in this email, and we would ask you to contact the
sender immediately and delete the email from your system. Although JHI has
taken reasonable precautions to ensure no viruses are present in this email,
neither the Institute nor the sender accepts any responsibility for any
viruses, and it is your responsibility to scan the email and any attachments.
The James Hutton Institute is a Scottish charitable company limited by
guarantee.
Registered in Edinburgh No. SC374831
Registered Office: The James Hutton Institute, Invergowrie Dundee DD2 5DA.
Charity No. SC041796
More information about the Biopython
mailing list