Skip to content

Instantly share code, notes, and snippets.

@danmaclean
Created April 20, 2013 10:17
Show Gist options
  • Save danmaclean/5425505 to your computer and use it in GitHub Desktop.
Save danmaclean/5425505 to your computer and use it in GitHub Desktop.
text to fasta
require 'bio'
some_text = "aatgacccgt" * 10
seq = Bio::Sequence::NA.new(some_text)
puts seq.to_fasta("seq_name", 60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment