<?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>Silveira Neto &#187; Silveira</title>
	<atom:link href="http://silveiraneto.net/author/silveira/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description></description>
	<lastBuildDate>Fri, 09 Mar 2012 04:13:27 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bioperl Install and examples</title>
		<link>http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/</link>
		<comments>http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 04:05:24 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[Bioperl]]></category>
		<category><![CDATA[FASTA]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4087</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/" title="Bioperl Install and examples"></a>Perl is a widely used language in bioinformatics. As I already experimented Python and Biopython for handling a few simple bioinformatics tasks I will now try Perl and Bioperl. Install on Ubuntu 11.10 (oneiric) Perl already comes with Ubuntu. Bioperl &#8230;<p class="read-more"><a href="http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/" title="Bioperl Install and examples"></a><p><a href="http://www.flickr.com/photos/chigley/3003248261/"><img class="size-full wp-image-4088 aligncenter" title="Camels. Creative Commons photo by Jon Lean." src="http://silveiraneto.net/wp-content/uploads/2012/03/flickr_com_photos_chigley_3003248261.jpg" alt="Creative Commons ATT-SA http://www.flickr.com/photos/chigley/3003248261/" width="640" height="425" /></a></p>
<p>Perl is a widely used language in bioinformatics. As <a href="http://silveiraneto.net/2012/02/20/genbank-renaming/" title="Python, Biopython and Genbank">I already experimented Python and Biopython</a> for handling a few simple bioinformatics tasks I will now try Perl and <a title="Bioperl" href="http://www.bioperl.org/">Bioperl</a>.</p>
<p><strong>Install on Ubuntu 11.10 (oneiric)</strong></p>
<p>Perl already comes with Ubuntu. Bioperl can be installed (without CPAN):</p>
<blockquote><p>$ sudo apt-get install bioperl</p></blockquote>
<p>After the installation on have several tools in your PATH:</p>
<blockquote><p>bp_aacomp, bp_biblio, bp_biofetch_genbank_proxy, bp_bioflat_index, bp_biogetseq, bp_blast2tree, bp_bulk_load_gff, bp_chaos_plot, bp_classify_hits_kingdom, bp_composite_LD, bp_das_server, bp_dbsplit, bp_download_query_genbank, bp_einfo, bp_extract_feature_seq, bp_fast_load_gff, bp_fastam9_to_table, bp_fetch, bp_filter_search, bp_flanks, bp_gccalc, bp_genbank2gff, bp_genbank2gff3, bp_generate_histogram, bp_heterogeneity_test, bp_hivq, bp_hmmer_to_table, bp_index, bp_load_gff, bp_local_taxonomydb_query, bp_make_mrna_protein, bp_mask_by_search, bp_meta_gff, bp_mrtrans, bp_mutate, bp_netinstall, bp_nexus2nh, bp_nrdb, bp_oligo_count, bp_pairwise_kaks, bp_parse_hmmsearch, bp_process_gadfly, bp_process_sgd, bp_process_wormbase, bp_query_entrez_taxa, bp_remote_blast, bp_revtrans-motif, bp_search2BSML, bp_search2alnblocks, bp_search2gff, bp_search2table, bp_search2tribe, bp_seq_length, bp_seqconvert, bp_seqfeature_delete, bp_seqfeature_gff3, bp_seqfeature_load, bp_seqret, bp_seqretsplit, bp_split_seq, bp_sreformat, bp_taxid4species, bp_taxonomy2tree, bp_translate_seq, bp_tree2pag, bp_unflatten_seq</p></blockquote>
<p>You can try to import a Bioperl module to check if everything is working properly.</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/perl -w</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">Seq</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>Writing a nucleotide sequence to a FASTA file</strong></p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl -w</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">Seq</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">SeqIO</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$seq_obj</span> <span style="color: #339933;">=</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">Seq</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>seq <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;gattaca&quot;</span><span style="color: #339933;">,</span>                        
         <span style="color: #339933;">-</span>display_id <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;#10191997&quot;</span><span style="color: #339933;">,</span>
         <span style="color: #339933;">-</span>desc <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;Example&quot;</span><span style="color: #339933;">,</span>                        
         <span style="color: #339933;">-</span>alphabet <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;dna&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$seqio_obj</span> <span style="color: #339933;">=</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">SeqIO</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>file <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">'&gt;sequence.fasta'</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #000066;">format</span> <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">'fasta'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$seqio_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">write_seq</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$seq_obj</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The output in the sequence.fasta created will be:</p>
<blockquote><p>#10191997 Example<br />
gattaca</p></blockquote>
<p><strong>Reading a Genbank file</strong><br />
Opening the same example I used <a href="http://silveiraneto.net/2012/02/20/genbank-renaming/" title="genbank renaming">last time</a> (<a href="http://silveiraneto.net/downloads/sequence.gb" title="Genbank file">Hippopotamus amphibius mitochondrion, complete genome</a>).</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl -w</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">Seq</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">SeqIO</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$seqio_obj</span> <span style="color: #339933;">=</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">SeqIO</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>file <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;sequence.gb&quot;</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #000066;">format</span> <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;genbank&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$seq_obj</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$seqio_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">next_seq</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> 
    <span style="color: #000066;">print</span> <span style="color: #0000ff;">$seq_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">seq</span><span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Online Querying Genbank</strong></p>
<p>With Bioperl is possible to programmatically query and retrieve data directly from GenBank. For example, to retrieve the same mitochondrial genome from the Hippopotamus I used in the example above.</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl -w</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">DB</span><span style="color: #339933;">::</span><span style="color: #006600;">GenBank</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">DB</span><span style="color: #339933;">::</span><span style="color: #006600;">Query</span><span style="color: #339933;">::</span><span style="color: #006600;">GenBank</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$query</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Hippopotamus amphibius[ORGN] AND NC_000889[LOCUS]&quot;</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$query_obj</span> <span style="color: #339933;">=</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">DB</span><span style="color: #339933;">::</span><span style="color: #006600;">Query</span><span style="color: #339933;">::</span><span style="color: #006600;">GenBank</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">-</span>db    <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">'nucleotide'</span><span style="color: #339933;">,</span>  <span style="color: #339933;">-</span>query <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$query</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$gb_obj</span> <span style="color: #339933;">=</span> Bio<span style="color: #339933;">::</span><span style="color: #006600;">DB</span><span style="color: #339933;">::</span><span style="color: #006600;">GenBank</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">new</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">$stream_obj</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$gb_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">get_Stream_by_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$query_obj</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$seq_obj</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$stream_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">next_seq</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>    
	<span style="color: #000066;">print</span> <span style="color: #0000ff;">$seq_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">display_id</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$seq_obj</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">length</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2012/03/09/bioperl-install-and-examples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Substitutions in a phylogenetic tree file</title>
		<link>http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/</link>
		<comments>http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 02:52:49 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[newick tree]]></category>
		<category><![CDATA[phylogenetic]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4073</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/" title="Substitutions in a phylogenetic tree file"></a>The newick tree The Newick tree format is a way of representing a graph trees with edge lengths using parentheses and commas. A newick tree example: (((Espresso:2,(Milk Foam:2,Espresso Macchiato:5,((Steamed Milk:2,Cappucino:2,(Whipped Cream:1,Chocolate Syrup:1,Cafe Mocha:3):5):5,Flat White:2):5):5):1,Coffee arabica:0.1,(Columbian:1.5,((Medium Roast:1,Viennese Roast:3,American Roast:5,Instant Coffee:9):2,Heavy Roast:0.1,French &#8230;<p class="read-more"><a href="http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/" title="Substitutions in a phylogenetic tree file"></a><p><a href="http://www.flickr.com/photos/silveiraneto/4119937748/"><img class="size-full wp-image-4077 alignnone" title="orange fish aquarium photo by myself (Silveira Neto)" src="http://silveiraneto.net/wp-content/uploads/2012/03/orange_fish_aquarium_silveira_neto.jpg" alt="" width="640" height="480" /></a></p>
<p><strong>The newick tree</strong></p>
<p>The <a title="The Newick tree format" href="http://evolution.genetics.washington.edu/phylip/newicktree.html">Newick tree format</a> is a way of representing a graph trees with edge lengths using parentheses and commas.</p>
<p>A newick tree example:</p>
<blockquote><p>(((Espresso:2,(Milk Foam:2,Espresso Macchiato:5,((Steamed Milk:2,Cappucino:2,(Whipped Cream:1,Chocolate Syrup:1,Cafe Mocha:3):5):5,Flat White:2):5):5):1,Coffee arabica:0.1,(Columbian:1.5,((Medium Roast:1,Viennese Roast:3,American Roast:5,Instant Coffee:9):2,Heavy Roast:0.1,French Roast:0.2,European Roast:1):5,Brazilian:0.1):1):1,Americano:10,Water:1);</p></blockquote>
<p>A graphical representation for the newick tree above (using the <a title="jsphylosvg library newick tree" href="http://www.jsphylosvg.com/">http://www.jsphylosvg.com/</a> library):</p>
<p><img class="aligncenter size-full wp-image-4074" title="tree representation" src="http://silveiraneto.net/wp-content/uploads/2012/03/tree_representation.png" alt="" width="400" height="509" /></p>
<p>The Newick format is commonly used for store <a title="Evolutionary trees" href="http://evolution.berkeley.edu/evolibrary/article/phylogenetics_01">phylogenetic trees</a>.</p>
<p><strong>The problem</strong></p>
<p>A phylogenetic tree can be highly branched and dense and even using proper visualization software can be difficult to analyse it. Additionally, as a tree are produced by a chain of different software with data from the laboratory, the label for each leaf/node can be something not meaningful for a human reader.</p>
<p>For this particular problem, an example of a node label could be SXS<em>_3014_Albula_vulpes_id_30</em>.</p>
<p>There was a spreadsheet with more meaningful information where a node label could be used as a <a title="overview of the Structured Query Language" href="http://www.xcdsql.org/Summary%20of%20SQL.html#chapter-Table%20constraints">primary key</a>. Example for the node above:</p>
<table>
<tbody>
<tr>
<th>Taxon Order</th>
<th>Family</th>
<th>Genus</th>
<th>Species</th>
<th>ID</th>
</tr>
<tr>
<td>Albuliformes</td>
<td>Albulidae</td>
<td>Albula</td>
<td>vulpes</td>
<td><em>SXS_3014_Albula_vulpes_id_30</em></td>
</tr>
</tbody>
</table>
<p>The problem consists in using the tree and the spreadsheet to produce a new tree with the same structure, where each node have a more meaningful label.</p>
<p><strong>The approach</strong></p>
<p>The new tree can be mounted by substituting each label of the initial tree with the respective information from the spreadsheet. A script can be used to automate this process.</p>
<p><strong>The solution</strong></p>
<p>After converting the spreadsheet to a <a title="Y. Shafranovich" href="http://tools.ietf.org/html/rfc4180">CSV file</a> that could be more easily handled by a <a title="Python" href="http://docs.python.org/library/csv.html">CSV Python library</a> the problem is reduced to a file handling and string substitution. Fortunately, due the simplicity of the Newick format and its limited vocabulary, a tree parser is not necessary.</p>
<p><script src="https://gist.github.com/2004714.js?file=tree_substitution.py"></script></p>
<p><small><a href="https://gist.github.com/2004714" title="Github Gist" target="_blank">Source-code at Github</a>.</small></p>
<p><strong>Difficulties found</strong></p>
<p>The spreadsheet was originally in a Microsoft Office Excel 2007 (.xlsx) and the conversion to CSV provided by Excel was not good and there was no configuration option available. Finally, the conversion provided by <a href="http://www.libreoffice.org/" title="LibreOffice">LibreOffice Productivity Suite</a> was more configurable and was easier to read by the CSV library.</p>
<p>In the script, the <a href="http://docs.python.org/library/csv.html#csv.DictReader" title="Python DictReader Documentation">DictReader class</a> showed in the the long-term much more reliable and tolerant to changes in the spreadsheet as long the names of the columns remain the same.</p>
<p><small>P.S. due to the nature of the original sources for the tree and spreadsheet I don&#8217;t have the authorization for public publishing their complete and original content. The artificial data displayed here is merely illustrative.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2012/03/08/substitutions-in-a-phylogenetic-tree-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GenBank renaming</title>
		<link>http://silveiraneto.net/2012/02/20/genbank-renaming/</link>
		<comments>http://silveiraneto.net/2012/02/20/genbank-renaming/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 06:08:30 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Bioinform]]></category>
		<category><![CDATA[bioinformatics]]></category>
		<category><![CDATA[biopython]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[setuptools]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4023</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2012/02/20/genbank-renaming/" title="GenBank renaming"></a>DNA inspired sculpture by Charles Jencks. Creative Commons photo by Maria Keays. What is GenBank? The GenBank sequence database is a widely used collection of nucleotide sequences and their protein translations. A GenBank sequence record file typically has a .gbk &#8230;<p class="read-more"><a href="http://silveiraneto.net/2012/02/20/genbank-renaming/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2012/02/20/genbank-renaming/" title="GenBank renaming"></a><p><img class="size-full wp-image-4024" title="DNA sculpture at Centre for Life by Maria Keays on Flickr. Sculpture by  Charles Jencks" src="http://silveiraneto.net/wp-content/uploads/2012/02/DNA-sculpture-at-Centre-for-Life-by-Maria-Keays-on-Flickr.jpg" alt="http://www.flickr.com/photos/maria_keays/1251843227/" width="640" height="480" /><br />
<small>DNA inspired sculpture by Charles Jencks. Creative Commons photo by <a title="Flickr" href="http://www.flickr.com/photos/maria_keays/1251843227/">Maria Keays</a>.</small></p>
<p><strong>What is GenBank?</strong></p>
<p>The <a href="http://www.ncbi.nlm.nih.gov/genbank/">GenBank</a> sequence database is a widely used collection of nucleotide sequences and their protein translations. A GenBank sequence record file typically has a .gbk or .gb extension and is filled with plain text characters. A example of GenBank file can be found <a href="http://silveiraneto.net/downloads/sequence.gb">here</a>.</p>
<p><strong>Filename problem</strong></p>
<p>Although there are several metadata are available inside a GenBank record the name of the file are not always in accordance with the content of the file. This is potentially a source of confusion to organize files and requires an additional effort to rename the files according to their content.</p>
<p><strong>Approach using Biopython</strong></p>
<p>The Biopython project is a mature open source international collaboration of volunteer developers, providing Python libraries for a wide range of bioinformatics problems. Among other tools, Biopython includes modules for reading and writing different sequence file formats including the GenBank&#8217;s record files.</p>
<p>Despite the fact that is possible to write a parser for GenBank&#8217; files it would represent a redundant effort to develop and maintain such tool. Biopython can be delegated to perform parsing and focus the programming on renaming mechanism.</p>
<p><strong>Biopython installation on Linux (Ubuntu 11.10) or Apple OS X (Lion)</strong></p>
<p>For both Ubuntu 11.10 and OS X Lion, a modern version of Python already comes out of the box.</p>
<p>For Linux you just need to install the Biopython package. One method to install Biopython in a APT ready distribution as Ubuntu 11.10 (Oneiric Ocelot) is:</p>
<blockquote><p># apt-get install python-biopython</p></blockquote>
<p>For an Apple OS X (Lion) you can install Biopython using <em>easy_install</em>, a popular package manager for the Python. <em>Easy_install</em> is bundled with <em>Setuptools</em>, a set of tools for Python.</p>
<p>To install the <em>Setuptools</em> <a href="http://pypi.python.org/pypi/setuptools#files">download the .egg file</a> for your python version (probably setuptools-0.6c11-py2.7.egg) and execute it as a Shell Script:</p>
<blockquote><p>sudo sh setuptools-0.6c11-py2.7.egg</p></blockquote>
<p>After this you already have easy_install in place and you can use it to install the Biopython library:</p>
<blockquote><p>sudo easy_install -f http://biopython.org/DIST/ biopython</p></blockquote>
<p>For both operational systems you can test if you already have Biopython installed using the Python iterative terminal:</p>
<blockquote><p>$ python<br />
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)<br />
[GCC 4.6.1] on linux2<br />
Type &#8220;help&#8221;, &#8220;copyright&#8221;, &#8220;credits&#8221; or &#8220;license&#8221; for more information.<br />
&gt;&gt;&gt; import Bio<br />
&gt;&gt;&gt; Bio.__version__<br />
&#8217;1.57&#8242;<br />
&gt;&gt;&gt;</p></blockquote>
<p><strong>Automatic rename example through scripting</strong></p>
<p>Below the <a href="https://gist.github.com/1859976" title="at Github">Python source-code for a simple use of using Biopython to rename a Genbank file</a> to it&#8217;s description after removing commas and spaces.</p>
<p><script src="https://gist.github.com/1859976.js?file=gbkrename.py"></script></p>
<p>Using the the previous example of GenBank file, suppose you have a file called <a href="http://silveiraneto.net/downloads/sequence.gb">sequence.gb</a>. To rename this file to the GenBank description metadata inside it you can use the script.</p>
<blockquote><p>python gbkrename.py sequence.gb</p></blockquote>
<p>And after this it will be called Hippopotamus_amphibius_mitochondrial_DNA_complete_genome.gbk.</p>
<p><strong>Improvements</strong></p>
<p>There is plenty of room for improvement as:</p>
<ul>
<li>Better command line parsing with <a href="http://docs.python.org/library/optparse.html">optparse</a> and parameterization of all possible configuration.</li>
<li>A graphical interface</li>
<li>Handle special cases such multiple sequences in a single GenBank file.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2012/02/20/genbank-renaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1</title>
		<link>http://silveiraneto.net/2012/01/08/1/</link>
		<comments>http://silveiraneto.net/2012/01/08/1/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 05:17:57 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[1 year]]></category>
		<category><![CDATA[Pixelart]]></category>
		<category><![CDATA[Silveira]]></category>
		<category><![CDATA[suyane]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4018</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2012/01/08/1/" title="1"></a>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2012/01/08/1/" title="1"></a><p><img class="alignnone size-full wp-image-4019" title="1 ano" src="http://silveiraneto.net/wp-content/uploads/2012/01/1ano.png" alt="" width="592" height="1400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2012/01/08/1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Merry Christmas</title>
		<link>http://silveiraneto.net/2011/12/21/merry-christmas/</link>
		<comments>http://silveiraneto.net/2011/12/21/merry-christmas/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 00:43:03 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[Henrique]]></category>
		<category><![CDATA[Jivago]]></category>
		<category><![CDATA[Lucas]]></category>
		<category><![CDATA[natal]]></category>
		<category><![CDATA[serious]]></category>
		<category><![CDATA[Silveira]]></category>
		<category><![CDATA[xmas]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4014</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/12/21/merry-christmas/" title="Merry Christmas"></a>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/12/21/merry-christmas/" title="Merry Christmas"></a><p><a href="http://silveiraneto.net/wp-content/uploads/2011/12/411809_10150534650452792_569142791_10526874_1267184287_o.jpg"><img class="alignnone size-medium wp-image-4015" title="a serious Merry Christmas " src="http://silveiraneto.net/wp-content/uploads/2011/12/411809_10150534650452792_569142791_10526874_1267184287_o-500x345.jpg" alt="" width="500" height="345" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/12/21/merry-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# class properties example</title>
		<link>http://silveiraneto.net/2011/12/15/c-class-properties-example/</link>
		<comments>http://silveiraneto.net/2011/12/15/c-class-properties-example/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 15:26:31 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[C-Sharp]]></category>
		<category><![CDATA[celsius]]></category>
		<category><![CDATA[fahrenheit]]></category>
		<category><![CDATA[kelvin]]></category>
		<category><![CDATA[temperature]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=4000</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/12/15/c-class-properties-example/" title="C# class properties example"></a>A example of use of C# class properties to convert temperatures in Celsius, Fahrenheit or Kelvin. The temperature is encapsulated and stored in a internal representation, in this example, in Celcius (private double c). Each conversion is accessible by getting &#8230;<p class="read-more"><a href="http://silveiraneto.net/2011/12/15/c-class-properties-example/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/12/15/c-class-properties-example/" title="C# class properties example"></a><p>A example of use of C# class properties to convert temperatures in Celsius, Fahrenheit or Kelvin. The temperature is encapsulated and stored in a internal representation, in this example, in Celcius (private double c). Each conversion is accessible by getting or setting a property.</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Temperature <span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">double</span> c<span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">double</span> celsius <span style="color: #008000;">&#123;</span>
		get <span style="color: #008000;">&#123;</span>
			<span style="color: #0600FF; font-weight: bold;">return</span> c<span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
		set <span style="color: #008000;">&#123;</span>
			c <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">double</span> fahrenheit <span style="color: #008000;">&#123;</span>
		get <span style="color: #008000;">&#123;</span>
			<span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span>c <span style="color: #008000;">*</span> <span style="color: #FF0000;">9</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">5</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">+</span> <span style="color: #FF0000;">32</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
		set <span style="color: #008000;">&#123;</span>
			c <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span>value <span style="color: #008000;">-</span> <span style="color: #FF0000;">32</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">*</span> <span style="color: #FF0000;">5</span> <span style="color: #008000;">/</span> <span style="color: #FF0000;">9</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
	<span style="color: #008000;">&#125;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">double</span> kelvin <span style="color: #008000;">&#123;</span>
		get <span style="color: #008000;">&#123;</span>
			<span style="color: #0600FF; font-weight: bold;">return</span> c <span style="color: #008000;">+</span> <span style="color: #FF0000;">273.15</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
		set <span style="color: #008000;">&#123;</span>
			c <span style="color: #008000;">=</span> value <span style="color: #008000;">-</span> <span style="color: #FF0000;">273.15</span><span style="color: #008000;">;</span>
		<span style="color: #008000;">&#125;</span>
	<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> TemperatureExample <span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>
		Temperature fortaleza <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Temperature<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		fortaleza<span style="color: #008000;">.</span><span style="color: #0000FF;">celsius</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">26</span><span style="color: #008000;">;</span>
&nbsp;
		Temperature washington <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Temperature<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		washington<span style="color: #008000;">.</span><span style="color: #0000FF;">fahrenheit</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">32</span><span style="color: #008000;">;</span>
&nbsp;
		Temperature sun <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Temperature<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		sun<span style="color: #008000;">.</span><span style="color: #0000FF;">kelvin</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">5778</span><span style="color: #008000;">;</span>
&nbsp;
		Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Fortaleza {0}°C / {1}°F / {2} K&quot;</span>,
			fortaleza<span style="color: #008000;">.</span><span style="color: #0000FF;">celsius</span>, fortaleza<span style="color: #008000;">.</span><span style="color: #0000FF;">fahrenheit</span>, fortaleza<span style="color: #008000;">.</span><span style="color: #0000FF;">kelvin</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Washington {0}°C / {1}°F / {2} K&quot;</span>,
			washington<span style="color: #008000;">.</span><span style="color: #0000FF;">celsius</span>, washington<span style="color: #008000;">.</span><span style="color: #0000FF;">fahrenheit</span>, washington<span style="color: #008000;">.</span><span style="color: #0000FF;">kelvin</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
		Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Sun {0}°C / {1}°F / {2} K&quot;</span>,
			sun<span style="color: #008000;">.</span><span style="color: #0000FF;">celsius</span>, sun<span style="color: #008000;">.</span><span style="color: #0000FF;">fahrenheit</span>, sun<span style="color: #008000;">.</span><span style="color: #0000FF;">kelvin</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>Output:</p>
<pre>Fortaleza 26°C / 78.8°F / 299.15 K
Washington 0°C / 32°F / 273.15 K
Sun 5504.85°C / 9940.73°F / 5778 K
</pre>
<p>There is some good examples of C# class properties at <a href="http://msdn.microsoft.com/en-us/library/w86s7x04.aspx">Using Properties (C# Programming Guide) at MSDN</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/12/15/c-class-properties-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Halloween Costume 2011</title>
		<link>http://silveiraneto.net/2011/10/29/halloween-costume-2011/</link>
		<comments>http://silveiraneto.net/2011/10/29/halloween-costume-2011/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 21:04:46 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[costume]]></category>
		<category><![CDATA[gas mask]]></category>
		<category><![CDATA[halloween]]></category>
		<category><![CDATA[October]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3973</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/10/29/halloween-costume-2011/" title="Halloween Costume 2011"></a>And again, this year people got more scared than I was expecting. It looks like Sandman (Wesley Dodds) or Spy vs. Spy. My idea was get some stuff from wardrobe and spend a little on a special item that after the Halloween would not &#8230;<p class="read-more"><a href="http://silveiraneto.net/2011/10/29/halloween-costume-2011/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/10/29/halloween-costume-2011/" title="Halloween Costume 2011"></a><p><a href="http://silveiraneto.net/wp-content/uploads/2011/10/fantasia_halloween_2011.jpg"><img class="alignnone size-full wp-image-3975" src="http://silveiraneto.net/wp-content/uploads/2011/10/fantasia_halloween_2011_thumb.jpg" alt="" width="600" height="589" /></a></p>
<p><a href="http://silveiraneto.net/wp-content/uploads/2011/10/fantasia_halloween_20111.jpg"><img class="alignnone size-full wp-image-3980" title="fantasia halloween 2011 gas mask" src="http://silveiraneto.net/wp-content/uploads/2011/10/02_fantasia_halloween_2011_thumb.jpg" alt="" width="600" height="715" /></a></p>
<p>And again, this year people got more scared than I was expecting. It looks like <a href="http://en.wikipedia.org/wiki/Sandman_%28Wesley_Dodds%29">Sandman (Wesley Dodds)</a> or <a href="http://en.wikipedia.org/wiki/Spy_vs._Spy">Spy vs. Spy</a>.</p>
<p>My idea was get some stuff from wardrobe and spend a little on a special item that after the Halloween would not be completely useless. :)</p>
<p>The costume items:</p>
<ul>
<li>A <a href="http://www.menswearhouse.com/webapp/wcs/stores/servlet/ProductDisplay_10051_10051_10601_149223_-1__TAN%20SOLID_10051_?cm_vc=10051">classic trench coat from Men&#8217;s Wearhouse</a> (actually is a great coat for rain, cold weather or snow, water resistant and it has an inner layer removable when not so cold. It is a kinda common coat in DC).</li>
<li>A gray fedora hat from Filene&#8217;s Basement. It was not really matching but worked.</li>
<li>Black leather gloves from last winter.</li>
<li>Snow boots from my hiking in Colorado last year.</li>
<li>An <a href="http://www.amazon.com/gp/product/B0002XJ2OU/ref=as_li_qf_sp_asin_tl?ie=UTF8&amp;tag=eupotama-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399369&amp;creativeASIN=B0002XJ2OU">Israeli Civilian Gas Mask</a>. The only thing I had to buy. From the product description:<br />
<blockquote><p>This is the gas mask issued to Israeli civilians when threatened with chemical attack by Saddam&#8217;s Iraq. It has full NBC (neuclear, biological, chemical) protection, and comes with one sealed filter.</p></blockquote>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/10/29/halloween-costume-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Silicon Alley 500</title>
		<link>http://silveiraneto.net/2011/10/17/silicon-alley-500/</link>
		<comments>http://silveiraneto.net/2011/10/17/silicon-alley-500/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 03:03:47 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[New York Stock Exchange]]></category>
		<category><![CDATA[SA500]]></category>
		<category><![CDATA[Silicon Alley 500]]></category>
		<category><![CDATA[Wall Street]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3951</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/10/17/silicon-alley-500/" title="Silicon Alley 500"></a>I was friday night and I received an invitation to the SA500 in New York. I think I read about the event on Twitter and I filled the forms. &#8220;Well, I have no plans for this Saturdays&#8230; I could go &#8230;<p class="read-more"><a href="http://silveiraneto.net/2011/10/17/silicon-alley-500/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/10/17/silicon-alley-500/" title="Silicon Alley 500"></a><p style="text-align: center;"><img class="size-medium wp-image-3952 aligncenter" title="P1060223" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060223-500x375.jpg" alt="" width="500" height="375" /></p>
<p>I was friday night and I received an invitation to the <a href="http://www.nextjump.com/sa500">SA500</a> in New York. I think I read about the event on Twitter and I filled the forms. &#8220;Well, I have no plans for this Saturdays&#8230; I could go to New York take a look on the protests in Wall Street and go to this SA500 and maybe meet some developers from the companies I love&#8221;. So I took the first flight I could and left Washington DC.</p>
<p>One thing that I didn&#8217;t initially realize was that the event has going to be held inside the New York Stock Exchange in Wall Street. The same day a global protest was erupting from the Liberty Square in Manhattan&#8217;s financial district at the Occupy Wall Street camping. The city was in turmoil. Paradoxically (or not), in the center of all this a group of <a title="full list" href="http://www.nextjump.com/sa500/leaders">50 selected creative startups</a> and 500 students and IT graduates were gathering to know more about each other.</p>
<p>I could talk with several CEOs and developers and here are some impressions I had.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3956 aligncenter" title="NYSE" src="http://silveiraneto.net/wp-content/uploads/2011/10/P10602601-500x375.jpg" alt="" width="500" height="375" /></p>
<p><strong>Language agnostic environment</strong></p>
<p>Almost all companies I talked have a very plural and multicultural language agnostic environment. When you have a problem that can be better solved in Ruby, you do it in Ruby. When you have a problem better solved in Java, you do it in Java, and so on. The efforts to integrate different technologies are by far eclipsed with the benefits of having a broad range of solutions. It is the good and old  &#8221;don&#8217;t put all one&#8217;s eggs in one basket&#8221; that sometimes companies try to forget.</p>
<p>Of course that not all companies uses all languages available but the normal I could see was about 3 or 4 languages platforms in every company.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3957 aligncenter" title="NYSE" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060264-500x375.jpg" alt="" width="500" height="375" /></p>
<p><strong>Python Rocks</strong></p>
<p>If you look into my blog maybe you realize that despite I program in some languages I have a favorite. At SA500 I saw that Python is much more stronger in the startups than I could imagine. The majority of companies use some Python on the front-end or back-end and a lot of them use Django.</p>
<p>For a while I thought that Python did not have a good market share for me in the market I&#8217;m looking for but I saw that I was fortunately wrong.</p>
<p style="text-align: center;"><strong><img class="size-medium wp-image-3960 aligncenter" title="NYSE NY SA500" src="http://silveiraneto.net/wp-content/uploads/2011/10/P10602302-500x375.jpg" alt="" width="500" height="375" /></strong></p>
<p><strong><strong>Small is Bigger</strong></strong></p>
<p>Looking some of the products that those companies created you may think that there is a huge development team working on them. Actually, no.</p>
<p>Mostly of the companies have a small team of motivated engineers with the right methodologies and tools in hands. Most of those companies have from 5 to 15 developers only. Is not rate to the CEO himself be also a developer, developed the initial product and still be coding.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3961 aligncenter" title="NYSE SA500" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060241-500x375.jpg" alt="" width="500" height="375" /></p>
<p><strong>Context Aware Content</strong></p>
<p>Many of the products from the 50 startups at the SA500 were  context aware applications. They gather information about the user preferences and geolocation to delivery a more specific and rich content to the user. For example, knowing that the user is in a restaurant and it is a sunny day show him that there is an event in a park one block from there. And it is not just about geolocation, many of those applications even when without an user profile can retrieve meaningful content based on his last searches or browsing.</p>
<p>It is not a new idea but now with more powerful smartphones is much more applicable one. Despite been a very simple concept it is full of challenges and possibilities.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3963 aligncenter" title="NYSE SA500" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060226-500x375.jpg" alt="" width="500" height="375" /></p>
<p><strong>The &#8220;Netflix business model&#8221;</strong></p>
<p>Rent something through a powerful yet simple web interface, quickly delivered in your door. At <a title="Rent a dress" href="http://renttherunway.com">Renttherunway.com</a> you can rent luxury designer dresses! At <a href="http://www.artsicle.com/">Artsicle.com</a> you can rent pieces of art!</p>
<p>I can see this &#8220;Netflix&#8221; model been expanded and mixed  with so many others.</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/GiGi7CdOlb4?version=3&amp;hl=en_US" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://www.youtube.com/v/GiGi7CdOlb4?version=3&amp;hl=en_US" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><strong>Through the Open Source. To the Open Source</strong></p>
<p>Of course all those companies use many Open and Free Source. They are <a href="http://en.wikipedia.org/wiki/Lean_Startup">lean</a>. Nowadays this is the commonplace in software development. But also, many of them go beyond and create open source products and  a vibrant community around. Just to cite some examples, <a href="http://www.10gen.com/">10gen</a> create <a href="http://www.mongodb.org/">MongoDB</a>, my favorite NoSQL database and used by a lot of the companies at SA500. <a href="http://www.longtailvideo.com/">Long Tail Video</a> have the <a href="http://www.longtailvideo.com/players/">JW Player</a> that I already used here in the blog and so did so many others.</p>
<p style="text-align: center;"><img class="size-medium wp-image-3966 aligncenter" title="SA500 at NYSE" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060270-500x375.jpg" alt="" width="500" height="375" /></p>
<p><strong>Videos are hot. Ads are hot.</strong></p>
<p>Wow. So many companies working on products related to video or advertisement and sometimes even both. There is a race out there and I wonder what will come out.</p>
<p><img class="size-medium wp-image-3954 aligncenter" title="gifts from Silicon Alley 500" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060347-500x375.jpg" alt="" width="500" height="375" /></p>
<p style="text-align: center;"><strong><br />
</strong></p>
<p><strong>I love gits! </strong></p>
<p>And now I don&#8217;t have to buy new t-shirts for awhile. :3</p>
<p style="text-align: center;"><img class="size-medium wp-image-3967 aligncenter" title="Silveira at SA500 hosted in the NYSE" src="http://silveiraneto.net/wp-content/uploads/2011/10/P1060269-500x375.jpg" alt="" width="500" height="375" /></p>
<p>SA500 was amazing. I could talk with people that created products I love and use everyday as <a title="Venmo" href="http://venmo.com/">Venmo</a> and <a href="www.meetup.com">Meetup</a>. In fact, thank you for all, specially <a href="http://www.nextjump.com/">nextjump.com</a>, for organizing this event.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/10/17/silicon-alley-500/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>my medieval me</title>
		<link>http://silveiraneto.net/2011/10/10/my-medieval-me/</link>
		<comments>http://silveiraneto.net/2011/10/10/my-medieval-me/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 02:57:28 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3943</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/10/10/my-medieval-me/" title="my medieval me"></a>http://silveiraneto.net/downloads/medieval.svg]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/10/10/my-medieval-me/" title="my medieval me"></a><p><img class="alignnone size-full wp-image-3944" title="eu medieval cartoon" src="http://silveiraneto.net/wp-content/uploads/2011/10/eu_medieval.png" alt="" width="540" height="598" /></p>
<p><a href="http://silveiraneto.net/downloads/medieval.svg">http://silveiraneto.net/downloads/medieval.svg</a></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/10/10/my-medieval-me/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>what I feel when I see someone using JPG when he should be using a PNG</title>
		<link>http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/</link>
		<comments>http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 02:04:20 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[capitão nascimento]]></category>
		<category><![CDATA[gif]]></category>
		<category><![CDATA[JPG]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=3936</guid>
		<description><![CDATA[<a href="http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/" title="what I feel when I see someone using JPG when he should be using a PNG"></a>Seriously, is that hard? To discovery which file type you have to use for your image just follow these simple instructions in following priority order: Have text? Use PNG. Is a piece of art like a draw, a painting or a webcomic? &#8230;<p class="read-more"><a href="http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/" title="what I feel when I see someone using JPG when he should be using a PNG"></a><p style="text-align: center;"><img class="size-full wp-image-3937 aligncenter" title="capitao nascimento tapa na cara" src="http://silveiraneto.net/wp-content/uploads/2011/10/capitao_nascimento_tapa_na_cara.gif" alt="" width="280" height="160" /></p>
<p>Seriously, is that hard?</p>
<p>To discovery which file type you have to use for your image just follow these simple instructions in following priority order:</p>
<ol>
<li>Have text? <strong>Use PNG.</strong></li>
<li>Is a piece of art like a draw, a painting or a webcomic? <strong>Use PNG.</strong></li>
<li>It is&#8230; moving! <strong>Use GIF.</strong></li>
<li>Is a photo? Use <strong>JPG</strong>.</li>
<li>Is not exactly a photo but contains photos (like people. trees and landscapes)? <strong>Use JPG.</strong></li>
<li>Is not a photo, does not contain a photo but I remain concerned about the size of my file despite the breakthrough in telecommunication speeds.<strong> Try PNG with indexed palette and Floyd–Steinberg color dithering.</strong></li>
<li>Nah, man. <strong>Use JPG but with all lower compression or higher quality options you may find.</strong></li>
<li>It&#8217;s nothing listed above! <strong>Sir, your problem is far away from the scope of these instructions.</strong></li>
</ol>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2011/10/09/what-i-feel-when-i-see-someone-using-jpg-when-he-should-be-using-a-png/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

