Method: Bio::FlatFileIndex::DataBank#search_namespaces_get_unique_id
- Defined in:
- lib/bio/io/flatfile/index.rb
#search_namespaces_get_unique_id(key, *names) ⇒ Object
1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 |
# File 'lib/bio/io/flatfile/index.rb', line 1353 def search_namespaces_get_unique_id(key, *names) if names.include?(primary.name) then n2 = names.dup n2.delete(primary.name) p = primary.include?(key) else n2 = names p = nil end s = secondary.search_names(key, *n2) s.push p if p s.sort! s.uniq! s end |