public static void convertGenesToRegionsQuery(Query query, CellBaseUtils cellBaseUtils) { VariantQueryXref variantQueryXref = VariantQueryUtils.parseXrefs(query); List<String> genes = variantQueryXref.getGenes(); if (!genes.isEmpty()) { List<Region> regions = cellBaseUtils.getGeneRegion(genes); regions = mergeRegions(regions); query.put(ANNOT_GENE_REGIONS.key(), regions); } }
VariantQueryUtils.VariantQueryXref xref = VariantQueryUtils.parseXrefs(query); if (!xref.getIds().isEmpty() || !xref.getVariants().isEmpty() || !xref.getOtherXrefs().isEmpty()) {
VariantQueryXref variantQueryXref = VariantQueryUtils.parseXrefs(query);
public List<Scan> parseQueryMultiRegion(SelectVariantElements selectElements, Query query, QueryOptions options) { VariantQueryXref xrefs = VariantQueryUtils.parseXrefs(query); if (!xrefs.getOtherXrefs().isEmpty()) { throw VariantQueryException.unsupportedVariantQueryFilter(VariantQueryParam.ANNOT_XREF,
VariantQueryXref variantQueryXref = VariantQueryUtils.parseXrefs(query);