Skip to content
Permalink
Browse files
Use hit accession no. instead of id
Accession number can also be used in place of hit ids for querying using
blastdbcmd. With this change, we can prepend 'lcl|' to accession no. and
not only can obtain hits as before, but also treat special cases like
issue #88.

Should close #88.

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>
  • Loading branch information
raivivek committed Dec 3, 2014
1 parent c81fd6e commit 6d83a0833c42ec3a9e944ebc7873603f4a82d774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
@@ -46,6 +46,9 @@ def guess_type(sequence_string)
# Returns an Array of Sequences capturing the sequences fetched from BLAST
# database.
def from_blastdb(sequence_ids, database_ids)
# Allows one to query sequences containing all numbers.
# See yannickwurm/sequenceserver bug #88 for full report.
sequence_ids = sequence_ids.map{|s| 'lcl|' << s}
sequence_ids = sequence_ids.join(',')
database_names = Database[database_ids].map(&:name).join(' ')

@@ -88,7 +88,7 @@
class="col-md-4 text-right">
<div class="btn-group hit-links">
<% # cache all generated links of easy access elsewhere %>
<% links = report.link_per_hit(hit.id) %>
<% links = report.link_per_hit(hit.accession) %>
<a
role="button"
class="btn btn-default <%= links.first[:classes].join(' ') %>"

0 comments on commit 6d83a08

Please sign in to comment.