|
From: Steve F. <sfi...@pc...> - 2005-11-18 17:30:14
|
folks-
there is at least one set of command line args that are used in the
majority of plugins, those that get the name and version of the
externalDatabaseRelease to tag the new data with.
many plugins have different names for these args. here are some:
--externalDatabase and --externalDatabaseVersion
--externalDb and -- externalDbRls
etc.
i'm getting a little tired of having to deal w/ the inconsistency.
i propose that we move to a new convention (slowly but surely). i
propose that plugins be upgraded to this when we get a chance, and, that
we do not provide backward compatibility. it just means a simple
change to any script or pipeline that calls the plugin.
I think we should have this as the standard argument:
--externalDatabaseSpec "Genbank|1.0.0"
In other words, we introduce a standard representation of a database
name and version of the form:
name|version
The plugin superclass method $self->getExtDbRlsId() will come in two
forms. The first would be new. The second is already supported:
$self->getExtDbRlsId($externalDatabaseSpec)
$self->getExtDbRlsId($externalDatabaseName, $externalDatabaseVersion)
The additional advantage of introducing the standard format of
name|version is that some plugins take two or more extDbRls's on the
command line, and for each one there needs to be parallel args, one for
the name and one for the version. thus, this will simplify many plugin
args.
Unless there are objections, new plugins will use this standard, and old
ones will be upgraded sooner or later.
steve
|