lib/generators/templates/blast.rb in quorum-0.3.1 vs lib/generators/templates/blast.rb in quorum-0.3.2
- old
+ new
@@ -231,22 +231,10 @@
@cmd << generate_blastp_cmd
end
end
#
- # Make the E-value look pretty.
- #
- def format_evalue(evalue)
- evalue = evalue.to_s
- e = evalue.slice!(/e.*/)
- unless e.nil?
- e = " x 10<sup>" << e.sub(/e/, '') << "</sup>"
- end
- evalue.to_f.round(1).to_s << e.to_s
- end
-
- #
# Format Blast report hit_display_id and hit_def.
#
# For added flexibility, Quorum doesn't parse seqids or deflines.
# Instead, format_hit splits the hit_def on whitespace and
# reports hit_display_id as the first element and hit_def as the second.
@@ -293,10 +281,10 @@
hit.each do |hsp|
@data[:hsp_num] = hsp.hsp_num
@data[:bit_score] = hsp.bit_score
@data[:score] = hsp.score
- @data[:evalue] = format_evalue(hsp.evalue)
+ @data[:evalue] = hsp.evalue
@data[:query_from] = hsp.query_from
@data[:query_to] = hsp.query_to
@data[:hit_from] = hsp.hit_from
@data[:hit_to] = hsp.hit_to
@data[:query_frame] = hsp.query_frame