<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Steve&#039;s Systems Biology blog &#187; Computing</title>
	<atom:link href="http://www.stevecheckley.co.uk/blog/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevecheckley.co.uk/blog</link>
	<description>a mind forever voyaging through the strange seas of thought</description>
	<lastBuildDate>Wed, 11 Jan 2012 11:57:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Copasi 4.8 (build 35) released</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/12/20/copasi-4-8-build-35-released/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/12/20/copasi-4-8-build-35-released/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 18:31:30 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PhD]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=881</guid>
		<description><![CDATA[&#160; &#160; New features since the previous stable release: Graphical User Interface (CopasiUI): Added plots and reports for parameter scans to the output assistant. Only applicable plots and reports are shown in the output assistant by default. Simulation Engine: Time Scale Separation Analysis can now handle multi compartment models. The Time Scale Separation Analysis can [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="copasi logo" src="http://www.copasi.org/show_image.php?id=117" alt="Copasi Logo" width="192" height="48" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>New features since the previous stable release:</p>
<p>Graphical User Interface (CopasiUI):</p>
<ul>
<li>Added plots and reports for parameter scans to the output assistant.</li>
<li>Only applicable plots and reports are shown in the output assistant by default.</li>
</ul>
<p>Simulation Engine:</p>
<ul>
<li>Time Scale Separation Analysis can now handle multi compartment models.</li>
<li>The Time Scale Separation Analysis can now be applied to the full as well as the reduced model.</li>
<li>It is now possible to calculate the sensitivities of Eigen values.</li>
<li>Add kinetic function Bi (irreversible) to the builtin functions.</li>
</ul>
<p><a title="copasi" href="http://www.copasi.org/tiki-view_articles.php">Download available from Copasi.org.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/12/20/copasi-4-8-build-35-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copasi play testing</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/08/04/copasi-play-testing/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/08/04/copasi-play-testing/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 08:00:17 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PhD]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=710</guid>
		<description><![CDATA[I&#8217;ve been playing with the latest build of Copasi for a couple of weeks since the stable release (build 34).  I still have the same freezing at startup on Ubuntu 10.10 that&#8217;s been there since build 32, but this could be a Qt problem (edit: seems to be sleeping on startup for some reason &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been playing with the latest build of Copasi for a couple of weeks since the stable release (build 34).  I still have the same freezing at startup on Ubuntu 10.10 that&#8217;s been there since build 32, but this could be a Qt problem (edit: seems to be sleeping on startup for some reason &#8211; looks like bad compilation by the author).  Aside from the new tau leaping solver and the additional optimization algorithms there is little difference from build 32 in terms of functionality.  The new version has an annoying tendency to jump around the list of species and reactions.  Clicking on a reaction in a model with a long list of reactions results in the whole list jumping up, loosing your place in the list.  This is quite annoying when trying to move sequentially through long lists of reactions.  Also, in the previous versions the arrow keys used to move up and down through the list of reactions and species.  The arrow keys do move up and down the list, but the main screen doesn&#8217;t update,  so this is largely useless now.  The interface also stops taking keyboard input sometimes after running simulations with output graphs.  I have to click on the graph and then on the main Copasi window to get it to take keyboard inputs again.  This could be a compiz or gnome problem though (I&#8217;ll probably go Xfce after September anyway so this problem might go away).</p>
<p>There&#8217;s still no ability to copy reactions, which would be nice for making models of systems like MAPK cascades with sequential reactions that are very similar to the previous reaction.  It would also be handy to be able to highlight and copy the data in the various matrices that are produced into the clipboard.  This which would make it quicker to move data around software like Excel without having to generate and import reports.  The software does generate report ouputs though, so this is just an annoyance rather than a problem.</p>
<p>Copasi still lacks the capability to create 3D surface plots for multiple parameter scans, or find bifurcation points like xppaut, which considering this is one of xppaut&#8217;s primary strengths you would think the developers would incorporate into Copasi.  As I said above though, Copasi can output reports, so you can attempt to wrestle the raw data through the python bindings and plot using matplotlib or just dump it into sigmaplot or origin.</p>
<p>There&#8217;s still no statistical analysis for stochastic simulations.  It would be useful to generate mean and standard deviation values for repeats of stochastic simulations, as the raw data outputted in the reports is virtually useless, unless you can write your own scrupt to sort it and calculate the statistics.  It&#8217;s impossible to do by hand.  As stochastic simulations require multiple trajectories that are then compiled into mean and SD for things like signal:noise ratios this is a major pain.  The developers did help me a while back though with a python script to do this, which was very much appreciated.  This was about 2 years ago and it would have been nice to see this implemented in the software.</p>
<p>You still can&#8217;t program in custom rate laws and have the save if they&#8217;re not assigned to a reaction when you exit the software.  This is annoying as I have different strength promoters that I was representing with different rate laws and switching between them between simulations.  Now I have to have multiple models or code them each time I load the software.  I ended up working around this though by assigning global quantities to parameters in a generic rate law.  It&#8217;s a bit more elegant than having multiple unused rate laws in your model file I suppose.  I can also then manipulate these global quantities with other rate laws and output them with the data so it does provide a lot of flexibility.</p>
<p>All things considered, Copasi still remains the best of the GUI based modelling tools with the amount of optimization algorithms and solvers, and it&#8217;s free, so you can&#8217;t really complain at the glacial development.  The average Joe biologist (me) just couldn&#8217;t code this stuff in Matlab or Fortran.  The Python bindings provide the potential to couple it up with xppy, to use Copasi&#8217;s solvers and optmization routines with Python as a hub and augment it with functions from PySces and xppaut.  I hope to look more into using Python as a central controller for these tools once I get some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/08/04/copasi-play-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copasi 4.7 build 34</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/07/18/copasi-4-7-build-34/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/07/18/copasi-4-7-build-34/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 10:48:06 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PhD]]></category>
		<category><![CDATA[Copasi]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=692</guid>
		<description><![CDATA[A new version of Copasi has been released. Version 4.7 (build 34) includes the following changes: Graphical User Interface (CopasiUI) Enhanced parsing of mathematical expression to allow the comparison operator , &#62;=, and == as well as the Boolean operators &#124;&#124; and &#38;&#38;. Allowed calculation results to be selected as constraints for optimization and parameter [...]]]></description>
			<content:encoded><![CDATA[<p>A new version of Copasi has been released. Version 4.7 (build 34) includes the following changes:</p>
<p><strong> Graphical User Interface (CopasiUI)</strong></p>
<ul>
<li>Enhanced parsing of mathematical expression to allow the comparison operator , &gt;=, and == as well as the Boolean operators || and &amp;&amp;.</li>
<li>Allowed calculation results to be selected as constraints for optimization and parameter estimation.</li>
<li>Improved display of mass conservation results. The moieties are now displayed in amount if the user is in the concentration framework.</li>
<li>Added Update Model button to the optimization result widget</li>
<li>Notes in text or XHTML format are now available for compartments, species, reactions, global quantities, events, and kinetic functions.</li>
<li>Support links in XHTML notes.</li>
<li>Support of render informations in graphical model layouts.</li>
</ul>
<p><strong> Simulation Engine</strong></p>
<ul>
<li>The calculation of statistics is now optional for optimization and parameter estimation tasks.</li>
<li>Start values can now be randomized automatically for optimization and parameter estimation tasks.</li>
<li>Enhanced MCA algorithm performance by applying a new selection criterion before each internal step.</li>
<li>Added an stochastic algorithm (Adaptive SSA/Tau-Leap) which dynamically partitions the model into parts simulated by the direct algorithm and the Tau-Leap algorithm.</li>
</ul>
<p><strong> SBML</strong></p>
<ul>
<li>Added support for constant conversion factors in Level 3.</li>
<li>Import SBML Level 3 Version 1.</li>
<li>Added SBML notes support for compartments, species, reactions, global quantities, events, and kinetic functions.</li>
<li>Added MIRIAM annotation support for events.</li>
<li>Support for the SBML Render Extension.</li>
</ul>
<p>Copasi is available from <a title="Copasi homepage" href="http://www.copasi.org">www.copasi.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/07/18/copasi-4-7-build-34/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cairoplot</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/06/16/cairoplot/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/06/16/cairoplot/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 09:34:38 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=622</guid>
		<description><![CDATA[Cairoplot is a Python API that uses the Cairo graphics package to plot nice looking graphs for presentations and websites. You can do bar charts, pie charts, function plots, gantt charts etc. I stumbled over a couple of blogs explaining how it&#8217;s possible to embed Python code into LaTeX, using python.sty programmed by Martin R. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="https://launchpadlibrarian.net/16773250/logo.png" alt="cairoplot-logo" /><br />
<a href="http://linil.wordpress.com/2008/09/16/cairoplot-11/">Cairoplot</a> is a Python API that uses the <a href="http://cairographics.org/">Cairo graphics package</a> to plot nice looking graphs for presentations and websites.  You can do bar charts, pie charts, function plots, gantt charts etc.  </p>
<p>I stumbled over a couple of blogs explaining <a href="http://www.texample.net/weblog/2008/oct/24/embedding-python-latex/">how it&#8217;s possible to embed Python code into LaTeX</a>, using python.sty programmed by <a href="http://www.imada.sdu.dk/~ehmsen/pythonlatex.php">Martin R. Ehmsen</a> (another <a href="http://www.jkwchui.com/2010/03/latex-embedded-python-12/">good tutorial is here as well</a>).  The author&#8217;s website is producing 404 errors and there is no download for python.sty.  I found a copy on the web and <a href="http://www.stevecheckley.co.uk/python.sty">have it available here</a>, purely because I can&#8217;t link to it from the author.  </p>
<p>There is some example code for embedding Python script, from over at the <a href="http://www.texample.net/weblog/2008/oct/24/embedding-python-latex/">texexample.net blog</a>:<br />
<code>%&#038; -shell-escape<br />
\documentclass{article}<br />
\usepackage{python}<br />
\begin{document}</code></p>
<p>Say hello Python:<br />
<code>\begin{python}%<br />
print r"Hello \LaTeX!"<br />
\end{python}%<br />
\end{document}<br />
</code></p>
<p>You have to remember to compile your LaTeX script with –shell-escape option.  The post also continues to do some plotting with PyX.  </p>
<p>For embedding Cairoplot in LaTeX there is some example code at <a href="http://www.goodmami.org/2009/03/latex-python-and-cairoplot/">Michael Wayne Goodman&#8217;s blog (goodmami.org)</a><br />
<a href="http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/"><br />
Some example code for a dot plot from the Cairoplot web page is below</a>:<br />
<code>dot_line_plot (name,<br />
               data,<br />
               width,<br />
               height,<br />
               background = None,<br />
               border = 0,<br />
               axis = False,<br />
               grid = False,<br />
               h_legend = None,<br />
               v_legend = None,<br />
               h_bounds = None,<br />
               v_bounds = None)<br />
</code><br />
name – Name of the desired output file, no need to input the .svg as it will be added at runtim;<br />
data – The list, list of lists or dictionary holding the data to be plotted;<br />
width, height – Dimensions of the output image;<br />
background – A 3 element tuple representing the rgb color expected for the background. If left None, a gray to white gradient will be generated;<br />
border – Distance in pixels of a square border into which the graphics will be drawn;<br />
axis – Whether or not the axis are to be drawn;<br />
grid – Whether or not the gris is to be drawn;<br />
h_legend, v_legend – lists of strings containing the horizontal and vertical legends for the axis;<br />
h_bounds, v_bounds – tuples containing the lower and upper value bounds for the data to be plotted.</p>
<p>They use the following example:<br />
<code>teste_data_2 = {"john" : [10, 10, 10, 10, 30], "mary" : [0, 0, 3, 5, 15], "philip" : [13, 33, 11, 25, 2]}<br />
teste_h_legend = ["jan/2008", "feb/2008", "mar/2008", "apr/2008", "may/2008"]<br />
CairoPlot.dot_line_plot('teste2', teste_data_2, 400, 300, h_legend = teste_h_legend, axis = True, grid = True)<br />
</code><br />
to plot an example line type plot with multiple lines, such as used quite often in biology publications.</p>
<p>I recreate the code here to keep a record for myself, the original should be viewed on the <a href="http://linil.wordpress.com/2008/06/14/cairoplot-plotting-graphics-using-python-and-cairo/">Cairoplot page</a> with the output images.</p>
<p>But now you too can have opengl rendered graphs in your thesis! :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/06/16/cairoplot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>datatools</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/06/15/datatools/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/06/15/datatools/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 22:41:49 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=615</guid>
		<description><![CDATA[Copasi et al like to output data as csv files. Writing a thesis in LaTeX means eventually you will have to input a table of this data, particularly lists of parameter values etc. Tables aren&#8217;t easy to do. Well, they are but they can be a pain to format and bug hunt if it&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>Copasi <em>et al</em> like to output data as csv files.  Writing a thesis in LaTeX means eventually you will have to input a table of this data, particularly lists of parameter values etc.  Tables aren&#8217;t easy to do.  Well, they are but they can be a pain to format and bug hunt if it&#8217;s a big one.  Fortunately, there is the datatool package that can read in a csv file and produce a table from it automagically.  There is comprehensive documentation <a href="http://ctan.org/tex-archive/macros/latex/contrib/datatool">over at the ctan</a>, but to do it simply, you need a csv file (obviously), and the \usepackage{datatool} in your header.</p>
<p><code>\DTLloaddb{my-table}{./path-to-your-csv-file/my-table.csv}<br />
\DTLdisplaydb{my-table}<br />
</code></p>
<p>will display your csv in a default table in your document.</p>
<p>Simple as.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/06/15/datatools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XPPPad</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/05/06/xpppad/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/05/06/xpppad/#comments</comments>
		<pubDate>Fri, 06 May 2011 14:30:14 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=586</guid>
		<description><![CDATA[Although as a loyal Linux user I can&#8217;t condone the spread of Apple :p , Bard Ermentrout &#038; Ashutosh Mohan have been busy and created an iPad version of XPPAUT. I don&#8217;t own an iPad so haven&#8217;t tested it out (if anybody wants to donate one I will!! ). The interface has had an overhaul [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/05/xpp-pad-logo.png"><img src="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/05/xpp-pad-logo.png" alt="xpp-ipad logo" title="xpp-pad-logo" width="188" height="189" class="alignleft size-full wp-image-587" /></a><br />
Although as a loyal Linux user I can&#8217;t condone the spread of Apple :p  , Bard Ermentrout &#038; Ashutosh Mohan have been busy and created an <a href="http://itunes.apple.com/us/app/xpp/id433859546?mt=8">iPad version of XPPAUT</a>.  I don&#8217;t own an iPad so haven&#8217;t tested it out (if anybody wants to donate one I will!! <img src='http://www.stevecheckley.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).  The interface has had an overhaul for the new tablet format, but it looks like it retains all the same functionality.  I would be interested to see how the iPad hardware copes with number crunching.</p>
<p>A comment by Herbert Sauro below also points out that it would be interesting to see if it still links with AUTO, as the most popular functionality in the desktop edition of XPPAUT is bifurcation analysis.</p>
<p>XPP for iPad is interesting though as Universities are considering supplying undergrad programs with tablets, pre-loading them with XPP would be ideal for computer science and systems biology students.</p>
<p><a href="http://itunes.apple.com/us/app/xpp/id433859546?mt=8">Available for free in your local iTunes store.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/05/06/xpppad/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Evince hand panning</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/04/13/evince-hand-panning/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/04/13/evince-hand-panning/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 10:35:53 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=533</guid>
		<description><![CDATA[Ubuntu and its spin off distributions come with the Evince document viewer. It&#8217;s much lighter than Adobe reader and supports many document formats so has been my reader of choice for articles. One of the things I liked about the Windows versions of Adobe and Foxit readers is the click and drag scroll feature. You [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/04/Grab.png"><img src="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/04/Grab.png" alt="" title="Grab" width="40" height="40" class="alignnone size-full wp-image-543" /></a><br />
Ubuntu and its spin off distributions come with the <a href="http://projects.gnome.org/evince/">Evince document viewer</a>.  It&#8217;s much lighter than Adobe reader and supports many document formats so has been my reader of choice for articles.</p>
<p>One of the things I liked about the Windows versions of Adobe and Foxit readers  is the click and drag scroll feature.  You can use the mouse to slowly pan down the document as you read.  I find this easier than having to move my hands to the keyboard arrows because I&#8217;m terminally lazy and my eyes lose the line I&#8217;m on as I scroll.  Unfortunately this feature doesn&#8217;t exist in the stock Evince installation.  However!  I stumbled over this blog post over at <a href="http://www.techytalk.info/2011/03/ubuntu-evince-with-panning-hand-for-scrolling-ppa/">TechiTalk.info</a> that details a patched version of Evince with the drag scroll option by<a href="https://launchpad.net/~irie"> IRIE Shinsuke</a>.</p>
<p>Add the PPA with: sudo add-apt-repository <a href="https://launchpad.net/~irie">ppa:irie/evince</a></p>
<p>Once installed just add the hand drag icon to the tool bar and have it selectable as your scroll method.  More detailed info is available over at <a href="http://www.techytalk.info/2011/03/ubuntu-evince-with-panning-hand-for-scrolling-ppa/">TechiTalk blog</a> or the <a href="https://launchpad.net/~irie">Shinsuke&#8217;s launchpad page</a> if required.</p>
<p>Happy days.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/04/13/evince-hand-panning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XPPAUT</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/03/10/502/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/03/10/502/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 00:11:40 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PhD]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=502</guid>
		<description><![CDATA[Recently, I&#8217;ve been playing about with some modelling tools but as time runs out it&#8217;s getting harder and harder to dedicate time to learning high level programming languages like Python and Matlab. I have recently made a return to xppaut, the X Windows interface to the famous AUTO package. At first, the software looks like [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve been playing about with some modelling tools but as time runs out it&#8217;s getting harder and harder to dedicate time to learning high level programming languages like Python and Matlab.  I have recently made a return to <a href="http://www.math.pitt.edu/~bard/xpp/xpp.html">xppaut</a>, the X Windows interface to the famous AUTO package.  At first, the software looks like it was built to control a 1957 nuclear power reactor, and it hasn&#8217;t really developed for the past 15 years.  However, if it aint broke don&#8217;t fix it, and xppaut&#8217;s functionality still challenges the likes of Mathematica and Matlab.  Copasi was initially conceived to supersede auto however despite it&#8217;s powerful parameter estimation and data fitting features Copasi still lacks some important features such as 3D plots, bifurcation and steady state analysis.  After compiling the latest version 6.10 from source code on Linux I began wrestling with the interface, and made some progress with the example ode files.  The interface is actually quite intuitive once you start using the keyboard shortcuts, and you can explore your models very quickly with a few key strokes.  The operations are instantaneous and the software takes virtually no resources to run.  The basic scripting language XPPAUT uses is very simple to build systems of ODE&#8217;s, as well as input mathematical formulas from text books and publications.  You don&#8217;t require knowledge of the kinetics as you do for building reactions in Copasi.  Once your model is in you can just button bash to start hunting out steady states and use various graphical trajectory tools.  Within an hour or so of coffee and harsh language I made a plot of the <a href="http://www.scholarpedia.org/article/FitzHugh-Nagumo_model">Fitzhugh-Nagumo equations</a> (a non-linear system used for modelling nerve conduction), added some Nullclines to find a fixed point, analysed it&#8217;s stability (finally understanding a bit of the mystery of eigenvalues) and plotted some field lines (a major achievement for a biologist!):<br />
<a href="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/03/planar2.png"><img src="http://www.stevecheckley.co.uk/blog/wp-content/uploads/2011/03/planar2.png" alt="xppaut-interface" title="xppaut-interface" width="642" height="513" class="alignnone size-full wp-image-514" /></a></p>
<p>For the non-computer scientist / mathematicians, XPPAUT can provide some very fast results and give your matlab jedi colleagues a run for their money.  There are a number of ODE solvers, including stochastic algorithms, and more advanced features include parameter fitting of experimental data using the Levenberg–Marquardt algorithm and even animations of your systems.  Combined with Copasi&#8217;s range of parameter scanning and fitting features, these two tools are potentially very empowering for the biologists in systems biology.  Personally, I think xppaut is much more diverse than Copasi, particularly the model script being able to input mathematical formulae, and I would have recommended it to our 1st year doctoral training program.  The ability to visualize fixed points and watch the eigenvalues changing with the stability helped to understand this as a non-mathematician.</p>
<p>I&#8217;m off to find more Fitzhugh-Nagumo fixed points&#8230;</p>
<p>Update:  For those interested in the software, there is an accompanying book:  <a href="http://www.amazon.co.uk/Simulating-Analyzing-Animating-Dynamical-Systems/dp/0898715067/ref=sr_1_1?ie=UTF8&#038;qid=1303896543&#038;sr=8-1">Simulating, Analyzing, and Animating Dynamical Systems</a> by Bard Ermentrout which is really easy to read and goes through all the functions with worked examples and is clearly illustrated.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/03/10/502/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>tired eyes</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/03/05/tired-eyes/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/03/05/tired-eyes/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 17:52:40 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=487</guid>
		<description><![CDATA[Growing time spent at the laptop have lead to increasing eye strain and migraine. This is just something a Ph.D student has to crack on with, however recently I&#8217;ve been experimenting with RedShift. Redshift is a handy Linux application that dynamically adjusts the screen&#8217;s colour temperature throughout the day to reduce the strain on the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jonls.dk/wp-content/uploads/redshift-icon-256-150x150.png" alt="redshift logo" /><br />
Growing time spent at the laptop have lead to increasing eye strain and migraine.  This is just something a Ph.D student has to crack on with, however recently I&#8217;ve been experimenting with <a href="http://jonls.dk/redshift/">RedShift</a>.  Redshift is a handy Linux application that dynamically adjusts the screen&#8217;s colour temperature throughout the day to reduce the strain on the eyes as they fatigue.  The software is inspired by <a href="http://stereopsis.com/flux/">f.lux</a> which is available for Windows, Mac, and Linux, but Redshift attempts to improve on the Linux version a bit.  At first it looks a bit pink, but after a few days (and particularly nights) I have experienced reduced pain after prolonged hours of reading journal articles and staring at maths.</p>
<p>Much recommended if you&#8217;re working the graveyard shift.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/03/05/tired-eyes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Python and Systems Biology</title>
		<link>http://www.stevecheckley.co.uk/blog/2011/01/13/379/</link>
		<comments>http://www.stevecheckley.co.uk/blog/2011/01/13/379/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 17:46:42 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PhD]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.stevecheckley.co.uk/blog/?p=379</guid>
		<description><![CDATA[Recently I&#8217;ve tried to pick up Python again as a generic programming language that I could use to do some modelling and supplement Copasi. Currently Copasi can&#8217;t do bifurcation analysis which I&#8217;ve been interested in using to explore models of MAP kinase cascades. I had a look at xppAut and worked through some tutorials, and [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="python logo" src="http://www.python.org/community/logos/python-powered-h-100x130.png" title="python logo" class="alignleft" width="100" height="130" />Recently I&#8217;ve tried to pick up Python again as a generic programming language that I could use to do some modelling and supplement Copasi.  Currently Copasi can&#8217;t do bifurcation analysis which I&#8217;ve been interested in using to explore models of MAP kinase cascades.  I had a look at xppAut and worked through some tutorials, and also Matlab which is perfectly capable of doing this kind of analysis but I have always wanted to pick up a language that I could use to get a programming skills.  Matlab&#8217;s code repository is comprehensive and pretty much anything you want to do has been done already, with infinite web site and forum discussions.  Matlab however is BIG and challenges the bank account when not on an academic license.  Python was mentioned at a few conferences in systems biology and many tools seem to be being developed with it and I had also used Python many years ago for data analysis so I had had some experience with it (I have no preference in particular for Python over Perl, Java, C, Fortran, or whatever, it just was going that way).  Copasi also has Python bindings that enable you to script its functions and I thought I might be able to supplement Copasi&#8217;s simulators with additional features.</p>
<p>When I started my Ph.D many of the Python based systems biology tools were still emerging and I struggled to get them running, so I always defaulted back to Copasi or Matlab.  There also weren&#8217;t many available other than scipy and numpy and the ODE integrators just didn&#8217;t compete with Matlab&#8217;s ODE45 (or I couldn&#8217;t seem to find ODE45 for Python).  More recently however a number of tools have continued to develop and look very interesting.</p>
<p>I started up with the standard installation of python 2.6 in Ubuntu and added SciPy and NumPy from the repositories, with matplotlib.  I then installed PySCes, Stompy, PyDSTools, and the Copasi language bindings.</p>
<p><a href="http://pysces.sourceforge.net/">PySces</a> (Brett G. Olivier <em>et al</em>, Stellenbosch University) is a general toolset for all things to do with simulating cellular systems.  It&#8217;s now compatible with SBML so I could import all the models I had built up in Copasi.  (The process of exporting from Copasi to SBML and into PySCes however loses the names of all the species which is annoying in larger models).  PySCes can do timecourse simulations with LSODA and CVODE, calculate steady state with HYBRD and NLEQ2, do MCA, structural analysis, bifurcation analysis with PITCON, and n dimensional parameter scans.</p>
<p><a href="http://stompy.sourceforge.net/">Stompy</a> (Timo Maarleveld and B. G. Olivier, also Stellenbosch University) is in extension to PySCes that adds stochastic modelling to the above tools.  It includes Direct, next reaction, and Tau leaping algorithms.  Stompy can also plot the simulation output and do data analysis such as propensities, distributions, waiting times etc.  The website includes a number of <a href="http://stompy.sourceforge.net/html/userguide_doc.html#analysis">clear tutorials and is quite simple to use.</p>
<p><a href="http://wiki.python.org/moin/PyDSTool">PyDSTool</a> (Prof. Rob Clewley lab, Georgia State University) is another modelling toolbox with ODE/DAE/discrete map simulation tools, bifurcation analysis, symbolic expression utilities, and is compatible with SciPy and the SBML file format.</p>
<p>I&#8217;m not sure how much overlap there is between PySCes and PyDSTool in terms of functionality.  I have not used either in great depth yet.  PyDSTool has a <a href="http://www2.gsu.edu/~matrhc/Tutorial.html">nice tutorial </a>for finding and investigating a bifurcation point.</p>
<p>Both tools appear to be being integrated into the graphical application <a href="http://tinkercell.wikidot.com/suggestions">Tinkercell</a> (which also has a <a href="http://tinkercell.wikidot.com/python-scripts">number of handy Python scripts</a> for interrogating models of biological systems).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stevecheckley.co.uk/blog/2011/01/13/379/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

