[ensembl-dev] VEP Plugin return multiple values
Will McLaren
wm2 at ebi.ac.uk
Fri Apr 26 10:29:16 BST 2013
Yes, you just need to add multiple key/value pairs to your return hash:
return {
key1 => $value1,
key2 => $value2,
key3 => $value3
};
etc
or you can construct the hash first and return a reference to it:
my %return = (
key1 => $value1,
key2 => $value2,
key3 => $value3
);
return \%return;
Regards
Will
On 26 April 2013 10:23, Guillermo Marco Puche
<guillermo.marco at sistemasgenomicos.com> wrote:
> Hello,
>
> Is it possible to return multiple vars for one single VEP plugin?
>
> Imagine a plugin calculates $var1,$var2,$var3
>
> I want to add them as three different columns to VEP output:
> VAR1 VAR2 VAR3
>
> Is it possible to do that with multiple returns and --fields flag?
>
>
> Thank you.
>
> Best regards,
> Guillermo.
>
> _______________________________________________
> 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/
>
More information about the Dev
mailing list