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

get fetch all to ignore LRG_gene this makes it slower but if you are getting...

get fetch all to ignore LRG_gene this makes it slower but if you are getting all the them then this will be insignificant time difference
parent 432724ea
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,14 @@ sub _final_clause {
}
sub fetch_all {
my ($self) = @_;
my $constraint = 'e.biotype != "LRG_gene" and e.is_current = 1';
my @exons = @{ $self->generic_fetch($constraint) };
return \@exons ;
}
=head2 fetch_by_stable_id
Arg [1] : string $stable_id
......
......@@ -282,6 +282,14 @@ sub fetch_all_by_biotype {
}
sub fetch_all {
my ($self) = @_;
my $constraint = 'g.biotype != "LRG_gene" and g.is_current = 1';
my @genes = @{ $self->generic_fetch($constraint) };
return \@genes ;
}
=head2 fetch_all_versions_by_stable_id
......
......@@ -160,6 +160,14 @@ sub fetch_by_stable_id {
}
sub fetch_all {
my ($self) = @_;
my $constraint = 't.biotype != "LRG_gene" and t.is_current = 1';
my @trans = @{ $self->generic_fetch($constraint) };
return \@trans ;
}
=head2 fetch_all_versions_by_stable_id
Arg [1] : String $stable_id
......
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