Skip to content

Commit

Permalink
storage-core: call the function parseConsequenceTypes from VariantQue…
Browse files Browse the repository at this point in the history
…ryUtils to replace the aliases "loss_of_function" and "protein_altering" with their corresponding list of values, #TASK-6492
  • Loading branch information
jtarraga committed Jul 29, 2024
1 parent b87d9de commit 9a38f03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private String parseGenomicFilter(Query query) {
// Consequence types (cts)
String ctLogicalOperator = " OR ";
if (StringUtils.isNotEmpty(query.getString(ANNOT_CONSEQUENCE_TYPE.key(), ""))) {
consequenceTypes = Arrays.asList(query.getString(ANNOT_CONSEQUENCE_TYPE.key()).split("[,;]"));
consequenceTypes = parseConsequenceTypes(Arrays.asList(query.getString(ANNOT_CONSEQUENCE_TYPE.key()).split("[,;]")));
if (query.getString(ANNOT_CONSEQUENCE_TYPE.key()).contains(";")) {
ctLogicalOperator = " AND ";
// TODO This must be removed as soon as we have the Query procesing in use
Expand Down

0 comments on commit 9a38f03

Please sign in to comment.