meren/viamics — Issue #20: Get blastdb specific stuff out of server.py
Author: theJohnnyBrown
Created: 2011-11-04 05:28:08+00:00
State: open
Labels: planned feature

see: https://github.com/meren/viamics/blob/blast/framework/server.py#L500, for example

The reason it's in there is that the resource of a blast database doesn't fit as a module, because it can't fit in the flow of creating a samples_dict for the commons module to turn into images. I can imagine adding other types of resources in the future that may or may not belong to a particular analysis or analysis type. This brings up the need to generically handle these various resources.

One way to do this would be to change exec_analysis and append_samples_to_analysis so that commons does not get called (let the module call commons if it needs it) and then blastdb could just be another module. Basically change a module from modeling an analysis type to modeling other kinds of resources.

Another way would be to use the generic create/delete/etc. methods, but change them to call a generic hook in the module, and for the analysis type modules, this hook would call back to server.py's exec or append, but blast would do its own thing