[Bioperl-l] Error with supplied lineages importing uniprot data

Hilmar Lapp hlapp at gmx.net
Fri Dec 1 20:42:05 EST 2006


Either using SQL:

	-- theoretically you should convince yourself first that there
	-- is only one such record (the UK is over acc,version,namespace)
	SQL> DELETE FROM bioentry WHERE accession = 'Q7N3Q6';

or through bioperl-db (see the delete test for examples):

	my $db = Bio::DB::BioDB->new(....);
	my $seq = Bio::PrimarySeq->new(-accession_number=>'Q7N3Q6',
	                               -namespace=>'whatever you used when  
loading');
	my $adp = $db->get_persistence_adaptor($seq);
	my $pseq = $adp->find_by_unique_key($seq);
	$pseq->remove();
	$pseq->commit();

-hilmar

On Dec 1, 2006, at 1:52 PM, Sendu Bala wrote:

> PS. having used load_seqdatabase.pl to load a sequence, how do I  
> remove
> it afterwards?

-- 
===========================================================
: Hilmar Lapp  -:-  Durham, NC  -:-  hlapp at gmx dot net :
===========================================================







More information about the Bioperl-l mailing list