Created
May 4, 2010 15:14
-
-
Save pjotrp/389527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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