<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Make on zachcp</title>
		<link>http://zachcp.org/categories/make/</link>
		<description>Recent content in Make on zachcp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>© 2007- {year}</copyright>
		
		
			<lastBuildDate>Thu, 15 Oct 2015 08:03:00 +0000</lastBuildDate>
		
			<atom:link href="http://zachcp.org/categories/make/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Makefile Tip: Keep-Going</title>
				<link>http://zachcp.org/blog/makefile_keep_going/</link>
				<pubDate>Thu, 15 Oct 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/makefile_keep_going/</guid>
				<description>&lt;p&gt;This is a small post on patterns in Make in response to a frustrating error in which I would generate, say, 400 tasks for &lt;em&gt;Make&lt;/em&gt; but &lt;em&gt;Make&lt;/em&gt; would complete only a small subset and quit. Here is a small example and an explanation.&lt;/p&gt;&#xA;&lt;p&gt;A common workflow in our lab is to receive a set of large paired-end fastq files that needs to be demultiplexed by a barcode and each file needs to be subsequently split.&lt;/p&gt;</description>
			</item>
			<item>
				<title>EUtils Gene Download</title>
				<link>http://zachcp.org/blog/eutils-gene/</link>
				<pubDate>Fri, 07 Aug 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/eutils-gene/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve &lt;a href=&#34;http://zachcp.org/blog/2015/ncbi_eutils/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;written before&lt;/a&gt; about the power of &lt;a href=&#34;http://www.ncbi.nlm.nih.gov/books/NBK179288/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Entrez Direct&lt;/a&gt;,&#xA;a set of command line utilities for accessing NCBI&amp;rsquo;s immense data. Although the web interface is great for many things, if you find yourself&#xA;clicking and clicking the CLI is probably a better route. I wanted to be able to download all of the bacterial genes annotated by some name but ran into&#xA;an issue whereby I was unintentionally downloading the entire genome - not good. Heres the problem and the workaround.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Rmd for Static Sites</title>
				<link>http://zachcp.org/blog/blogging-with-rmd/</link>
				<pubDate>Mon, 11 May 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/blogging-with-rmd/</guid>
				<description>&lt;p&gt;R markdown and knitr are powerful ways to render reproducible R workflows, however,&#xA;if you want to use Rmd files in your blog there is a bit of plumbing you will need to put do.&lt;/p&gt;&#xA;&lt;p&gt;Lets say you have something like the following setup where your root&#xA;directory has a &lt;code&gt;Makefile&lt;/code&gt; and you have subfolders representing static content&#xA;and blog content. If you are using a static blog generator like I am (see &lt;a href=&#34;http://gohugo.io/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Hugo&lt;/a&gt;),&#xA;the static generator will genrate slugs, organise tags andtemplates and so on. Therefore,&#xA;unlike the traditional Rstudio-based Rmarkdown workflow where HTML is output, it is preferable to&#xA;generate the Markdown file and image files and incorporating those into your static blog generator&#xA;workflow. The following solution uses a Makefile to control the conversion of &lt;strong&gt;Rmd-&amp;gt;Md&lt;/strong&gt;. The &lt;code&gt;knitr&lt;/code&gt; package&#xA;will then need to be used to correctly place the image files in the appropriate folder&#xA;and to link image &lt;strong&gt;src=&amp;quot;&amp;quot;&lt;/strong&gt; to the correct locations by invoking the &lt;code&gt;opt_knit$set()&lt;/code&gt;&#xA;and setting the appropriate values.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Wildcards in Make</title>
				<link>http://zachcp.org/blog/wildcards-in-make/</link>
				<pubDate>Wed, 18 Feb 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/wildcards-in-make/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.gnu.org/software/make/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Make&lt;/a&gt; is a tool initially developed by software developers to build their source code but it has found another home in data analysis and reproducible research.  Mike Bostock&amp;rsquo;s excellent &lt;a href=&#34;http://bost.ocks.org/mike/make/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;make overview&lt;/a&gt; outlines the main benefits: a concise way to show all of the steps necessary to build something - in his case a visualization.  Karl Broman&amp;rsquo;s &lt;a href=&#34;http://kbroman.org/minimal_make/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;make tutorial&lt;/a&gt; is a second excellent introduction make, in this case in the context of creating a completely reproducible research paper. One of Karl&amp;rsquo;s examples is the use of the &lt;strong&gt;wildcard&lt;/strong&gt; which allows you to use pattern matching to process lots of files in a simple, declarative way. Anyone new to make will probably have a bit of difficulty with the syntax but once mastered it can be incredibly useful to represent data processing steps for large, multistep projects. This is a very powerful tool for data processing and I wanted to highlight how the wildcards can be used for data processing.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
