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
#!/usr/bin/env ruby | |
# License: the MIT lincense. | |
# Copyright: MISHIMA, Hiroyuki hmishima at nagasaki-u.ac.jp, 2015 | |
require 'rexml/document' | |
class Qstat2 | |
JOBNAME_WIDTH = 65 | |
def initialize |
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
iupac = { | |
"A" => ["A"], # Adenine | |
"C" => ["C"], # Cytosine | |
"G" => ["G"], # Guanine | |
"T" => ["T"], # Thymine | |
"R" => ["A", "G"], # puRine | |
"Y" => ["C", "T"], # pYrimidine | |
"S" => ["G", "C"], # Strong | |
"W" => ["A", "T"], # Weak | |
"K" => ["G", "T"], # Keto |
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
# A Ruby implementation of | |
# the Viterbi algorithm based on the hidden Markov model (HMM) | |
# | |
# An original Python code: a Wikipedia page "Viterbi algorithm" at | |
# http://en.wikipedia.org/wiki/Viterbi_algorithm | |
# | |
# Author: MISHIMA, Hiroyuki | |
# | |
require 'pp' |
NewerOlder