Talk:BioSQL
From BioPerl
-
This example doesn't appear to work. I think it's because the adaptor created is a Bio::DB::BioSQL::SeqAdaptor, which does not override the no-op find_by_unique_key() in Bio::DB::BioSQL::BasePersistenceAdaptor.--maj 05:27, 1 December 2009 (UTC)
- Hoo boy, am I wrong. What's needed for a database not instantiated under a particular namespace (my situation) is the specification
$seq = Bio::Seq->( -accession_number => $acc_no, -namespace => 'bioperl' );
- the, er, ultimate 'authority'. Then
$dbseq = $adp->find_by_unique_key($seq);
- works great. --maj 05:47, 1 December 2009 (UTC)