Skip to content
Snippets Groups Projects
Commit b83d48a5 authored by ens-carlos's avatar ens-carlos Committed by GitHub
Browse files

No lazy loading if $load_transcripts is true.

If $load_transcripts is true, do not do lazy loading in any case (including when the number of genes is 1).
parent baaac8a2
No related branches found
No related tags found
2 merge requests!149Master,!149Master
......@@ -655,8 +655,8 @@ sub fetch_all_by_Slice {
my $genes = $self->SUPER::fetch_all_by_Slice_constraint($slice, $constraint, $logic_name);
# If there are less than two genes, still do lazy-loading.
if (!$load_transcripts || @$genes < 2) {
# If there are 0 genes, still do lazy-loading.
if (!$load_transcripts || @$genes < 1) {
return $genes;
}
......
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