Just a quick Ruby script to convert a genome to into boustrophedonic form, in case it ever comes up again.

n=0; File.open(‘genome.fasta’).map{|line| (n+=1).odd? ? line : line.reverse }

  1. micahcoleman reblogged this from benjaminstein and added:
    Sweet! I needed one of those!
  2. benjaminstein posted this
Short URL for this post: http://tmblr.co/ZNQmbyCKxgr