Commit 4c3478d8 by Celine Mercier

Removed the predicate to check for a quality column (because for example

with obi annotate, clone view so clone predicate, then modify seq, so
quality is deleted, and predicate becomes a problem)
parent 4a815785
...@@ -1900,10 +1900,10 @@ Obiview_p obi_new_view_nuc_seqs(OBIDMS_p dms, const char* view_name, Obiview_p v ...@@ -1900,10 +1900,10 @@ Obiview_p obi_new_view_nuc_seqs(OBIDMS_p dms, const char* view_name, Obiview_p v
// Add predicate functions specific to the view type // Add predicate functions specific to the view type
// TODO macros? // TODO macros?
if (quality_column) // if (quality_column) TODO
nb_predicates = view->nb_predicates + 4; // nb_predicates = view->nb_predicates + 4;
else // else
nb_predicates = view->nb_predicates + 3; nb_predicates = view->nb_predicates + 3;
if (view->nb_predicates == 0) if (view->nb_predicates == 0)
view->predicate_functions = malloc(nb_predicates * sizeof(char* (*) (Obiview_p))); view->predicate_functions = malloc(nb_predicates * sizeof(char* (*) (Obiview_p)));
...@@ -1920,8 +1920,8 @@ Obiview_p obi_new_view_nuc_seqs(OBIDMS_p dms, const char* view_name, Obiview_p v ...@@ -1920,8 +1920,8 @@ Obiview_p obi_new_view_nuc_seqs(OBIDMS_p dms, const char* view_name, Obiview_p v
(view->predicate_functions)[(view->nb_predicates)] = view_has_nuc_sequence_column; (view->predicate_functions)[(view->nb_predicates)] = view_has_nuc_sequence_column;
(view->predicate_functions)[(view->nb_predicates) + 1] = view_has_id_column; (view->predicate_functions)[(view->nb_predicates) + 1] = view_has_id_column;
(view->predicate_functions)[(view->nb_predicates) + 2] = view_has_definition_column; (view->predicate_functions)[(view->nb_predicates) + 2] = view_has_definition_column;
if (quality_column) // if (quality_column) # TODO discuss. Commented bc for example with obi annotate, clone view so clone predicate, then modify seq, so quality is deleted, and predicate boom
(view->predicate_functions)[(view->nb_predicates) + 3] = view_has_quality_column; // (view->predicate_functions)[(view->nb_predicates) + 3] = view_has_quality_column;
view->nb_predicates = nb_predicates; view->nb_predicates = nb_predicates;
......
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