w<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Fuzzier Logic &#187; Visualisation</title>
	<atom:link href="http://blog.fuzzierlogic.com/archives/category/visualisation/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.fuzzierlogic.com</link>
	<description>Logic. Just a bit woolier.</description>
	<lastBuildDate>Tue, 22 Nov 2011 09:21:38 +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>Really impressed with Tagxedo &#8211; shaped word clouds. Here is a word cloud of my PhD thesis in the shape of a Drosophila:</title>
		<link>http://blog.fuzzierlogic.com/archives/7394</link>
		<comments>http://blog.fuzzierlogic.com/archives/7394#comments</comments>
		<pubDate>Thu, 02 Jun 2011 08:08:53 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Visualisation]]></category>
		<category><![CDATA[word-cloud]]></category>

		<guid isPermaLink="false">http://blog.fuzzierlogic.com/archives/7394</guid>
		<description><![CDATA[<a href="http://posterous.com/getfile/files.posterous.com/temp-2011-06-02/AwEdJxfbsekmkpltgbctsuaBbmoncAnnlkktrxnaxGgxCthyEtvsltgueiIk/thesis_dros.png.scaled1000.png"></a> <p>I worked on developmental genetics of Drosophila melanogaster for my PhD. You can find Tagxedo at <a title="Tagxedo" href="http://www.tagxedo.com/" target="_blank">http://www.tagxedo.com/</a>. A lot of the tools (such as adding your own images for word cloud shapes) are free in the beta, but I guess won&#8217;t be forever.</p> <p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from [...]]]></description>
			<content:encoded><![CDATA[<div class="kcite-section" kcite-section-id="7394">
<div class="posterous_autopost">
<div class="p_embed p_image_embed"><a href="http://posterous.com/getfile/files.posterous.com/temp-2011-06-02/AwEdJxfbsekmkpltgbctsuaBbmoncAnnlkktrxnaxGgxCthyEtvsltgueiIk/thesis_dros.png.scaled1000.png"><img src="http://posterous.com/getfile/files.posterous.com/temp-2011-06-02/AwEdJxfbsekmkpltgbctsuaBbmoncAnnlkktrxnaxGgxCthyEtvsltgueiIk/thesis_dros.png.scaled500.png" alt="Thesis_dros" width="500" height="232" /></a></div>
<p>I worked on developmental genetics of <em>Drosophila melanogaster</em> for my PhD. You can find Tagxedo at <a title="Tagxedo" href="http://www.tagxedo.com/" target="_blank">http://www.tagxedo.com/</a>. A lot of the tools (such as adding your own images for word cloud shapes) are free in the beta, but I guess won&#8217;t be forever.</p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via email</a> from <a href="http://sjcockell.posterous.com/really-impressed-with-tagxedo-shaped-word-clo">Simon&#8217;s posterous</a></p>
<p>&nbsp;</p>
</div>
<!-- kcite active, but no citations found -->
</div> <!-- kcite-section 7394 -->]]></content:encoded>
			<wfw:commentRss>http://blog.fuzzierlogic.com/archives/7394/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://posterous.com/getfile/files.posterous.com/temp-2011-06-02/AwEdJxfbsekmkpltgbctsuaBbmoncAnnlkktrxnaxGgxCthyEtvsltgueiIk/thesis_dros.png.scaled500.png" />
		<media:content url="http://posterous.com/getfile/files.posterous.com/temp-2011-06-02/AwEdJxfbsekmkpltgbctsuaBbmoncAnnlkktrxnaxGgxCthyEtvsltgueiIk/thesis_dros.png.scaled500.png" medium="image">
			<media:title type="html">Thesis_dros</media:title>
		</media:content>
	</item>
		<item>
		<title>Graphing protein databases</title>
		<link>http://blog.fuzzierlogic.com/archives/425</link>
		<comments>http://blog.fuzzierlogic.com/archives/425#comments</comments>
		<pubDate>Thu, 11 Nov 2010 15:24:57 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[science]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Visualisation]]></category>
		<category><![CDATA[graphs]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://blog.fuzzierlogic.com/?p=425</guid>
		<description><![CDATA[<p>I&#8217;m giving a lecture next week to the Bioinformatics Masters students here about protein structure prediction. As part of the introduction to this topic, I have a traditional &#8216;data explosion&#8217; slide, to illustrate the gap between the quantity of protein sequence data available versus the number of solved protein structures in the PDB (hence the [...]]]></description>
			<content:encoded><![CDATA[<div class="kcite-section" kcite-section-id="425">
<p>I&#8217;m giving a lecture next week to the Bioinformatics Masters students here about protein structure prediction. As part of the introduction to this topic, I have a traditional &#8216;data explosion&#8217; slide, to illustrate the gap between the quantity of protein sequence data available versus the number of solved protein structures in the PDB (hence the need for bioinformatics to help fill the gap, by good prediction algorithms). When I last gave this talk (scarily, 4 years ago), this slide was just text, a description of the present size of UniProt &amp; the PDB.</p>
<p>Since 2006 my lecturing style has progressed somewhat, I don&#8217;t like to have slides with just words on anymore, so I wanted to replace this slide, rather than just updating the numbers. Graphs of the growing sizes of the databases are easy to find online, but to my mind the real story here is of the gap in the sizes of the 2 databases (UniProt &amp; PDB), and whether it is growing (or are protein structural determination methods catching up). This graph doesn&#8217;t (to my knowledge) exist, so, inspired by <a title="BioStar" href="http://biostar.stackexchange.com/questions/3029/locations-of-plots-of-quantities-of-publicly-available-biological-data" target="_blank">this question on BioStar</a> I set out to draw them.</p>
<p>The first task is to retrieve numbers from each of the databases of their size at particular dates. For the PDB this is simple, because they distribute a CSV file of this information. You can get it too, it&#8217;s <a title="PDB Stats" href="http://www.rcsb.org/pdb/statistics/contentGrowthChart.do?content=total" target="_blank">linked to here</a>. For UniProt, it was non-obvious where to find this information. Every time there&#8217;s a new release, the webpage documenting that release gives the size of UniProt at the point of release (and it&#8217;s components, SwissProt and TrEMBL), but it is hard to find these pages for any release that is not current. So my approach was to download the history of UniProt from their FTP server, and use BioPython to calculate the size of each release:</p>
<pre class="brush: python; title: ; notranslate">
import os
import sys
from Bio import SwissProt

def main():
    dirs = os.listdir(&quot;data&quot;)
    results = map(numbers, dirs)

def numbers(dir):
    directory = &quot;data/&quot;+dir
    h = open(directory+&quot;/reldate.txt&quot;)
    lines = h.readlines()
    h.close()
    date = lines[1].rstrip() #more processing required to return just date
    sh = open(directory+&quot;/uniprot_sprot.dat&quot;)
    descriptions = [record.accessions for record in SwissProt.parse(sh)]
    sprot_size = len(descriptions)
    sh.close()
    th = open(directory+&quot;/uniprot_trembl.dat&quot;) #and the same for trembl
    descriptions = [record.accessions for record in SwissProt.parse(th)]
    trembl_size = len(descriptions)
    th.close()
    return (date,sprot_size,trembl_size)
</pre>
<p>It was only once I was coming to the end of this process (slow, because we&#8217;re dealing with 16 releases of UniProt: 150GB of data) that I found <a href="http://www.expasy.org/sprot/relnotes/" target="_blank">this page</a>, which was fairly hidden away, but gives me the sizes of SwissProt from the last 25 years. Curses! So much effort seemingly gone to waste. However, there doesn&#8217;t appear to be a corresponding page for TrEMBL, which is much larger (being a conceptual translation of EMBL), and I wanted these numbers too, to illustrate the full scope of the problem. So my effort was not in vein.</p>
<p>Now that we have all the numbers in an appropriate format (DATE,DATABASE,SIZE), we can draw some graphs. For this I use the ggplot2 library and R, which seems to be de rigueur for pretty visualisations these days. Here&#8217;s some code:</p>
<pre class="brush: r; title: ; notranslate">
library(ggplot2)
pdb &lt;- read.table(&quot;/path/to/data/pdb.txt&quot;, sep=&quot;,&quot;)
colnames(pdb) = c(&quot;Year&quot;, &quot;Database&quot;, &quot;value&quot;)
pdb$Year &lt;- as.Date(pdb$Year)
png(&quot;/path/to/graphs/uniprot_graphs/pdb.png&quot;, bg=&quot;transparent&quot;, width=800, height=600)
qplot(Year, value, data=pdb, geom=&quot;line&quot;, color=I(&quot;red&quot;)) + scale_x_date(format=&quot;%Y&quot;) + scale_y_continuous(&quot;Entries&quot;, formatter=&quot;comma&quot;)
dev.off()

spdb &lt;- read.table(&quot;/path/to/data/sp_pdb.txt&quot;, sep=&quot;,&quot;)
colnames(spdb) = c(&quot;Year&quot;, &quot;Database&quot;, &quot;value&quot;)
spdb$Year &lt;- as.Date(spdb$Year)
png(&quot;/path/to/graphs/sp_pdb.png&quot;, bg=&quot;transparent&quot;, width=800, height=600)
qplot(Year, value, data=spdb, geom=&quot;line&quot;, group=Database, color=Database) + scale_x_date(format=&quot;%Y&quot;) + scale_y_continuous(&quot;Entries&quot;, formatter=&quot;comma&quot;)
dev.off()

all &lt;- read.table(&quot;/path/to/data/all.txt&quot;, sep=&quot;,&quot;)
colnames(all) = c(&quot;Year&quot;, &quot;Database&quot;, &quot;value&quot;)
all$Year &lt;- as.Date(all$Year)
png(&quot;/path/to/graphs/all.png&quot;, bg=&quot;transparent&quot;, width=800, height=600)
qplot(Year, value, data=all, geom=&quot;line&quot;, group=Database, color=Database) + scale_x_date(format=&quot;%Y&quot;) + scale_y_log10(&quot;Entries&quot;, breaks=c(10^4,10^5,10^6,10^7))
dev.off()
</pre>
<p>This very simple R produces 3 plots, all of which are informative in different ways.</p>
<p style="text-align: center;"><a href="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/pdb1.png"><img class="aligncenter size-full wp-image-439" title="PDB" src="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/pdb1.png" alt="PDB" width="560" height="420" /></a></p>
<p style="text-align: center;">
<p>Plot 1 is a simple restatment of the <a href="http://www.rcsb.org/pdb/statistics/contentGrowthChart.do?content=total" target="_blank">PDB graph</a>, which I produced just so all my graphs would look the same, it&#8217;s a pretty standard exponential curve (though admittedly the numbers are slightly smaller than the numbers you may be used to seeing on such plots).</p>
<p style="text-align: center;"><a href="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/sp_pdb1.png"><img class="aligncenter size-full wp-image-440" title="SwissProt vs PDB" src="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/sp_pdb1.png" alt="SwissProt vs PDB" width="560" height="420" /></a></p>
<p>Plot 2 compares the size of SwissProt with the size of the PDB. I&#8217;m extremely happy with this one, as it shows precisely what I wanted it to, SwissProt being much larger than the PDB, and marching away at an increasing rate. For the record, the most recent size of the PDB and SwissProt in the graph are 68,998 and 522,019 respectively (compared with when I last gave the protein structure lecture: 40,132 &amp; 241,365).</p>
<p style="text-align: center;"><a href="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/all1.png"><img class="aligncenter size-full wp-image-441" title="TrEMBL vs SwissProt vs PDB" src="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/all1.png" alt="TrEMBL vs SwissProt vs PDB" width="560" height="420" /></a></p>
<p>The final plot is just to scare people. It includes TrEMBL, and had to be plotted on a log10 scale, because TrEMBL is another order of magnitude larger than SwissProt (12,347,303 sequences).</p>
<p><strong>Addendum</strong> &#8211; further to all this, the problem of the gap between sequence and structure is actually more stark than presented here. Although the PDB today (11/11/10) contains 69,162 structures, they are highly redundant, and there are only 39,724 unique sequences of known structure.</p>
<!-- kcite active, but no citations found -->
</div> <!-- kcite-section 425 -->]]></content:encoded>
			<wfw:commentRss>http://blog.fuzzierlogic.com/archives/425/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/pdb1-150x150.png" />
		<media:content url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/pdb1.png" medium="image">
			<media:title type="html">PDB</media:title>
			<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/pdb1-150x150.png" />
		</media:content>
		<media:content url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/sp_pdb1.png" medium="image">
			<media:title type="html">SwissProt vs PDB</media:title>
			<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/sp_pdb1-150x150.png" />
		</media:content>
		<media:content url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/all1.png" medium="image">
			<media:title type="html">TrEMBL vs SwissProt vs PDB</media:title>
			<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2010/11/all1-150x150.png" />
		</media:content>
	</item>
		<item>
		<title>5 Best Data Visualization Projects of the Year – 2009 &#124; FlowingData</title>
		<link>http://blog.fuzzierlogic.com/archives/317</link>
		<comments>http://blog.fuzzierlogic.com/archives/317#comments</comments>
		<pubDate>Wed, 16 Dec 2009 09:24:06 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[Visualisation]]></category>
		<category><![CDATA[data-visualization]]></category>
		<category><![CDATA[posterous]]></category>

		<guid isPermaLink="false">http://blog.fuzzierlogic.com/archives/317</guid>
		<description><![CDATA[<a href="http://flowingdata.com/2009/12/16/5-best-data-visualization-projects-of-the-year-2009/"></a><a href="http://posterous.com/getfile/files.posterous.com/sjcockell/EjgzxkgpabdFowvsAggglefoAAnAruBufdCjdiBFiJFaHbJBmGzjfdcbxmsd/media_httpflowingdatacomwpcontentuploadsyapbcacheoriginofspecies1csswzj1b7cowokk40w4kc0cwo8td8r2s3w1cs4kksc4okksgg8thjpeg_jHpocplbcIypesf.jpeg.scaled1000.jpg"></a></p> </p> <p style="font-size: 10px;">via <a href="http://flowingdata.com/2009/12/16/5-best-data-visualization-projects-of-the-year-2009/">flowingdata.com</a></p> <p> <p>The top visualization project of the year, according to <a title="FlowingData" href="http://flowingdata.com" target="_blank">FlowingData</a>, is a project by Ben Fry, which shows changes to the theory of evolution over time. <a title="Ben Fry site" href="http://benfry.com/traces/ " target="_blank">The project </a>takes advantage of the publication of the <a [...]]]></description>
			<content:encoded><![CDATA[<div class="kcite-section" kcite-section-id="317">
<div class="posterous_bookmarklet_entry"><a href="http://flowingdata.com/2009/12/16/5-best-data-visualization-projects-of-the-year-2009/"></a><a href="http://posterous.com/getfile/files.posterous.com/sjcockell/EjgzxkgpabdFowvsAggglefoAAnAruBufdCjdiBFiJFaHbJBmGzjfdcbxmsd/media_httpflowingdatacomwpcontentuploadsyapbcacheoriginofspecies1csswzj1b7cowokk40w4kc0cwo8td8r2s3w1cs4kksc4okksgg8thjpeg_jHpocplbcIypesf.jpeg.scaled1000.jpg"><img src="http://posterous.com/getfile/files.posterous.com/sjcockell/EjgzxkgpabdFowvsAggglefoAAnAruBufdCjdiBFiJFaHbJBmGzjfdcbxmsd/media_httpflowingdatacomwpcontentuploadsyapbcacheoriginofspecies1csswzj1b7cowokk40w4kc0cwo8td8r2s3w1cs4kksc4okksgg8thjpeg_jHpocplbcIypesf.jpeg.scaled500.jpg" alt="" width="500" height="267" /></a></p>
<div class="posterous_quote_citation"><span></p>
<p style="font-size: 10px;">via <a href="http://flowingdata.com/2009/12/16/5-best-data-visualization-projects-of-the-year-2009/">flowingdata.com</a></p>
<p></span></div>
<p>The top visualization project of the year, according to <a title="FlowingData" href="http://flowingdata.com" target="_blank">FlowingData</a>, is a project by Ben Fry, which shows changes to the theory of evolution over time. <a title="Ben Fry site" href="http://benfry.com/traces/ " target="_blank">The project </a>takes advantage of the publication of the <a title="Darwin Online" href="http://darwin-online.org.uk/" target="_blank">full works of Darwin</a> online to trace changes in the text of On the Origin of Species over time.<br />
A deserved winner, and very apt, considering the <a title="Darwin200" href="http://www.darwin200.org/ " target="_blank">batch</a> of <a title="Origin150" href="http://www.darwin150.com/" target="_blank">anniversaries</a> that have gone by this year.</div>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via web</a> from <a href="http://sjcockell.posterous.com/5-best-data-visualization-projects-of-the-yea-1">Simon&#8217;s posterous</a></p>
<!-- kcite active, but no citations found -->
</div> <!-- kcite-section 317 -->]]></content:encoded>
			<wfw:commentRss>http://blog.fuzzierlogic.com/archives/317/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://posterous.com/getfile/files.posterous.com/sjcockell/EjgzxkgpabdFowvsAggglefoAAnAruBufdCjdiBFiJFaHbJBmGzjfdcbxmsd/media_httpflowingdatacomwpcontentuploadsyapbcacheoriginofspecies1csswzj1b7cowokk40w4kc0cwo8td8r2s3w1cs4kksc4okksgg8thjpeg_jHpocplbcIypesf.jpeg.scaled500.jpg" />
		<media:content url="http://posterous.com/getfile/files.posterous.com/sjcockell/EjgzxkgpabdFowvsAggglefoAAnAruBufdCjdiBFiJFaHbJBmGzjfdcbxmsd/media_httpflowingdatacomwpcontentuploadsyapbcacheoriginofspecies1csswzj1b7cowokk40w4kc0cwo8td8r2s3w1cs4kksc4okksgg8thjpeg_jHpocplbcIypesf.jpeg.scaled500.jpg" medium="image" />
	</item>
		<item>
		<title>Wordle</title>
		<link>http://blog.fuzzierlogic.com/archives/46</link>
		<comments>http://blog.fuzzierlogic.com/archives/46#comments</comments>
		<pubDate>Fri, 12 Dec 2008 09:54:53 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[Visualisation]]></category>
		<category><![CDATA[citeulike]]></category>
		<category><![CDATA[tag cloud]]></category>
		<category><![CDATA[wordle]]></category>

		<guid isPermaLink="false">http://blog.fuzzierlogic.com/?p=46</guid>
		<description><![CDATA[<p>I&#8217;m a bit behind the zeitgeist here, I know, but <a title="Wordle" href="http://www.wordle.net/" target="_blank">Wordle</a> is a pretty cool little tool. I think the cloud of my CiteULike tags fairly reflects my academic interests, and the fact that even after 5 years away from the lab, &#8216;wet&#8217; techniques dominate, I really should make more of the [...]]]></description>
			<content:encoded><![CDATA[<div class="kcite-section" kcite-section-id="46">
<p>I&#8217;m a bit behind the zeitgeist here, I know, but <a title="Wordle" href="http://www.wordle.net/" target="_blank">Wordle</a> is a pretty cool little tool. I think the cloud of my CiteULike tags fairly reflects my academic interests, and the fact that even after 5 years away from the lab, &#8216;wet&#8217; techniques dominate, I really should make more of the bioinformatics involved in the papers I bookmark.</p>
<div id="attachment_47" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.fuzzierlogic.com/wp-content/uploads/2008/12/picture-1.png"><img class="size-medium wp-image-47" title="citeulike_wordle" src="http://blog.fuzzierlogic.com/wp-content/uploads/2008/12/picture-1-300x164.png" alt="Wordle Tag Cloud of my CiteULike Library" width="300" height="164" /></a><p class="wp-caption-text">Wordle Tag Cloud of my CiteULike Library</p></div>
<p>Find it on Wordle <a title="Wordle Tag Cloud" href="http://www.wordle.net/gallery/wrdl/380947/sjcockell_CiteULike_Tags" target="_blank">here</a>.</p>
<p>A few notes on technique. I extracted the tags from the RIS export of my CiteULike library using <a title="Python Snippet - MoinMoin" href="http://wiki.fuzzierlogic.com/Personal/CuLTagPythonSnippet" target="_blank">this Python script</a>, I had to limit the represntation of words to 25, otherwise &#8216;proteomics&#8217; would have dominated to such an extent that virtually none of the other tags would be visible (except maybe &#8216;protein-protein-interactions&#8217;). But then I am responsible for supporting proteomics researchers, and predicting and validating protein-protein interactions is my major personal research interest. So I guess this is fair enough.</p>
<!-- kcite active, but no citations found -->
</div> <!-- kcite-section 46 -->]]></content:encoded>
			<wfw:commentRss>http://blog.fuzzierlogic.com/archives/46/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2008/12/picture-1-150x150.png" />
		<media:content url="http://blog.fuzzierlogic.com/wp-content/uploads/2008/12/picture-1.png" medium="image">
			<media:title type="html">citeulike_wordle</media:title>
			<media:description type="html">Wordle Tag Cloud of my CiteULike Library</media:description>
			<media:thumbnail url="http://blog.fuzzierlogic.com/wp-content/uploads/2008/12/picture-1-150x150.png" />
		</media:content>
	</item>
	</channel>
</rss>

