b Micah Coleman

Oct 7, 2009

benjaminstein:

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 }

Sweet! I needed one of those! 

Comments (View)


blog comments powered by Disqus horshammed