Skip to content

Instantly share code, notes, and snippets.

@pjotrp
Created May 4, 2010 15:14
Show Gist options
  • Select an option

  • Save pjotrp/389527 to your computer and use it in GitHub Desktop.

Select an option

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