Skip to content

Instantly share code, notes, and snippets.

View pjotrp's full-sized avatar
🚣‍♂️
Leaving github is harder than it should be

Pjotr Prins pjotrp

🚣‍♂️
Leaving github is harder than it should be
View GitHub Profile
# 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