Skip to content

Instantly share code, notes, and snippets.

@pjotrp
Created May 4, 2010 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjotrp/389527 to your computer and use it in GitHub Desktop.
Save pjotrp/389527 to your computer and use it in GitHub Desktop.
# BioRuby to BioScala adapter
require 'java'
require 'bio'
class RbSequence
def translate(sequence, frame, codon_table)
seq = Bio::Sequence::NA.new(sequence)
seq.translate(frame,codon_table)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment