set default database


I have two databases listed on the sequenceserver BLAST search page. Is it possible to have one database pre-selected as a ‘default’ database’ to make it easier for the user? What file do I need to edit?

Many thanks,

views/search.erb L211 renders the input tag for a database. It’s part of a loop. Based on some conditional add checked=“checked” to it.

Alternatively, public/js/sequenceserver.js L154 has a function that is called on page load to pre-select database if there’s only one. You can do it here. Run with -D option to make sure your changes will take effect. Build a minified JS afterwards using rake build.