Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Group nucleotide databases based on admin-supplied keywords #29

Open
yannickwurm opened this issue Jun 9, 2011 · 7 comments
Open

Group nucleotide databases based on admin-supplied keywords #29

yannickwurm opened this issue Jun 9, 2011 · 7 comments
Labels

Comments

@yannickwurm
Copy link
Member

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.

@yeban
Copy link
Collaborator

yeban commented Jun 9, 2011

Makes sense; +1.

@yannickwurm
Copy link
Member Author

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

@yeban
Copy link
Collaborator

yeban commented Jun 16, 2011

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

@yannickwurm
Copy link
Member Author

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:
#29 (comment)

@ghost ghost assigned yeban Jun 19, 2011
yeban added a commit that referenced this issue Apr 10, 2012
So the global database table has no internal structure like before (grouped by
nucleotide and protein).  As long as the client side sends a hash value,
SequenceServer will happily look it up; no need of determining the database
type.  And the view side can arbitrarily structure/group the databases for
presentation (like in #29).

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
@cmdcolin
Copy link

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

@yeban
Copy link
Collaborator

yeban commented Sep 26, 2015

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

@cmdcolin
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants