Skip to content
Snippets Groups Projects
Commit b6533768 authored by Web Admin's avatar Web Admin
Browse files

Handles a karyotype containing non-existant chromosomes. Warns, returns no...

Handles a karyotype containing non-existant chromosomes.  Warns, returns no bands for non-existant chr, but no longer dies deep in BaseFeatureAdaptor
parent 18242ae9
No related branches found
No related tags found
No related merge requests found
......@@ -156,6 +156,10 @@ sub fetch_all_by_chr_name {
my $slice =
$self->db->get_SliceAdaptor->fetch_by_region(undef, $chr_name);
unless ($slice){
warning("Cannot retrieve chromosome $chr_name");
return;
}
return $self->fetch_all_by_Slice($slice);
}
......
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