Commit c808ac31 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Be smarter in _tables() and in _columns() so that we don't have to

mention specific table or column names.
parent 1a3774e4
......@@ -51,28 +51,25 @@ sub _create_feature_fast {
sub _tables {
my ($this) = @_;
my @tables = $this->SUPER::_tables();
if ( $this->_lightweight() ) {
return (['repeat_feature','r']);
return ( $tables[0] );
}
return $this->SUPER::_tables();
return @tables;
}
sub _columns {
my ($this) = @_;
my @columns = $this->SUPER::_columns();
if ( $this->_lightweight() ) {
# 14 columns needed.
return ( 'r.repeat_feature_id', 'r.seq_region_id',
'r.seq_region_start', 'r.seq_region_end',
'r.seq_region_strand', '1',
'1', '1',
'1', '1',
'1', '1',
'1', '1' );
@columns[ 5 .. $#columns ] = map( 1, 5 .. $#columns );
}
return $this->SUPER::_columns();
return @columns;
}
sub _default_where_clause {
......
Markdown is supported
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