Skip to content
Snippets Groups Projects
Commit c5d9fb81 authored by Graham McVicker's avatar Graham McVicker
Browse files

Changed deprecated method get_default_assembly() so that it actually works...

Changed deprecated method get_default_assembly() so that it actually works still, and changed deprecated warning
parent b08167c4
No related branches found
No related tags found
No related merge requests found
......@@ -224,17 +224,24 @@ sub get_taxonomy_id {
=head2 get_default_assembly
Description: DEPRECATED. Use CoordSystemAdaptor::fetch_top_level instead to
obtain the assembly version.
Description: DEPRECATED. Use the version of the coordinate system you are
interested in instead.
Example: #use this instead
my ($highest_cs) = @{$db->get_CoordSystemAdaptor->fetch_all()};
my $assembly = $highest_cs->version();
=cut
sub get_default_assembly {
my $self = shift;
deprecate('Use CoordSystemAdaptor::fetch_top_level instead');
deprecate("Use version of coordinate system you are interested in instead.\n".
"Example:\n".
' ($cs) = @{$coord_system_adaptor->fetch_all()};'."\n" .
' $assembly = $cs->version();');
my $cs = $self->db->get_CoordSystemAdaptor->fetch_top_level();
my ($cs) = @{$self->db->get_CoordSystemAdaptor->fetch_all()};
return $cs->version();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment