<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>
<channel>
	<title>Your bones got a little machine &#187; linux</title>
	<atom:link href="http://blog.pansapiens.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pansapiens.com</link>
	<description>Ideas are cheap, implementation is expensive; act accordingly.</description>
	<lastBuildDate>Sat, 28 Jan 2012 03:00:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
		<item>
		<title>Running a local JABAWS server for Jalview on Ubuntu (11.04 Natty)</title>
		<link>http://blog.pansapiens.com/2011/10/14/running-a-local-jabaws-server-for-jalview-on-ubuntu-11-04-natty/</link>
		<comments>http://blog.pansapiens.com/2011/10/14/running-a-local-jabaws-server-for-jalview-on-ubuntu-11-04-natty/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 03:52:52 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=308</guid>
		<description><![CDATA[The excellent Jalview sequence alignment visualization and editing tool has the ability to send a set of sequences to a multiple sequence alignment web service (&#8220;JABAWS&#8221;) and receive the results in a new alignment window. This is really convenient when you are doing lots of sequence analysis, and Geoff Barton&#8217;s group at the University of Dundee [...]]]></description>
			<content:encoded><![CDATA[<p>The excellent Jalview sequence alignment visualization and editing tool has the ability to send a set of sequences to a multiple sequence alignment web service (&#8220;JABAWS&#8221;) and receive the results in a new alignment window. This is really convenient when you are doing lots of sequence analysis, and Geoff Barton&#8217;s group at the University of Dundee provide a JABAWS server that Jalview will use by default.</p>
<p>But maybe the Dundee server is down. Or maybe you think your local machine will do things faster. Or maybe you work on über secret sequences in some Faraday cage bunker with no permanent network connection. In each of these cases, you may want to run your own local JABAWS server and use that instead. In this case, read on.</p>
<p><span id="more-308"></span></p>
<p><a href="http://www.compbio.dundee.ac.uk/jabaws/download.html">Download the JABAWS war file</a> (direct link <a href="http://www.compbio.dundee.ac.uk/jabaws/archive/jaba.war">here</a>).</p>
<p>Install Apache Tomcat and the management interface:</p>
<pre style="padding-left: 30px;">sudo apt-get install tomcat6 tomcat6-admin</pre>
<p>As root, edit the<em> /etc/tomcat6/tomcat-users.xml</em> file to enable admin access.</p>
<p>Between the <em>&lt;tomcat-users&gt;&lt;/tomcat-users&gt;</em> tags, add:</p>
<pre style="padding-left: 30px;">&lt;role rolename="admin"/&gt;
&lt;user username="tomcat" password="s3cret" roles="admin"/&gt;</pre>
<p>where &#8216;s3cret&#8217; is a secret password for the user &#8216;admin&#8217;.</p>
<p>Go to <a href="http://localhost:8080/manager/html/">http://localhost:8080/manager/html/</a> and login as &#8216;admin&#8217; and the password you set.</p>
<p>Under <em>&#8220;WAR file to deploy&#8221;</em>, click on the <em>&#8220;Choose File&#8221;</em> button, and select the <em>jaba.war</em> file you downloaded.</p>
<p>Now you need to set the permissions of the Muscle/Mafft/Clustal etc binaries that come packaged with JABAWS. Type the following commands:</p>
<pre style="padding-left: 30px;">cd /var/lib/tomcat6/webapps/jaba/binaries/src</pre>
<pre style="padding-left: 30px;">sudo chmod +x setexecflag.sh</pre>
<pre style="padding-left: 30px;">sudo ./setexecflag.sh</pre>
<p>This should do it .. in <a href="http://www.jalview.org/">Jalview</a>, go to Preferences, and under the &#8220;Web Services&#8221; tab add a new service URL &#8220;http://localhost:8080/jaba&#8221; (no quotes, no trailing backslash).  Now when you load an alignment, your local JABAWS server should appear under the &#8220;Web Service-&gt;JABAWS Alignment menu&#8221;.</p>
<p><em>For the record .. I tried this under the version of Jetty packaged with Ubuntu 11.04, but I couldn&#8217;t get it to work so I gave up and just did it with Tomcat as per the JABAWS documentation.</em></p>
<h2>Links:</h2>
<p>This HOWTO is an Ubuntu specific regurgitation of the docs below.</p>
<pre><a href="http://www.compbio.dundee.ac.uk/jabaws/manual_qs_war.html">http://www.compbio.dundee.ac.uk/jabaws/manual_qs_war.html</a></pre>
<pre><a href="https://help.ubuntu.com/10.04/serverguide/C/tomcat.html">https://help.ubuntu.com/10.04/serverguide/C/tomcat.html</a></pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2011/10/14/running-a-local-jabaws-server-for-jalview-on-ubuntu-11-04-natty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Stack Exchange sites for science</title>
		<link>http://blog.pansapiens.com/2010/05/12/stackexchange-sites-for-science/</link>
		<comments>http://blog.pansapiens.com/2010/05/12/stackexchange-sites-for-science/#comments</comments>
		<pubDate>Wed, 12 May 2010 05:33:48 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[crystallography]]></category>
		<category><![CDATA[friendfeed]]></category>
		<category><![CDATA[nmr]]></category>
		<category><![CDATA[stack exchange]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=205</guid>
		<description><![CDATA[Recently I&#8217;ve noticed the emergence of several Stack Overflow-style sites for science-related questions and answers. For those unfamiliar with Stack Overflow &#8211; it&#8217;s a question and answer &#8216;forum&#8217; for computer programmers that keeps the signal-to-noise ratio very high through a carefully refined reputation system. Late last year the creators of Stack Overflow launched a hosted [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve noticed the emergence of several Stack Overflow-style sites for science-related questions and answers. For those unfamiliar with Stack Overflow &#8211; it&#8217;s a question and answer &#8216;forum&#8217; for computer programmers that keeps the signal-to-noise ratio very high through a carefully refined reputation system. Late last year the creators of Stack Overflow launched a hosted service called Stack Exchange, which allows anyone to start their own &#8220;Stack Overflow&#8221; based around any topic.</p>
<div id="attachment_222" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.flickr.com/photos/alicebartlett/2363694735/"><img class="size-medium wp-image-222   " style="margin-top: 2px; margin-bottom: 2px;" src="http://blog.pansapiens.com/wp-content/uploads/2010/05/2363694735_507a4eea3b_o-300x237.jpg" alt="2363694735_507a4eea3b_o" width="300" height="237" /></a><p class="wp-caption-text"> http://www.flickr.com/photos/alicebartlett/ / CC BY-NC 2.0</p></div>
<div>The service is was a little pricey ($129+/month), and I suspect this is one reason why a few open source clones inspired by Stack Overflow also exist. Since then, Stack Exchange sites (or clones) have proliferated &#8211; and those working as scientists (or those interested in science) haven&#8217;t been neglected. Here are my favorites:</div>
<ul>
<li><a href="http://majorgroove.org/">MajorGroove.org</a> pitches itself as a &#8216;forum for biologists&#8217;, which it is, however most of the content currently focuses on X-ray crystallography and associated techniques. It is currently in &#8216;bootstrap mode&#8217;, which means that reputation requirements are a little less strict until the userbase and site activity has grown to a critical size. Is there even a need for a Stack Exchange forum for biological crystallography ? Macromolecular crystallography already has a single, central, <em>de facto </em>standard forum &#8211; the <a href="https://www.jiscmail.ac.uk/cgi-bin/webadmin?S1=CCP4BB">CCP4BB mailing list</a>. While it may be antiquated by Web2.0 standards, CCP4BB works well for a lot of people, and there is a huge amount of useful and important information buried in it&#8217;s archives. For many crystallographers, it seems CCP4BB would only be extracted from their &#8220;cold dead hands&#8221;. Despite this, I think the Stack Overflow format will be very beneficial for people new to the field.  <em>As a side note </em>- I discovered MajorGroove via <a href="http://xia2.blogspot.com/">Graeme Winters XIA2 blog</a> right around the time when I was considering kickstarting a &#8220;Stack Overflow for crystallography&#8221;. At the moment it seems that a small userbase of crystallographers is already established on MajorGroove and there would be no purpose for another near identical forum. Even if questions about other techniques in the biosciences start to dilute out the structural biology, one click on the &#8216;<a href="http://www.majorgroove.org/questions/tagged/crystallography">crystallography</a>&#8216; tag or the &#8216;<a href="http://www.majorgroove.org/questions/tagged/ccp4">ccp4</a>&#8216; tag, and you can get straight to the good stuff. (In fact this feature was deemed useful enough by Google that they decided to bless the &#8216;<a href="http://stackoverflow.com/questions/tagged/android">android</a>&#8216; tag on Stack Overflow as the official Android Q&amp;A forum).</li>
<li>NMRWiki Q&amp;A (<a href="http://qa.nmrwiki.org/">http://qa.nmrwiki.org/</a>) is a StackExchange-clone for magnetic resonances, mostly focused on NMR, but also open to EPR/ESR and MRI users. It&#8217;s not actually running on the StackExchange platform, but uses the open source <a href="http://github.com/cnprog/CNPROG/network">OSQA / CNPROG</a> clone, built on top of Django. As far as I know, there is no &#8220;CCP4BB for NMR&#8221;, which makes the NMRWiki Q&amp;A site potentially even more valuable to structural biologists than it&#8217;s crystallography centric cousin, MajorGroove. Back when I was doing my PhD using protein NMR spectroscopy as my primary technique, there were very few good resources like this online &#8211; I do less NMR these days, but you can bet that I&#8217;ll be using the NMRWiki Q&amp;A and it&#8217;s associated wiki to refresh my memory and catch up on need methodological developments in the future.</li>
<li>BioStar (<a href="http://biostar.stackexchange.com/">http://biostar.stackexchange.com/</a>), a StackExchange for bioinformatics, computational genomics and systems biology questions and answers. This one is busier and better established than the above mentioned forums, probably by virtue of the fact the bioinformaticians spend more time in front of the computer than your average molecular biologist or structural biologist.</li>
<li>And, for a bit of fun: Skeptic Exchange (<a href="http://exchange.bristolskeptics.co.uk/">http://exchange.bristolskeptics.co.uk/</a>), which covers rational questions and answers to various topics including pseudoscience, faith healing, the supernatural and alternative medicine.</li>
</ul>
<p>Want more ? There are a bunch of science related StackExchanges listed under &#8220;Science&#8221; here: <a href="http://meta.stackexchange.com/questions/4/list-of-stackexchange-sites">http://meta.stackexchange.com/questions/4/list-of-stackexchange-sites</a> .. and digging back through the <a href="http://friendfeed.com/todd-lab/dd6ae79e/some-stack-exchange-based-science-discussion#">FriendFeed archives I see Matt Todd initiated a concise listing</a> (which if I&#8217;d seen, I probably never would have started this post).</p>
<p>And now, the latest<strong>*</strong> news <a href="http://blog.stackexchange.com/post/518474918/stack-exchange-2-0">Stack Exchange 2.0 will be &#8216;free</a>&#8216;. It looks like they are trying to structure the new Stack Exchange ecosystem a bit like the Usenet hierarchy (comp.*, rec.* etc), with a fairly involved discussion, proposal and acceptance process for new sites &#8211; it&#8217;s unclear yet whether this approach is going to work out better than just open sourcing the whole shebang, but time will tell. My guess is that BioStar, MajorGroove and probably even an incarnation of NMRWiki Q&amp;A will eventually become part of this formalized ecosystem.</p>
<p>On one hand making StackExchange sites free to run is great &#8211; it lowers the barrier to entry to allow many more sites to emerge and operate. On the other hand, as we have seen with the acquisition of FriendFeed by Facebook, not having a clear revenue stream can ultimately leave communities  (such as <a href="http://friendfeed.com/the-life-scientists">The Life Scientists</a>) without any certainty in a sites future, potentially impacting growth and participation. Personally I&#8217;m much more inclined to invest time in a site if it is something like Wikipedia, where I know my contributions are very likely to live on, in some form, for decades (centuries ?) to come. Ideally the archives of these new Stack Exchange sites could become useful online resources for decades to come &#8211; but with a single company at the helm and a &#8220;Web 2.0 business model&#8221;, continued operation for even a decade seems unlikely. The one saving grace: all content on the new Stack Exchange sites will be licensed under a Creative Commons license &#8211; so if Stack Exchange itself is acquired and shut down, we will always be able to preemptively leech the archives and provide them online elsewhere. Maybe it&#8217;s strange that I&#8217;m already thinking about archiving the new Stack Exchange upon it&#8217;s demise before it&#8217;s even begun, but I think it&#8217;s important to take the long term view with our data and recorded wisdom. Unlike when in 1994 when GeoCities (<a href="http://www.oocities.com/">R.I.P</a>) was started, teh Internets is no longer a fad &#8211; the hard disks connected to it are fast becoming the sum of all accessible human knowledge, so we&#8217;d better make sure we can retain the good bits for a little longer than 10 years.</p>
<p><em>* &#8211; as all too common these days .. I&#8217;m a little behind the curve on this one. I meant to finish this post a month ago, but with a busy time pre-holiday, then the actual holiday, a month has gone by.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2010/05/12/stackexchange-sites-for-science/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Count the number of sequences in a FASTA format file: a Unix shell snippet</title>
		<link>http://blog.pansapiens.com/2008/09/01/count-the-number-of-sequences-in-a-fasta-format-file-a-unix-shell-snippet/</link>
		<comments>http://blog.pansapiens.com/2008/09/01/count-the-number-of-sequences-in-a-fasta-format-file-a-unix-shell-snippet/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 05:49:38 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=82</guid>
		<description><![CDATA[Sometimes it&#8217;s nice to quickly check how many sequences are in a FASTA format sequence file. It barely warrants it&#8217;s own blog post, but here we go anyhow: my one-liner shell script for counting the number of sequences in a FASTA &#8220;flat-file database&#8221;, based on the presence of the &#8220;&#62;&#8221; header symbol. #!/bin/sh # ~/bin/countseqs [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s nice to quickly check how many sequences are in a <a href="http://en.wikipedia.org/wiki/FASTA_format">FASTA format</a> sequence file.</p>
<p>It barely warrants it&#8217;s own blog post, but here we go anyhow: my one-liner shell script for counting the number of sequences in a FASTA &#8220;flat-file database&#8221;, based on the presence of the &#8220;&gt;&#8221; header symbol.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/sh</span><br />
<span class="re3"># ~/bin/countseqs</span><br />
<span class="re3"># Counts the number of sequences <span class="kw1">in</span> a FASTA format file</span><br />
<span class="kw2">grep</span> <span class="st0">&quot;&gt;&quot;</span> $<span class="nu0">1</span> | <span class="kw2">wc</span> -l</div>
<p>Dead easy huh ? I put this in <em>~/bin/countseqs,</em> make it executable (<em>chmod +x ~/bin/countseqs</em>) and use it in lots of situations, as a quick sanity check.</p>
<p><em>(oh, btw, this is not public domain and u can&#8217;t use it for commercial gain without paying me a license fee. academic users can fax me something for a free license. k thx bye).</em></p>
<p><span style="color: #000000;">Couldn&#8217;t help myself &#8230; everyone else is doing it <img src='http://blog.pansapiens.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2008/09/01/count-the-number-of-sequences-in-a-fasta-format-file-a-unix-shell-snippet/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Setting up NCBI wwwblast on Ubuntu 8.04 (Hardy), Apache 2</title>
		<link>http://blog.pansapiens.com/2008/08/25/setting-up-wwwblast-on-ubuntu-apache/</link>
		<comments>http://blog.pansapiens.com/2008/08/25/setting-up-wwwblast-on-ubuntu-apache/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 07:28:35 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blast]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorial]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=80</guid>
		<description><![CDATA[Recently I needed to install NCBI wwwblast on my local workstation to enable some software that needed to interface with BLAST via the web service. It was straightforward to install, but I took some notes, because there were a few changes required with respect to the official wwwblast documentation at NCBI. These instructions are for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pansapiens.com/wp-content/uploads/2008/08/wwwblast.png" rel="lightbox[80]"><img class="alignright size-medium wp-image-81" title="wwwblast" src="http://blog.pansapiens.com/wp-content/uploads/2008/08/wwwblast-300x262.png" alt="" width="300" height="262" /></a></p>
<p>Recently I needed to install NCBI wwwblast on my local workstation to enable some software that needed to interface with BLAST via the web service. It was straightforward to install, but I took some notes, because there were a few changes required with respect to the <a href="http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/wwwblast/wwwblast.html">official wwwblast documentation at NCBI</a>. These instructions are for Ubuntu 8.04, but probably will work with many recent flavours of Debian.<br />
<span id="more-80"></span></p>
<h3>Download and install</h3>
<p>Download NCBI wwwblast from <a href="ftp://ftp.ncbi.nih.gov/blast/executables/LATEST/">ftp://ftp.ncbi.nih.gov/blast/executables/LATEST/</a> (The version <span class="file">I used was wwwblast-2.2.18-ia32-linux.tar.gz).</span></p>
<p>Untar it into /var/www/ , preserving permissions.</p>
<pre><strong>$</strong> cd /var/www/</pre>
<pre><strong>$</strong> sudo tar zxvpf <span class="file">wwwblast-2.2.18-ia32-linux.tar.gz
</span></pre>
<p><span class="file">You will also need to make sure <em>csh</em> (the &#8220;C-shell&#8221;) is installed, since the <em>blast.cgi</em> script needs this to run:</span></p>
<pre><span class="file"><strong>$</strong> sudo apt-get install csh
</span></pre>
<p><em><span class="file">(Thanks to </span><span class="commentauthor">jpopesku for spotting this missing package [comments below])</span></em></p>
<h3>Set up Apache2</h3>
<p><a href="http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/wwwblast/node10.html">The instructions in the official wwwblast manual</a> didn&#8217;t seem to work for Apache2 .. (could be a typo: <em>Follow SymLinks </em>should be <em>FollowSymLinks</em> &#8230; one camel-case word without the space). I put this in into the VirtualHost definition in the standard <em>/etc/apache2/sites-available/default</em> file used by Apache2 in Ubuntu 8.04.</p>
<div class="dean_ch" style="white-space: wrap;"> &nbsp; &nbsp;# modified slightly from:<br />
&nbsp; &nbsp; #http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/wwwblast/node10.html<br />
&nbsp; &nbsp; &lt;Directory &quot;/var/www&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; AddHandler cgi-script cgi REAL<br />
&nbsp; &nbsp; &nbsp; &nbsp; Options Indexes FollowSymLinks MultiViews +ExecCGI<br />
&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny<br />
&nbsp; &nbsp; &nbsp; &nbsp; Allow from all<br />
&nbsp; &nbsp; &lt;/Directory&gt;</div>
<p>The code above was inserted just before the &lt;/VirtualHost&gt; closing tag.</p>
<p>Restart Apache for good measure.</p>
<pre><strong>$</strong> sudo /etc/init.d/apache2 restart</pre>
<h3>Configure your wwwblast to see your databases</h3>
<p>Assuming you already have some existing <a href="http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/blastdb.html">BLAST formatted databases made with <em>formatdb</em></a>, you will then need to configure wwwblast to find them, <a href=" http://www.ncbi.nlm.nih.gov/staff/tao/URLAPI/wwwblast/node12.html">as per the manual</a>. In short, this involves putting the BLAST database files into <em>/var/www/blast/db/ </em>(or symlinking to the files), modifying <em>/var/www/blast/blast.rc </em>(or one of the other *.rc files, for other BLAST programs, eg psiblast) to associate the database name with a BLAST program, and modifying the dropdown database list in <em>/var/www/blast/blast.html </em>(or one of the other *.html files for other BLAST programs) to add the name of the database(s).</p>
<p>My BLAST databases live in <em>/data/databases/blast/</em>, so I simply moved the example database directory <em>/var/www/blast/db </em>to <em>/var/www/blast/db.orig<strong>:</strong></em></p>
<pre><strong>$</strong> sudo mv  /var/www/blast/db /var/www/blast/db.orig</pre>
<p>then symlinked <em>/var/www/blast/db</em> to <em>/data/databases/blast</em>:</p>
<pre><strong>$</strong> sudo ln -s /data/databases/blast /var/www/blast/db</pre>
<p>In <em>/var/www/blast/blast.rc</em> I changed the line:</p>
<pre>blastp test_aa_db</pre>
<p>to:</p>
<pre>blastp nr swissprot pdbaa</pre>
<p><em>(you may also want to configure blastn etc in the same way)</em></p>
<p>In <em>/var/www/blast/blast.html</em>, I changed the test database code:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;select name = &quot;DATALIB&quot;&gt;<br />
&nbsp; &nbsp; &lt;option VALUE = &quot;test_aa_db&quot;&gt; test_aa_db<br />
&nbsp; &nbsp; &lt;option VALUE = &quot;test_na_db&quot;&gt; test_na_db<br />
&lt;/select&gt;</div>
<p>to:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;select name = &quot;DATALIB&quot;&gt;<br />
&nbsp; &nbsp; &lt;option VALUE = &quot;nr&quot;&gt; nr<br />
&nbsp; &nbsp; &lt;option VALUE = &quot;swissprot&quot;&gt; swissprot<br />
&nbsp; &nbsp; &lt;option VALUE = &quot;pdbaa&quot;&gt; pdbaa<br />
&lt;/select&gt;</div>
<p><em>(you may want to do this for other BLAST programs too, eg also edit psiblast.html)</em></p>
<p>This will allow be to search the <em>nr</em>, <em>swissprot</em> and <em>pdbaa</em> databases I have installed using plain-vanilla BLAST.</p>
<h3>Test it out</h3>
<p>Go to <a href="http://localhost/blast/blast.html" target="_blank">http://localhost/blast/blast.html</a>.</p>
<p>You should find the wwwblast interface, with a dropdown box featuring the database(s) you added. Run a test search with your favorite sequences (ensure you also select the correct blast program, eg <em>blastp</em> !). Enjoy using your own CPU time !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2008/08/25/setting-up-wwwblast-on-ubuntu-apache/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Software review: producing two dimensional diagrams of membrane proteins</title>
		<link>http://blog.pansapiens.com/2008/06/26/software-review-producing-two-dimensional-diagrams-of-membrane-proteins/</link>
		<comments>http://blog.pansapiens.com/2008/06/26/software-review-producing-two-dimensional-diagrams-of-membrane-proteins/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 20:30:22 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[publication]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[structural biology]]></category>
		<category><![CDATA[two-point-oh]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[beta-barrels]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[structure]]></category>
		<category><![CDATA[visualization]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=60</guid>
		<description><![CDATA[I recently needed to make a simple, two dimensional figure of a beta-barrel membrane protein. I went hunting for programs that might take a sequence and/or structure and produce a pretty looking diagram to save me constructing everything by hand. Here are two I found and tried. TMRPres2D Ioannis C. Spyropoulos, Theodore D. Liakopoulos, Pantelis [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/tmrpres2d_lamb_ecoli.png" rel="lightbox[60]"><img class="alignright size-medium wp-image-61" title="TMRPres2D LAMB_ECOLI" src="http://blog.pansapiens.com/wp-content/uploads/2008/06/tmrpres2d_lamb_ecoli-300x250.png" alt="E. coli LamB, presented using TMRPres2D. Not that the cytoplasmic/extracellular labels are incorrect, and should say extracellular/periplasmic." width="300" height="250" /></a><strong><a href="http://bioinformatics.biol.uoa.gr/TMRPres2D/"></a></strong></p>
<p>I recently needed to make a simple, two dimensional figure of a beta-barrel membrane protein. I went hunting for programs that might take a sequence and/or structure and produce a pretty looking diagram to save me constructing everything by hand. Here are two I found and tried.</p>
<p><span id="more-60"></span></p>
<p><strong><a href="http://bioinformatics.biol.uoa.gr/TMRPres2D/">TMRPres2D</a></strong></p>
<p><span>Ioannis C. Spyropoulos, Theodore D. Liakopoulos, Pantelis G. Bagos and Stavros J. Hamodrakas</span><span><strong> TMRPres2D: high quality visual representation of transmembrane protein models</strong><span style="text-decoration: underline;"> Bioinformatics</span>. 2004;  20: 3258-3260. (<a href="http://resolveref.appspot.com/ref/Bioinformatics/2004/20/3258">link</a>)<br />
</span><br />
<strong>Pros:</strong></p>
<ul>
<li> Cross-platform (Java)</li>
<li> Simple interface, GUI (zero learning curve)</li>
<li> Lots of input options (defines transmembrane regions directly from SwissP<a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/tmrpres2d_secy_bucai.png" rel="lightbox[60]"><img class="alignright size-medium wp-image-62" title="TMRPres2D SECY_BUCAI" src="http://blog.pansapiens.com/wp-content/uploads/2008/06/tmrpres2d_secy_bucai-300x197.png" alt="TMRPres2D diagram of SECY_BUCAI. Labels \" width="300" height="197" /></a>rot or PIR annotations online, takes input from several transmembrane region predictors)</li>
<li> Lots of output formats and options (Postscript, gif, jpg, png, svg, bmp)</li>
<li> Various colouring options (hydrophobicity, charge, &#8220;printer friendly&#8221;)</li>
<li> Makes reasonable looking diagrams of helical transmembrane proteins</li>
</ul>
<p><strong>Cons:</strong></p>
<ul>
<li> Doesn&#8217;t handle beta-barrel membrane proteins gracefully (strand drawing is overlapped, messy).</li>
<li>The membrane is assumed to be a eukaryotic plasma membrane, with labels &#8220;cytoplasmic/extracellular&#8221; (which should be, for instance, &#8220;extracellular/periplasm&#8221; for a bacterial outer membrane protein). This is easily changed on the diagram with external editing.</li>
</ul>
<p><strong><a href="http://www.pharmazie.uni-kiel.de/chem/Prof_Beitz/textopo.htm">TeXtopo</a></strong></p>
<p>Beitz, E. (2000), <strong>TeXtopo: shaded membrane protein topology  	plots in LaTeX2e</strong>. <em>Bioinformatics</em> <strong>16</strong>: 1050-1051. (<a href="http://resolveref.appspot.com/ref/Bioinformatics/2000/16/1050">link</a>). See the <a href="http://resolveref.appspot.com/ref/Bioinformatics/2000/16/1050">original publication</a> or <a href="http://www.uni-kiel.de/Pharmazie/chem/Prof_Beitz/biotex.html">Professor Eric Beitz&#8217;s site</a> for a better example than my image.</p>
<p><a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/secy_textopo.png" rel="lightbox[60]"><img class="alignright size-medium wp-image-64" title="SecY textopo diagram" src="http://blog.pansapiens.com/wp-content/uploads/2008/06/secy_textopo-300x214.png" alt="" width="300" height="214" /></a></p>
<p><strong>Pros:</strong></p>
<ul>
<li>Beautiful, clean, publication quality diagrams, courtesy of LaTeX</li>
<li>Multiple input options (Swissprot format, PHD, HMMTOP, user defined)</li>
<li>Multiple sequence annotation options including colouring by various physiochemical properties (hydrophobicity, charge), sequence conservation or user defined schemes.</li>
<li>Will depict membrane embedded half-loops and lipid anchors.</li>
<li>Versatile output (Postscript, pdf, dvi, basically anything that LaTex can be rendered as)</li>
<li>Also can generate attractive looking helical wheel plots</li>
<li>Did I mention the output is clean and looks great &#8230; ?</li>
</ul>
<p><strong>Cons:</strong></p>
<ul>
<li>Steep learning curve for the uninitiated, despite extensive documentation (ie LaTeX code, no GUI)</li>
<li>No support for beta-barrel membrane proteins</li>
</ul>
<p>If I ever need to make a 2D diagram of a helical membrane protein for a publication, TeXtopo would be my first choice. For quickly getting an overview of some transmembrane prediction results or a protein with defined tranmembrane regions in Uniprot, TMRPres2D is the quickest and easiest method.</p>
<p>In the end, since neither program would do a decent job at cleanly depicting the strands of a beta-barrel in a simple 2D plot, I ended up coding my own hackish solution (<a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/svg_barrel.tar.gz">svg_barrel.tar.gz</a> or <a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/svg_barrel_gui_win32.zip">svg_barrel_gui_win32.zip</a>) using Python and a tweaked version of <em>SVGdraw.py</em>. This allowed me to generate some SVG graphics to use as a starting point, and then hand edit the result in Inkscape to align strands to loosely match the real hydrogen bonding patterns. I also added some simple beizer curves for the loops, since neat placement of loop residues was the tricky part that I decided I didn&#8217;t have time to tackle.</p>
<p>Here&#8217;s the end result, after hand editing:<br />
    <object type="image/svg+xml" width="400" height="400" data="http://blog.pansapiens.com/wp-content/uploads/2008/06/lamb_2d_barrel.svg"><br />
      <img src="http://blog.pansapiens.com/wp-content/uploads/2008/06/lamb_2d_barrel.jpg" alt="SVG barrel diagram"><br />
    </object></p>
<p>And here is the 3D version, as a point of reference:</p>
<p><a href="http://blog.pansapiens.com/wp-content/uploads/2008/06/lamb_ray.jpg" rel="lightbox[60]"><img class="aligncenter size-medium wp-image-69" title="LamB (1MPQ)" src="http://blog.pansapiens.com/wp-content/uploads/2008/06/lamb_ray.jpg" alt="generated using PyMol (raytraced)" width="272" height="300" /></a></p>
<p>The 2D vector diagram could do with some work to aid in a more accurate representation (unfortunately &#8216;flat&#8217; views of a 3D barrel always have to make some compromises), but it does the job. The goal was to keep it simple &#8230; simple it is. One day I may extend this code to actually use known structure coordinates to automatically align the strands (saving tedious manual alignment), and write some code that properly lays out the loops.</p>
<p>Anyone know any other programs of similar functionality I&#8217;ve missed ?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2008/06/26/software-review-producing-two-dimensional-diagrams-of-membrane-proteins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Qutemol using Cedega</title>
		<link>http://blog.pansapiens.com/2007/10/27/qutemol-using-cedega/</link>
		<comments>http://blog.pansapiens.com/2007/10/27/qutemol-using-cedega/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 05:25:00 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[structural biology]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/2007/10/27/qutemol-using-cedega/</guid>
		<description><![CDATA[Pawel over at Freelancing Science recently highlighted Qutemol, a nice looking molecular viewer that does real-time ambient occlusion rendering. There isn&#8217;t any official Linux version, but I found that the Windows version runs okay on Linux using Cedega (a version of Wine that has better DirectX support, especially for games). Since Cedega is based on [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://freesci.wordpress.com/2007/10/26/qutemol-rendering/">Pawel over at Freelancing Science</a> recently highlighted <a href="http://qutemol.sourceforge.net/">Qutemol</a>, a nice looking molecular viewer that does real-time ambient occlusion rendering. There isn&#8217;t any official Linux version, but I found that the Windows version runs okay on Linux using <a href="http://www.transgaming.com/products/cedega/">Cedega</a> (a version of Wine that has better DirectX support, especially for games). Since Cedega is based on the Open Source Wine code, <a href="http://www.linux-gamers.net/modules/wiwimod/index.php?page=HOWTO+Cedega+CVS">you can compile your own command line version</a> &#8230; but it&#8217;s a good idea to buy a maintenance subscription from Transgaming and support it&#8217;s further development, if you can afford it.</p>
<p>Here&#8217;s a screenshot of Qutemol running under Cedega on Ubuntu Gutsy Gibbon, just to prove it.</p>
<p><a href="http://blog.pansapiens.com/wp-content/uploads/2008/04/qutemol.png" rel="lightbox[33]"><img class="aligncenter size-medium wp-image-49" title="Qutemol running under Cedega" src="http://blog.pansapiens.com/wp-content/uploads/2008/04/qutemol-300x194.png" alt="Qutemol running under Cedega" width="300" height="194" /></a></p>
<p>No, it&#8217;s not Photoshopped &#8230; (or GIMPed) &#8230; <img src='http://blog.pansapiens.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2007/10/27/qutemol-using-cedega/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Google Desktop for Linux Released</title>
		<link>http://blog.pansapiens.com/2007/06/28/google-desktop-for-linux-released/</link>
		<comments>http://blog.pansapiens.com/2007/06/28/google-desktop-for-linux-released/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 04:44:00 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/2007/06/28/google-desktop-for-linux-released/</guid>
		<description><![CDATA[Google Desktop for Linux has been officially released. It&#8217;s a real-honest-to-god native linux application, and doesn&#8217;t use Wine like the Linux version of Picasa. I&#8217;ve just installed it on Ubuntu Feisty Fawn from the Google Linux software repositories, and while it&#8217;s currently only indexed about 1 % of my files, my initial tests suggest it [...]]]></description>
			<content:encoded><![CDATA[<p>Google Desktop for Linux has been officially released. It&#8217;s a real-honest-to-god native linux application, and doesn&#8217;t use Wine like the Linux version of Picasa.</p>
<p>I&#8217;ve just installed it on Ubuntu Feisty Fawn from the <a href="http://www.google.com/linuxrepositories/">Google Linux  software repositories</a>, and while it&#8217;s currently only indexed about 1 % of my files, my initial tests suggest it is pretty slick  &#8230; a quick Ctrl-Ctrl, and up pops the search box. Apart from all the things I&#8217;d expect, like indexing the content of pdf files, directories like &#8220;/usr/man&#8221; are included on the default path list, so I presume it also looks inside man pages. One problem I&#8217;ve noticed so far in my very quick testing is that it seems to not follow symlinks to directories and won&#8217;t let me add them as paths to index. The effect is that my &#8220;/home/perry/documents&#8221;, which is actually a symlink to a larger partition, does not get indexed unless I add it to the path list with it&#8217;s real path.</p>
<p>While there are already similar offerings for Gnome (eg <a href="http://beagle-project.org/Main_Page">Beagle</a>) and KDE (eg Kat), my gut feeling is that Google Desktop will be my preferred option for the moment. Maybe one day we will get lucky, and Google will even make it <a href="http://en.wikipedia.org/wiki/Free_and_open-source_software">FOSS</a> (not holding my breath though).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2007/06/28/google-desktop-for-linux-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>SDF Public Access Unix celebrates 20 years</title>
		<link>http://blog.pansapiens.com/2007/06/13/sdf-public-access-unix-celebrates-20-years/</link>
		<comments>http://blog.pansapiens.com/2007/06/13/sdf-public-access-unix-celebrates-20-years/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 04:45:00 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[news]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/2007/06/13/sdf-public-access-unix-celebrates-20-years/</guid>
		<description><![CDATA[The Super Dimensional Fortress Public Access Unix has now been in operation for 20 years ! SDF is a non-commercial member supported BBS, which offers free accounts with Unix shell access, and a friendly and vibrant community. I&#8217;ve been a &#8216;lifetime&#8217; APRA member for a few years now, and have been using SDF for some [...]]]></description>
			<content:encoded><![CDATA[<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_2BBBfWXV3-w/RnNL9fmOM7I/AAAAAAAAABs/NmBrdWxNLVU/s1600-h/p1010084.jpg" rel="lightbox[25]"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp0.blogger.com/_2BBBfWXV3-w/RnNL9fmOM7I/AAAAAAAAABs/NmBrdWxNLVU/s320/p1010084.jpg" alt="" id="BLOGGER_PHOTO_ID_5076484724802597810" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_2BBBfWXV3-w/RnNL-PmOM8I/AAAAAAAAAB0/sc_OyOKqmqE/s1600-h/p1010083.jpg" rel="lightbox[25]"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://bp3.blogger.com/_2BBBfWXV3-w/RnNL-PmOM8I/AAAAAAAAAB0/sc_OyOKqmqE/s320/p1010083.jpg" alt="" id="BLOGGER_PHOTO_ID_5076484737687499714" border="0" /></a><br /><span>The Super Dimensional Fortress Public Access Unix has now been in operation for 20 years ! SDF is a non-commercial member supported BBS, which offers free accounts with Unix shell access, and a friendly and vibrant community.</p>
<p>I&#8217;ve been a &#8216;lifetime&#8217; APRA member for a few years now, and have been using SDF for some lightweight web hosting (CGI in various flavours is supported). It&#8217;s really handy to have a reliable shell account somewhere out in the aether to check network connectivity from, and my  interactions with the community have always been fun. The photos in this post show one of my aging PCs, proudly displaying an SDF sticker.</p>
<p>To get a free account and check it out for yourself, telnet to sdf.lonestar.org and login as new.</p>
<p>Happy Birthday SDF !!</p>
<p></span><span style="font-style: italic;"><br />(yeh, I know I labeled this &#8216;linux&#8217;, and SDF actually runs on NetBSD. Different OS, similar audience).</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2007/06/13/sdf-public-access-unix-celebrates-20-years/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Flash Player 9 for Linux released : Quick install for Ubuntu Dapper</title>
		<link>http://blog.pansapiens.com/2007/01/18/flash-player-9-for-linux-released-quick-install-for-ubuntu-dapper/</link>
		<comments>http://blog.pansapiens.com/2007/01/18/flash-player-9-for-linux-released-quick-install-for-ubuntu-dapper/#comments</comments>
		<pubDate>Thu, 18 Jan 2007 03:25:00 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/2007/01/18/flash-player-9-for-linux-released-quick-install-for-ubuntu-dapper/</guid>
		<description><![CDATA[Adobe Flash Player 9 is finally out of beta ! No more feeling like a second class netizen on &#8220;flashy&#8221; sites ! Here&#8217;s how I installed it on Ubuntu Dapper (the package is for Debian Sarge, but seems to work fine): Download flashplugin-nonfree. Use right-click, &#8220;Save Link As &#8230;&#8221; and save it to \tmp. $ [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe Flash Player 9 is finally out of beta ! No more feeling like a second class netizen on &#8220;flashy&#8221; sites !</p>
<p>Here&#8217;s how I installed it on Ubuntu Dapper (the package is for Debian Sarge, but seems to work fine)<span style="font-weight: bold;"></span>:</p>
<p>Download <a href="http://www.backports.org.nyud.net:8090/debian/pool/contrib/f/flashplugin-nonfree/flashplugin-nonfree_9.0.21.78.4%7Ebpo1_i386.deb">flashplugin-nonfree</a>.</p>
<p>Use right-click, &#8220;Save Link As &#8230;&#8221; and save it to \tmp.</p>
<p><span style="font-family:courier new;"><span style="font-weight: bold;">$</span> cd /tmp</span><br /><span style="font-family:courier new;"></span><br /><span style="font-family:courier new;"><span style="font-weight: bold;">$</span> sudo dpkg -i flashplugin-nonfree_9.0.21.78.4~bpo1_i386.deb</p>
<p><span style="font-family: georgia; font-style: italic;">(you&#8217;ll be prompted for your password, and once you provide it, the install should happen)</span></p>
<p><span style="font-family: georgia;">You can check if it worked by typing </span><a style="font-family: georgia;" href="about:plugins">about:plugins</a><span style="font-family: georgia;"> into the URL box in Firefox. You should see something like &#8220;</span></span><span style="font-family: georgia;">Shockwave Flash 9.0 d78&#8243; on that page.</span></p>
<p>Now go view some <a href="http://www.homestarrunner.com/sbemail.html">F-F-F-Flash cartoons</a> <img src='http://blog.pansapiens.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (I don&#8217;t think Homerstarrunner requires Flash 9, but it&#8217;s the only Flash site I use on any regular basis)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2007/01/18/flash-player-9-for-linux-released-quick-install-for-ubuntu-dapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Changing &quot;Illustration&quot; to &quot;Figure&quot; in OpenOffice Writer</title>
		<link>http://blog.pansapiens.com/2007/01/10/changing-illustration-to-figure-in-openoffice-writer/</link>
		<comments>http://blog.pansapiens.com/2007/01/10/changing-illustration-to-figure-in-openoffice-writer/#comments</comments>
		<pubDate>Wed, 10 Jan 2007 07:14:00 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[publication]]></category>
		<category><![CDATA[software]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/2007/01/10/changing-illustration-to-figure-in-openoffice-writer/</guid>
		<description><![CDATA[I&#8217;ve decided to try and use OpenOffice Writer properly .. like take advantage of some of its more powerful features rather than just using it as a text editor with formatting. For drafting manuscripts of scientific papers, pictures/photos/illustrations etc are usually referred to as &#8220;Figures&#8221;, however when inserting a picture via &#8220;Insert -> Picture -> [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to try and use OpenOffice Writer properly .. like take advantage of some of its more powerful features rather than just using it as a text editor with formatting.</p>
<p>For drafting manuscripts of scientific papers, pictures/photos/illustrations etc are usually referred to as &#8220;Figures&#8221;, however when inserting a picture via &#8220;<span style="font-weight: bold;">Insert -> Picture -> From File</span> ..&#8221; the default behavior of OpenOffice is to use the caption &#8220;Illustration&#8221;. This will not do.</p>
<p>From the <a href="http://documentation.openoffice.org/manuals/oooauthors2/0208WG-WorkingWithGraphics.pdf">OpenOffice Writer Guide, Chapter 8 [pdf]</a>, here is how to get it to use &#8220;Figure&#8221; by default:</p>
<p>• Open the &#8220;<span style="font-weight: bold;">Tools </span>-><span style="font-weight: bold;"> Options –> OpenOffice.org Writer—> AutoCaption</span>&#8221; dialog box.</p>
<p>• Under &#8220;<span style="font-weight: bold;">Add captions automatically when inserting section</span>&#8220;, check<br />OpenOffice.org Writer Picture, and make sure its checkbox is ticked.</p>
<p>• Under the <span style="font-weight: bold;">Category</span> drop-down list, enter the name that you want added,<br />eg, <span style="font-weight: bold;">Figure</span>, in the place by overwriting any sequence name in the list (it will probably have &#8220;Illustration&#8221;, before you overwrite it.) I also like my Figure label bold, so I also selected &#8220;Strong  Emphasis&#8221; from the &#8220;<span style="font-weight: bold;">Character Style</span>&#8221; dropdown box. Press OK to save the changes.</p>
<p>Now you can insert a Picture using &#8220;<span style="font-weight: bold;">Insert -> Picture -> From File</span> ..&#8221; and the label should be &#8220;Figure&#8221;, not &#8220;Illustration&#8221;. The picture comes in its own frame, and you can edit the figure legend directly in the document.</p>
<p>Hmmm &#8230; Latex is not looking so bad again &#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2007/01/10/changing-illustration-to-figure-in-openoffice-writer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

