Skip to content
Snippets Groups Projects
Commit 3490f4ec authored by Ian Longden's avatar Ian Longden
Browse files

added method delete_cache to remove ALL the assembly caching. Needed for when...

added method delete_cache to remove ALL the assembly caching. Needed for when the assembly is changed
parent 8722e134
No related branches found
No related tags found
No related merge requests found
......@@ -1414,6 +1414,27 @@ sub seq_ids_to_regions {
return \@out;
}
=head2 delete_cache
Description: Delete all the caches for the mappings/seq_regions
Returntype : none
Exceptions : none
Caller : General
Status : At risk
=cut
sub delete_cache{
my ($self) = @_;
$self->{'sr_name_cache'} = {};
$self->{'sr_id_cache'} = {};
foreach my $key (keys %{$self->{'_asm_mapper_cache'}}){
$self->{'_asm_mapper_cache'}->{$key}->flush();
}
$self->{'_asm_mapper_cache'} = {};
}
=head2 register_region
......
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