Skip to content

Commit

Permalink
Merge pull request #678 from opencb/TASK-5212
Browse files Browse the repository at this point in the history
TASK-5212 Fix 'cellbase-admin.sh build' for clinical variants
  • Loading branch information
jtarraga authored Dec 1, 2023
2 parents 25d8c6a + 18e061d commit b178710
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 b178710

Please sign in to comment.