Jul
22nd
Tue
22nd
validates_true_for :alignment, :logic => lambda {
re = Regexp.new(/\d+\s\d+/) ! re.match(alignment) },
:message => 'Alignment field should not contain alignment count and length'
validates_format_of :alignment,
:with => /F(Y[A-Z]{2}\d{3}[CW](-[AB])?)/,
:message => 'Alignment should contain an S. cerevisiae gene'
W, [2008-06-03T11:29:39.719022 #29112] WARN — : Load gene: Q0075 is not a valid coding ORF
W, [2008-06-03T11:29:40.642888 #29112] WARN — : Load alignment: No yeast ORF found in MYBR098W alignment
W, [2008-06-03T11:29:42.254248 #29112] WARN — : Load alignment: YDR474C is not a verified ORF
W, [2008-06-03T11:29:42.585707 #29112] WARN — : Load alignment: YER087C-A is not a verified ORF
#!/usr/local/bin/ruby
require 'rubygems'
require 'bluecloth'
require 'rubypants'
puts RubyPants.new(BlueCloth.new(File.open(ARGV.shift).read).to_html).to_html