<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Bioinformatics on zachcp</title>
		<link>http://zachcp.org/categories/bioinformatics/</link>
		<description>Recent content in Bioinformatics on zachcp</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
			<copyright>© 2007- {year}</copyright>
		
		
			<lastBuildDate>Fri, 08 Jul 2016 08:03:00 +0000</lastBuildDate>
		
			<atom:link href="http://zachcp.org/categories/bioinformatics/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Remote Blast</title>
				<link>http://zachcp.org/blog/remoteblast/</link>
				<pubDate>Fri, 08 Jul 2016 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/remoteblast/</guid>
				<description>&lt;p&gt;Somewhat amazingly I didn&amp;rsquo;t realize how easy/awesome blast&amp;rsquo;s &lt;strong&gt;-remote&lt;/strong&gt; flag is. Heres a piece of the human beta globin gene blasted against NCBI&amp;rsquo;s &lt;strong&gt;nt&lt;/strong&gt; db. This is an immensely useful feature; thank you NCBI.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-[bash]&#34;&gt;#make a small fastafile&#xA;echo -e &amp;quot;&amp;gt;hemoglobinbeta\nTGTGTGCTTATTTGCATATTCATAATCTCCCTACTTTATTTTCTTTTATTTTT\n&amp;quot; &amp;gt; testseq.fna&#xA;&#xA;#blast outfmt 6 is tabular&#xA;blastn -db nt -query testseq.fna -remote -outfmt 6&#xA;&#xA;hemoglobinbeta&#x9;gi|1036032571|gb|AH001475.2|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;2405&#x9;2461&#x9;3e-20&#x9;106&#xA;hemoglobinbeta&#x9;gi|970597825|gb|KU350152.1|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;1269&#x9;1325&#x9;3e-20&#x9;106&#xA;hemoglobinbeta&#x9;gi|970597823|gb|KR028331.1|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;1269&#x9;1325&#x9;3e-20&#x9;106&#xA;hemoglobinbeta&#x9;gi|730321889|gb|KM504957.1|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;843&#x9;899&#x9;3e-20&#x9;106&#xA;hemoglobinbeta&#x9;gi|302313136|gb|GU324922.1|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;2844&#x9;2900&#x9;3e-20&#x9;106&#xA;hemoglobinbeta&#x9;gi|288899267|gb|GU372416.1|&#x9;100.00&#x9;57&#x9;0&#x9;0&#x9;1&#x9;57&#x9;231&#x9;287&#x9;3e-20&#x9;106&#xA;...&#xA;...&#xA;...&#xA;&#xA;#the default format includes alignments&#xA;blastn -db nt -query testseq.fna -remote&#xA;&#xA;&#xA;&amp;gt;gb|AH001475.2| Homo sapiens beta-globin gene, complete cds&#xA;Length=4355&#xA;&#xA; Score = 99.0 bits (53),  Expect = 4e-18&#xA; Identities = 53/53 (100%), Gaps = 0/53 (0%)&#xA; Strand=Plus/Plus&#xA;&#xA;Query  1     TGTGTGCTTATTTGCATATTCATAATCTCCCTACTTTATTTTCTTTTATTTTT  53&#xA;             |||||||||||||||||||||||||||||||||||||||||||||||||||||&#xA;Sbjct  2405  TGTGTGCTTATTTGCATATTCATAATCTCCCTACTTTATTTTCTTTTATTTTT  2457&#xA;&#xA;...&#xA;...&#xA;...&#xA;&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<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>topic histograms of PUBMED using eutils CLI</title>
				<link>http://zachcp.org/blog/ncbi_eutils/</link>
				<pubDate>Tue, 21 Apr 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/ncbi_eutils/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve needed to download and bulk analyze some abstract data from Pubmed and have taken this as an opportunity to familiarize myself with their &lt;a href=&#34;http://www.ncbi.nlm.nih.gov/books/NBK179288/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;eutils command line interface&lt;/a&gt;. The command line interface to eutils gives you full access to NCBI&amp;rsquo;s many databases but allows you to perform queries in a sophisticated way. The few, core set of commands can perform fairly sophisticated analyses by chaining the calls together with pipes, unix-style. &lt;strong&gt;esearch&lt;/strong&gt;, &lt;strong&gt;efilter&lt;/strong&gt;, and &lt;strong&gt;efetch&lt;/strong&gt; are the primary means of looking for, filtering and obtaining data, while the &lt;strong&gt;xtract&lt;/strong&gt; command parses the XML data from NCB into useable formats. The examples in the documentation in the link above are enough to get you started and to see how the tools let you explore the data (i would use a filter on the big searches to reduce search time) and iterate the discovery/retrieval process&lt;/p&gt;</description>
			</item>
			<item>
				<title>Sequence Server</title>
				<link>http://zachcp.org/blog/sequence-server-setup/</link>
				<pubDate>Tue, 07 Apr 2015 08:03:00 +0000</pubDate>
				<guid>http://zachcp.org/blog/sequence-server-setup/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;http://www.sequenceserver.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Sequnceserver&lt;/a&gt; is a webserver that can be run locally and will provide a slick interface to &lt;a href=&#34;ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast&amp;#43;/LATEST/&#34;&gt;Blast&lt;/a&gt; for any sequence data you may have. Any lab with a fair amount of sequence data will find this tool to be useful. Heres a few notes on our setup.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;#We&#39;re using a local machine with RHEL6.4 Make sure blast and ruby are installed.&#xA;yum install ncbi-blast&#xA;yum install ruby           # probably already installed&#xA;gem install sequenceserver # Boom! simple as that&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Sequenceserver&amp;rsquo;s config file. &lt;code&gt;~/.sequenceserver.conf&lt;/code&gt; allows you to specify the folder with your blast databases, change the port it is served on, and the number of threads/cpus you make available to blast. I put the sequence server folder in its own directory and link all of the blast databases to it. That way I can keep big NCBI databases like NT and NR in their own folders. I can also keep lab-generated data organized in their own folders with their own documentation.&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>
