sequenceserver icon indicating copy to clipboard operation
sequenceserver copied to clipboard

Group nucleotide databases based on admin-supplied keywords

Open yannickwurm opened this issue 13 years ago • 7 comments

Some hurdles may be met if there are many databases. This is already becoming clear on fourmidable.

One idea could be to add a "Select all" button.

A more elegant approach could be to optionally group databases (based on keywords provided by the admin in config.yaml). For example, it would make sense if all databses with "genome" in the title were grouped together; and similarly that all databases with "transcript" or "cDNA" were grouped together. (under subheadings within the nucleotide section). Each subheading should have its own "select all" button.

yannickwurm avatar Jun 09 '11 02:06 yannickwurm

Makes sense; +1.

yeban avatar Jun 09 '11 07:06 yeban

Maybe its easiest (but flexible) if the config.yaml file has a field such as: groupings: /(transcript)|(cDNA)/, /genome/

yannickwurm avatar Jun 16 '11 02:06 yannickwurm

How about grouping database settings in config.yml, something like:

database:
  path: ~/db_path
  group_by:  /(transcript)|(cDNA)/, /genome/ #this can be a string or a regexp

yeban avatar Jun 16 '11 07:06 yeban

cool :)

grouping has to be optional though

On 16 Jun 2011, at 14:36, yeban wrote:

How about grouping database settings in config.yml, something like:

database:
 path: ~/db_path
 group_by:  /(transcript)|(cDNA)/, /genome/ #this can be a string or a regexp

Reply to this email directly or view it on GitHub: https://github.com/yannickwurm/sequenceserver/issues/29#issuecomment-1379307

yannickwurm avatar Jun 16 '11 07:06 yannickwurm

Are there any current ideas about adding some groupings like this?

cmdcolin avatar Sep 23 '15 14:09 cmdcolin

Apart from the ideas above, there's this other one I had in mind and have experimented with a bit. If files under database dir are organised as:

|- genome/                    # => group / category
|  |- species_name_1/
|  |  ...
|  |- species_name_2/
|  |  ...
|  |- species_name_3/
|  |  ...
|- proteins/
|  |- species_name_1/
|  |  ...
`- transcripts/
   |- species_name_1/
   |  ...

the information from directory structure can be used to present the databases like:

databases

People hosting a large number of databases could potentially benefit from this. But have to do it without getting in the way of people hosting just a handful of dbs. The grouping would be really flexible this way, allowing grouping by taxonomy, source, function, etc.

I have implemented a simple version of this in a separate branch, but it's gonna take some time to release even if others agree with the idea.

/cc @wwood

yeban avatar Sep 26 '15 10:09 yeban

Looks pretty cool! It isn't really urgent but I like this concept. Would definitely try it out.

But have to do it without getting in the way of people hosting just a handful of dbs

true.

cmdcolin avatar Sep 26 '15 17:09 cmdcolin