[ensembl-dev] VEP Plugin subroutine once finished

Will McLaren wm2 at ebi.ac.uk
Thu May 28 09:04:41 BST 2015


Hi Konrad,

You should be able to achieve this with a standard Perl DESTROY method, e.g.

sub DESTROY {
  # do stuff
}

See http://perldoc.perl.org/perlobj.html#Destructors

Will

On 27 May 2015 at 23:23, Konrad Karczewski <konradk at broadinstitute.org>
wrote:

>  Hi VEP/Ensembl team,
>
> At the moment, there exist subroutines to run something when the plugin is
> instantiated, and then for each annotation, but is there a way to run
> something once the job has finished? I'm using LOFTEE with MySQL now and
> DBD sometimes leaves connections open, which is leading to MySQL blocking.
> I'd love a way to run $db->disconnect() once it's all done. Would it be
> possible to get something like this into the BaseVepPlugin class? A simple
> optional subroutine that runs once when VEP finishes would be awesome to
> have.
>
> Thanks!
> -Konrad
>
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info:
> http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20150528/25090ef6/attachment.html>


More information about the Dev mailing list