<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Sort on Chatomics</title>
    <link>https://divingintogeneticsandgenomics.com/tags/sort/</link>
    <description>Recent content in Sort on Chatomics</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; 2018 Ming &#39;Tommy&#39; Tang</copyright>
    <lastBuildDate>Thu, 29 Oct 2015 12:35:00 -0700</lastBuildDate>
    
	<atom:link href="https://divingintogeneticsandgenomics.com/tags/sort/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>merge the sub-cytobands to major cytoband and get the coordinates</title>
      <link>https://divingintogeneticsandgenomics.com/archive/merge-the-sub-cytobands-to-major-cytoband-and-get-the-coordinates/</link>
      <pubDate>Thu, 29 Oct 2015 12:35:00 -0700</pubDate>
      
      <guid>https://divingintogeneticsandgenomics.com/archive/merge-the-sub-cytobands-to-major-cytoband-and-get-the-coordinates/</guid>
      <description>In my pervious blog post, I wrote How to get the cooridnates of the cytobands
Now, how about I want to get coordinates of the bigger band merging all the sub-bands.
ex. chr1 p36.33 p36.32, p36.31, p36.23, p36.22, p36.13, p36.12, p36.11....p31.1 to p3 chr1 0 84900000
This is a task that requires some efforts for text processing. First look at what the data look like:
head -30 cytoBand.txt chr1 0 2300000 p36.</description>
    </item>
    
    <item>
      <title>sort with header maintained</title>
      <link>https://divingintogeneticsandgenomics.com/archive/sort-with-header-maintained/</link>
      <pubDate>Tue, 25 Aug 2015 13:36:00 -0700</pubDate>
      
      <guid>https://divingintogeneticsandgenomics.com/archive/sort-with-header-maintained/</guid>
      <description>We usually want to maintain header when we do something for the body of the text.
You can find a body function here which can only accept streams and assumes only one line header.
Use subshells and awk can do the same job and potentially more flexible.
 View this gist on GitHub
The original credits go to Aaron Quinlan. see a gist below to sort vcf files in natural chromosome order :chr1 chr2 chr3.</description>
    </item>
    
    <item>
      <title>Unix sort except the first line</title>
      <link>https://divingintogeneticsandgenomics.com/archive/unix-sort-except-the-first-line/</link>
      <pubDate>Mon, 03 Mar 2014 11:49:00 -0800</pubDate>
      
      <guid>https://divingintogeneticsandgenomics.com/archive/unix-sort-except-the-first-line/</guid>
      <description>Many times I have a file with a header needs to be sorted, but I do not want to sort the header.
I saw it on Twitter:
 Retweeted by Ming Tang
razor ‏@razZ0r  Mar 1
todays fav linux oneliner: command | (read -r; printf &amp;quot;%s\n&amp;quot; &amp;quot;$REPLY&amp;quot;; sort) &amp;gt; output sort everything except first line.
REPLY is the default variable for the read command.
one more general use of the &amp;quot;body&amp;quot; function</description>
    </item>
    
  </channel>
</rss>