<?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 Dayne Filer, MD, PhD | Research Software &amp; Scientific Computing</title>
    <link>https://daynefiler.com/categories/bioinformatics/</link>
    <description>Recent content in bioinformatics on Dayne Filer, MD, PhD | Research Software &amp; Scientific Computing</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 10 Oct 2019 11:29:37 -0400</lastBuildDate><atom:link href="https://daynefiler.com/categories/bioinformatics/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Log-Sum-Exp trick for getting posterior probabilities from small likelihoods.</title>
      <link>https://daynefiler.com/blog/log-sum-exp/</link>
      <pubDate>Thu, 10 Oct 2019 11:29:37 -0400</pubDate>
      
      <guid>https://daynefiler.com/blog/log-sum-exp/</guid>
      <description>To formulate the problem, consider calculating the posterior probability given a series of weighted likelihoods. Let
 \[ x_i \]
 be the likelihood for observation i. We wish to calculate the posterior probability as:
 \[ p_i = \frac{x_i}{\sum_j x_j} \]
 As Robert Eisele very nicely discusses in his blog post, we can run into underflow issues. Suppose you have the following vector of logged likelihoods.
x &amp;lt;- c(-9000, -3000, -1000) exp(x)/sum(exp(x)) # [1] NaN NaN NaN As we can see, all the values will be zero.</description>
    </item>
    
    <item>
      <title>Downloading gnomAD</title>
      <link>https://daynefiler.com/blog/downloadgnomad/</link>
      <pubDate>Thu, 20 Jun 2019 14:30:16 -0400</pubDate>
      
      <guid>https://daynefiler.com/blog/downloadgnomad/</guid>
      <description>Here is a concise guide to downloading gnomAD using gsutil. I am typically working on a server, and (begrudgingly) use conda to manage software. The only real trick here is getting the conda environment setup &amp;ndash; I could have easily called this &amp;ldquo;Using gsutil with conda.&amp;rdquo; &amp;ndash; the actual gsutil utility is pretty easy to use. gsutil, needed for accessing the gnomAD data, is buried within the &amp;lsquo;google-cloud-sdk&amp;rsquo; conda package, not to be confused with the numerous other &amp;lsquo;google-cloud-&amp;rsquo; conda packages.</description>
    </item>
    
    <item>
      <title>Accessing NIH FTP</title>
      <link>https://daynefiler.com/blog/accessingnihftp/</link>
      <pubDate>Mon, 11 Feb 2019 11:11:05 -0500</pubDate>
      
      <guid>https://daynefiler.com/blog/accessingnihftp/</guid>
      <description>This should be trivial, and it is with the right instructions. Unfortunately, those are not listed in the disclaimer given when connecting to the NIH FTP site. The NIH gives the instructions here. The NIH FTP offers a standard anonymous connection. Anonymous connections use &amp;ldquo;anonymous&amp;rdquo; as the user and the connecting user&amp;rsquo;s email as the password. Briefly, follow the command in a Unix terminal:
ftp ftp.ncbi.nih.gov You should receive a prompt that looks like &amp;ldquo;Name (ftp.</description>
    </item>
    
    <item>
      <title>G-indexing in VCF files</title>
      <link>https://daynefiler.com/blog/gindexing/</link>
      <pubDate>Mon, 30 Jul 2018 13:09:45 -0400</pubDate>
      
      <guid>https://daynefiler.com/blog/gindexing/</guid>
      <description>The gnomAD VCF files give information about the observed genotype counts, eg &amp;ldquo;GC_EAS&amp;rdquo; gives the genotype counts for individuals of East Asian decent as a comma-separated string. The order of the counts is determined by genotype-indexing. The above link gives an excellent discussion of getting the genotype index for the general case, regardless of ploidy number. Below is a brief discussion of haploid and diploid indices.
Genotype-indexing works by first indexing the reference and alternative alleles, starting with the reference allele at 0.</description>
    </item>
    
  </channel>
</rss>
