Retrieving subject start/end

Hi,

How can I retrieve subject start (sstart) & subject end (send) for each hit in the “tabular-view” section within the views/result.erb file:

<% query.hits.each_with_index do |hit, h| %> |

  • |
| <%= h + 1 %>. | "><%= "#{hit.id}" %> | <%= prettify hit.score %> | <%= prettify hit.evalue %> | <%= prettify hit.length %>
**<%= hit.hsps... my code here %>**
| | <% end %> |

Thank you.
Anh-Dao

That would be,

hit.hsps.map(&:sstart).min
hit.hsps.map(&:send).max

i.e., min of all hsp.sstart and max of all hsp.send.

– Priyam