<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Biopython on zachcp</title>
		<link>http://zachcp.org/categories/biopython/</link>
		<description>Recent content in Biopython on zachcp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>© 2007- {year}</copyright>
		
		
			<lastBuildDate>Wed, 20 May 2015 08:03:00 +0000</lastBuildDate>
		
			<atom:link href="http://zachcp.org/categories/biopython/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Process Substitution and BioPython</title>
				<link>http://zachcp.org/blog/process_substitution/</link>
				<pubDate>Wed, 20 May 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/process_substitution/</guid>
				<description>&lt;p&gt;I recently picked up a copy of Vince Buffalo&amp;rsquo;s &lt;a href=&#34;http://www.amazon.com/Bioinformatics-Data-Skills-Reproducible-Research/dp/1449367372?tag=duckduckgo-d-20&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Bioinformatics Data Skills&lt;/a&gt; and have learned a few gems. There is one section where he discusses the uses of named pipes and process substitution, (blogpost about it &lt;a href=&#34;http://vincebuffalo.com/2013/08/08/the-mighty-named-pipe.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;here&lt;/a&gt;) and I wanted to try it. I also have been using the Click library for making command line scripts in python. Can I combine these together fruitfully and get the ease writing code with some of the memory-saving and computational speedups of using process substition? Indeed. Here I build up a simple script that aims to concatenate each record of a forward/reverse fastq pair and gzip the output.&lt;/p&gt;</description>
			</item>
			<item>
				<title>PyPy, Biopython and Fasta/q Parsing</title>
				<link>http://zachcp.org/blog/pypy_biopython_bench/</link>
				<pubDate>Fri, 20 Mar 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/pypy_biopython_bench/</guid>
				<description>&lt;img src=&#34;http://biopython.org/DIST/docs/tutorial/images/biopython.jpg&#34; width=200&gt;&#xA; &lt;img src=&#34;https://upload.wikimedia.org/wikipedia/commons/b/b0/Pypy_logo.png&#34; width=200&gt;&#xA;&lt;p&gt;&lt;em&gt;tl;dr pypy and a good algorithm can give you speed&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;Can Pypy speed up your Sequence analysis? &lt;a href=&#34;http://pypy.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Pypy&lt;/a&gt; is a compiler for python that boasts a &lt;a href=&#34;http://speed.pypy.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;speedup&lt;/a&gt; of your programs relative to python. Anyone parsing through large fasta/fastq files knows that speedups are always welcome. How does pypy work for something simple and ubiquitous like iterating through a bunch of records and writing them back out? I use &lt;a href=&#34;https://github.com/lh3/seqtk&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;seqtk&lt;/a&gt; as a baseline for how fast it is possible to go and compare a few different iteration methods using python2, pypy2, python3 and pypy3. Full code is available in this &lt;a href=&#34;https://gist.github.com/zachcp/cfbbdeecb89bdd27a000&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Gist&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
