Skip to content

Instantly share code, notes, and snippets.

@robsyme
Created June 4, 2009 11:07
Show Gist options
  • Save robsyme/123569 to your computer and use it in GitHub Desktop.
Save robsyme/123569 to your computer and use it in GitHub Desktop.
require "rubygems"
require "bio"
filepath = '/media/Store/data/sn15_genes/080611_sn15_aagi_gene.fas'
Bio::FlatFile.open(filepath) do |flatfile|
flatfile.each do |entry|
puts entry.entry_id
puts entry.seq
puts entry.seq.reverse_complement
puts entry.length
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment