<?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; howto</title>
	<atom:link href="http://blog.pansapiens.com/category/howto/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>QR-code bookmarklets</title>
		<link>http://blog.pansapiens.com/2009/01/02/qr-code-bookmarklets/</link>
		<comments>http://blog.pansapiens.com/2009/01/02/qr-code-bookmarklets/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 01:09:48 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[qrcode]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=95</guid>
		<description><![CDATA[A quick post to share some bookmarklets I made. I&#8217;ve found QR-code &#8220;2D barcodes&#8221; really handy when playing with my Android phone. Sometimes, I have a web page open on my desktop PC, and I want to quickly load it in the Android Chrome browser to see what it looks like. Rather than re-typing it [...]]]></description>
			<content:encoded><![CDATA[<p><em>A quick post to share some bookmarklets I made.</em></p>
<p>I&#8217;ve found <a href="http://en.wikipedia.org/wiki/QRcode">QR-code</a> &#8220;2D barcodes&#8221; really handy when playing with my Android phone.</p>
<p><img class="alignright size-full wp-image-96" title="qrcode" src="http://blog.pansapiens.com/wp-content/uploads/2009/01/qrcode.png" alt="qrcode" width="245" height="245" /></p>
<p>Sometimes, I have a web page open on my desktop PC, and I want to quickly load it in the Android Chrome browser to see what it looks like. Rather than re-typing it with my thumbs, the Barcode Scanner application allows me to scan a QR-code from the screen of my computer, and if the decoded text contains a URL, open it in the Android browser.</p>
<p>These two bookmarklets turn the URL of the current page that is open in your browser into a scannable QR-code:</p>
<p><strong>Google Charts API based bookmarklet:</strong> Drag this link &#8211;&gt;<a href="javascript: location.href='http://chart.apis.google.com/chart?cht=qr&amp;chs=350x350&amp;chl='+escape(location.href);">Current URL to QR-code</a> to your bookmarks toolbar.</p>
<pre>The code is:
javascript:location.href='http://chart.apis.google.com/chart?cht=qr&amp;chs=350x350&amp;chl='+escape(location.href);</pre>
<p>Alternatively, I made a <a href="http://qrcode.kaywa.com">Kaywa QR-code generator</a> version. Drag this link &#8211;&gt;<a href="javascript: location.href='http://qrcode.kaywa.com/img.php?s=8&amp;d='+escape(location.href);">Current URL to QR-code</a> to your bookmarks toolbar.</p>
<pre>The code is:
javascript:location.href='http://qrcode.kaywa.com/img.php?s=8&amp;d='+escape(location.href);</pre>
<p>They both do the same thing, so you probably only want one. Only tested on Firefox.</p>
<p><em>(Update:  seemed WordPress ate the javascript in the bookmarklet links &#8230; should be okay now)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pansapiens.com/2009/01/02/qr-code-bookmarklets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
		<item>
		<title>Searching bioinformatic databases with YubNub</title>
		<link>http://blog.pansapiens.com/2008/11/12/searching-bioinformatic-databases-with-yubnub/</link>
		<comments>http://blog.pansapiens.com/2008/11/12/searching-bioinformatic-databases-with-yubnub/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 11:29:16 +0000</pubDate>
		<dc:creator>Andrew Perry</dc:creator>
				<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[two-point-oh]]></category>
		<category><![CDATA[web2.0]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[yubnub]]></category>
		<guid isPermaLink="false">http://blog.pansapiens.com/?p=87</guid>
		<description><![CDATA[You may already be familiar with YubNub; it describes itself as &#8220;the social command line for the web&#8221;. Most commands consist of two (or more) words &#8230; one for the search engine, the other for the query. For example, typing: gg open science on friendfeed into the YubNub search box searches Google for &#8220;open science [...]]]></description>
			<content:encoded><![CDATA[<p>You may already be familiar with <a href="http://yubnub.org/">YubNub</a>; it describes itself as &#8220;the social command line for the web&#8221;. Most commands consist of two (or more) words &#8230; one for the search engine, the other for the query.</p>
<p>For example, typing:</p>
<blockquote><p><em><strong>gg open science on friendfeed</strong></em></p></blockquote>
<p>into the YubNub search box searches Google for &#8220;<em>open science on friendfeed</em>&#8220;, via YubNub.</p>
<p>I thought I&#8217;d highlight a few life science- and bioinformatics-related YubNub commands I find myself using quite often in my day-to-day work. Some are commands I created, others someone else created. This is the beauty of YubNub &#8230; often someone has already made the &#8216;obvious&#8217; command &#8230; it&#8217;s worth just trying to search with a command you expect to exist, since it often does.</p>
<p>Onward, with the list:</p>
<p><span id="more-87"></span></p>
<ul>
<li><a href="http://yubnub.org/kernel/man?args=pdb"><strong>pubmed</strong></a> &#8212; Searches PubMed</li>
<li><a href="http://yubnub.org/kernel/man?args=hubmed"><strong>hubmed</strong></a> &#8212; Searches <a href="http://www.hubmed.org/">HubMed</a> (Alf Eatons featureful alternative interface to PubMed)</li>
<li><a href="http://yubnub.org/kernel/man?args=gopubmed"><strong>gopubmed</strong></a> &#8212; Searches <a href="http://www.gopubmed.org/">GoPubMed</a> (an ontology enhanced PubMed search)</li>
<li><a href="http://yubnub.org/kernel/man?args=doi"><strong>doi</strong></a> &#8212; Redirects you based on a Digital Object Identifier (DOI), via <span class="muted">http://dx.doi.org/</span></li>
<li><a href="http://yubnub.org/kernel/man?args=pdb"><strong>pdb</strong></a> &#8212; Searches the Protein DataBank for 3D structures. Usually the search term should be a 4 letter pdb code.</li>
<li><a href="http://yubnub.org/kernel/man?args=uniprot"><strong>uniprot</strong></a> &#8212; Searches the Uniprot database (use an accession, id or keyword as the query).</li>
<li><a href="http://yubnub.org/kernel/man?args=ihop"><strong>ihop</strong></a> &#8212; Searches <a href="http://www.ihop-net.org">iHOP</a>, information Hyperlinked over Proteins, for views of the biomedical literature guided by gene networks. Nothing to do with <a href="http://www.google.com/search?q=ihop">pancakes (or prayer)</a>.</li>
</ul>
<p>There is also a class of more general, non-biomedical commands which I often use:</p>
<ul>
<li><a href="http://yubnub.org/kernel/man?args=gg"><strong>gg</strong></a> &#8212; The Google.</li>
<li><strong><a href="http://yubnub.org/kernel/man?args=gim">gim</a> &#8212; </strong>The Google Image Search.</li>
<li><a href="http://yubnub.org/kernel/man?args=wp"><strong>wp</strong></a> &#8212; Good ol&#8217; Wikipedia.</li>
<li><strong><a href="http://yubnub.org/kernel/man?args=ucc">ucc</a> </strong>&#8211; The universal currency converter at XE.com. Use it like <strong><em>ucc 399 aud usd</em></strong>, to convert $399 Australian dollars to US dollars. Then, if you have your cash in Australian dollars, weep about the recent drop in the exchange rate <img src='http://blog.pansapiens.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li><strong><a href="http://yubnub.org/kernel/man?args=man">man</a></strong> &#8212; Like *nix man &#8216;manual pages&#8217;, but for YubNub commands. Eg, <strong><em>man ucc</em></strong> will give the manual page describing how to used the <em>ucc</em> command.</li>
<li><strong><a href="http://yubnub.org/kernel/man?args=ls">ls</a></strong> &#8212; A bit like the *nix shell ls, this command lists existing YubNub commands that contain your query in their name, description or url. eg. searching <strong><em><a href="http://yubnub.org/kernel/ls?args=protein">ls protein</a></em></strong> gives you a short list of all the commands related to proteins.</li>
</ul>
<p>I&#8217;ve installed the <a href="http://mycroft.mozdev.org/search-engines.html?name=yubnub">YubNub opensearch plugin</a> so I can search directly from the search box (or location bar) in Firefox. Maybe one day <a href="https://wiki.mozilla.org/Labs/Ubiquity">Ubiquity</a> will fulfill this purpose, since in many way it is the natural progression of the YubNub idea. But for the moment YubNub is the fastest, most streamlined way I&#8217;ve found to quickly fire off a search when I need to hunt down a reference, protein sequence or 3D structure. Nothing like instant gratification <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/2008/11/12/searching-bioinformatic-databases-with-yubnub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/publicdomain/zero/1.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

