Commit 2e2a7906 authored by Severine Duvaud's avatar Severine Duvaud
Browse files

Handle case where no result + use SEGSIZE instead of SEGSTOP when length is provided

parent e5fcf121
......@@ -115,7 +115,7 @@ function buildMongoQuery(params) {
'$elemMatch': {
'CHRO': params.referenceName,
'SEGTYPE': segType,
'SEGSTOP': position + length, // exact position
'SEGSIZE': length, // exact length
'SEGSTART': position // exact position
}
}
......@@ -171,6 +171,10 @@ function checkResultAndGetResponse(params, samples, countTotal) {
responseResource.exists = false;
responseResource.note = "Type of variant not supported by arrayMap.";
}
else {
responseResource.exists = false;
responseResource.note = "No result from arrayMap.";
}
}
var length = 0;
......
Supports Markdown
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