Skip to content

Commit

Permalink
Merge branch 'release-5.8.x' into TASK-5340
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Dec 5, 2023
2 parents 1895a6a + b178710 commit 826b85c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private boolean updateRocksDB(Variant variant) throws RocksDBException, IOExcept

if (normalisedVariantStringList != null) {
for (String normalisedVariantString : normalisedVariantStringList) {
VariantAnnotation variantAnnotation = getVariantAnnotation(variant.toString().getBytes());
VariantAnnotation variantAnnotation = getVariantAnnotation(normalisedVariantString.getBytes());

// Add haplotype property to all EvidenceEntry objects in variant if there are more than 1 variants in
// normalisedVariantStringList, i.e. if this variant is part of an MNV (haplotype)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ private List<GeneMirnaTarget> getTargets(Gene mirna) throws QueryException, Ille
}
}
GeneQuery geneQuery = new GeneQuery();
geneQuery.setDataRelease(dataRelease);
geneQuery.setAnnotationTargets(new LogicalList<>(mirnas, false));
List<GeneMirnaTarget> geneMirnaTargets = new ArrayList<>();
List<Gene> genes = (geneManager.search(geneQuery)).getResults();
Expand Down Expand Up @@ -679,9 +680,9 @@ public List<Gene> getBatchGeneList(List<Variant> variantList)

List<Gene> geneList = new ArrayList<>();
GeneQuery geneQuery = new GeneQuery();
geneQuery.setDataRelease(dataRelease);
geneQuery.setIncludes(includeGeneFields);
geneQuery.setRegions(regionList);
geneQuery.setDataRelease(dataRelease);

if (StringUtils.isNotEmpty(consequenceTypeSource)) {
// sources can be "ensembl" and/or "refseq". query is validated before execution, will fail if invalid value
Expand Down Expand Up @@ -1354,6 +1355,7 @@ private boolean[] getRegulatoryRegionOverlaps(String chromosome, Integer start,
boolean[] overlapsRegulatoryRegion = {false, false};

RegulationQuery query = new RegulationQuery();
query.setDataRelease(dataRelease);
query.setExcludes(Collections.singletonList("_id"));
query.setIncludes(Collections.singletonList("chromosome"));
query.setLimit(1);
Expand Down

0 comments on commit 826b85c

Please sign in to comment.