Hi Dan, As it is I can't see any easy way of you doing this apart from reusing one of the existing bits of dataset metadata e.g. the version. Are you already using this to store any useful information?
Cheers Damian On Wed, May 5, 2010 at 9:03 PM, Dan Staines <[email protected]> wrote: > > > Could you please explain a bit more about the extend of the meta data. >> An example would help. >> > > This is one single integer for each dataset indicating the taxonomy ID for > the organism in question. For instance, for the E. coli K12 dataset of our > bacterial mart, this would be 83333. > > The idea is that the client script would be able to retrieve this using the > API e.g. > my $initializer = BioMart::Initializer->new('registryFile'=>"./f.conf", > 'action'=>'cached'); > my $registry = $initializer->getRegistry; > foreach my $schema (@{$registry->getAllVirtualSchemas()}){ > # Marts > my $n_mart=0; > foreach my $mart (@{$schema->getAllMarts()}){ > foreach my $dataset (@{$mart->getAllDatasets()}){ > my $taxid = $dataset->get_some_kind_of_meta_data(); > ... do something with it > > } > } > } > > -- > Dan Staines, PhD Ensembl Genomes Technical Coordinator > EMBL-EBI Tel: +44-(0)1223-492507 > Wellcome Trust Genome Campus Fax: +44-(0)1223-494468 > Cambridge CB10 1SD, UK http://www.ensemblgenomes.org/ >
