Commit 183068e0 authored by Carsten Kemena's avatar Carsten Kemena

fixed problem where query was always collapsed

parent 3e6e2dd1
v. 2.3.1
- fixed: query was always collapse independently of parameter
v. 2.3.0
- added option to display computed alignments
- added option to collapse domain repeats
......
......@@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.6)
project (RADS C CXX)
SET(MAJOR_VERSION 2)
SET(MINOR_VERSION 3)
SET(PATCH_VERSION 0)
SET(PATCH_VERSION 1)
SET(CMAKE_CXX_FLAGS_COVERAGE
......
......@@ -90,7 +90,8 @@ DBAccess::search(BSDL::AlignmentMatrix<int, BSDL::DSM> &matrix, bool all, bool c
RadsQueryResult &results)
{
auto &queryDA = results.queryDA;
queryDA.collapse(true);
if (collapse)
queryDA.collapse(true);
string query = "Select position from domain where accession in ('" + queryDA[0].accession() + "'";
size_t nDomains = queryDA.size();
for (size_t i=1; i<nDomains; ++i)
......
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