[MOBY-dev] get datatype information at runtime

Edward Kawas edward.kawas at gmail.com
Wed Apr 28 13:39:01 UTC 2010


Hi Rudolf,

Probably the easiest way to get this information without calling mobycentral
is to go to the cache. Usually datatypes in Perl MoSeS are generated as
needed from the cache, so you could get the most up to date information from
there.

Eddie

> -----Original Message-----
> From: moby-dev-bounces at lists.open-bio.org [mailto:moby-dev-
> bounces at lists.open-bio.org] On Behalf Of Biczok Rudolf
> Sent: Wednesday, April 28, 2010 2:12 AM
> To: 'moby-dev at lists.open-bio.org'
> Subject: [MOBY-dev] get datatype information at runtime
> 
> Hello MOBY com,
> 
> I'm working with the Perl-Moses package and I want to implement some
> functionality which converts us internal perl objects automatically into
> BioMOBY objects.
> 
> But I don't really know how to get information about a BioMOBY datatype at
> the runtime, because every generate Package handles these attributes in an
> abstract why:
> 
> my %_allowed =
>     (
>          id         => undef,
>          namespace  => undef,
>          provision  => {type =>
'MOSES::MOBY::Data::ProvisionInformation'},
>          xrefs      => {type => 'MOSES::MOBY::Data::Xref', is_array => 1},
>          primitive  => {type => MOSES::MOBY::Base->BOOLEAN},
>      );
> 
> .. which means I can't access these information from a other package.
> 
> So is there any mechanism that allows me to get these suff without calling
> the MOBY-Central (just an static method)?
> 
> Best wishes,
> Rudolf
> 
> 
> Rudolf Biczok
> Bioinformatics HUSAR
> Mobile Phone : +49 171 6289148
> Phone:               +49 (0) 6221 42 2342
> 
> Deutsches Krebsforschungszentrum
> Im Neuenheimer Feld 280
> D-69120 Heidelberg
> [cid:image001.gif at 01CAE6BE.9F358520]
> 





More information about the MOBY-dev mailing list