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

When call via a binning routine, do not join with other tables.

parent e106d606
......@@ -48,4 +48,41 @@ sub _create_feature_fast {
return $feature;
}
sub _tables {
my ($this) = @_;
if ( $this->_lightweight() ) {
return (['repeat_feature','r']);
}
return $this->SUPER::_tables();
}
sub _columns {
my ($this) = @_;
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' );
}
return $this->SUPER::_columns();
}
sub _default_where_clause {
my ($this) = @_;
if ( $this->_lightweight() ) {
return '';
}
return $this->SUPER::_default_where_clause();
}
1;
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