Skip to content

Instantly share code, notes, and snippets.

@rbuels
Created October 1, 2009 17:31
Show Gist options
  • Select an option

  • Save rbuels/199116 to your computer and use it in GitHub Desktop.

Select an option

Save rbuels/199116 to your computer and use it in GitHub Desktop.
my $dbx_acc = $opts->{dbxref_accession_prefix}.$propname;
my $dbxref =
$feature_prop_db->search( 'dbxrefs',
{ accession => $dbx_acc },
{ order_by => { -desc => ['version'] } }
)
->first
|| $feature_prop_db->create_related( 'dbxrefs', { accession => $dbx_acc,
version => 1,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment