lib/sequenceserver/links.rb in sequenceserver-1.0.14 vs lib/sequenceserver/links.rb in sequenceserver-1.1.0.beta
- old
+ new
@@ -58,39 +58,9 @@
#
# Examples:
# ---------
# See methods provided by default for an example implementation.
- def sequence_viewer
- accession = encode self.accession
- database_ids = encode querydb.map(&:id).join(' ')
- url = "get_sequence/?sequence_ids=#{accession}" \
- "&database_ids=#{database_ids}"
-
- {
- :order => 0,
- :url => url,
- :title => 'Sequence',
- :class => 'view-sequence',
- :icon => 'fa-eye'
- }
- end
-
- def fasta_download
- accession = encode self.accession
- database_ids = encode querydb.map(&:id).join(' ')
- url = "get_sequence/?sequence_ids=#{accession}" \
- "&database_ids=#{database_ids}&download=fasta"
-
- {
- :order => 1,
- :title => 'FASTA',
- :url => url,
- :class => 'download',
- :icon => 'fa-download'
- }
- end
-
def ncbi
return nil unless id.match(NCBI_ID_PATTERN)
ncbi_id = Regexp.last_match[1]
ncbi_id = encode ncbi_id
url = "http://www.ncbi.nlm.nih.gov/#{querydb.first.type}/#{ncbi_id}"