org.opencb.opencga.storage.core.variant.adaptors.VariantQueryUtils.convertGoToGeneQuery()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(58)

本文整理了Java中org.opencb.opencga.storage.core.variant.adaptors.VariantQueryUtils.convertGoToGeneQuery()方法的一些代码示例,展示了VariantQueryUtils.convertGoToGeneQuery()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VariantQueryUtils.convertGoToGeneQuery()方法的具体详情如下:
包路径:org.opencb.opencga.storage.core.variant.adaptors.VariantQueryUtils
类名称:VariantQueryUtils
方法名:convertGoToGeneQuery

VariantQueryUtils.convertGoToGeneQuery介绍

暂无

代码示例

代码示例来源:origin: opencb/opencga

@Override
public Query preProcessQuery(Query originalQuery, QueryOptions options) throws StorageEngineException {
  Query query = super.preProcessQuery(originalQuery, options);
  StudyConfigurationManager studyConfigurationManager = getStudyConfigurationManager();
  List<String> studyNames = studyConfigurationManager.getStudyNames(QueryOptions.empty());
  CellBaseUtils cellBaseUtils = getCellBaseUtils();
  if (isValidParam(query, STUDY) && studyNames.size() == 1) {
    query.remove(STUDY.key());
  }
  convertGoToGeneQuery(query, cellBaseUtils);
  convertExpressionToGeneQuery(query, cellBaseUtils);
  convertGenesToRegionsQuery(query, cellBaseUtils);
  return query;
}

代码示例来源:origin: opencb/opencga

@Override
public Query preProcessQuery(Query originalQuery, QueryOptions options) throws StorageEngineException {
  Query query = super.preProcessQuery(originalQuery, options);
  List<String> studyNames = studyConfigurationManager.getStudyNames(QueryOptions.empty());
  CellBaseUtils cellBaseUtils = getCellBaseUtils();
  if (isValidParam(query, VariantQueryParam.STUDY)
      && studyNames.size() == 1
      && !isNegated(query.getString(VariantQueryParam.STUDY.key()))
      && !isValidParam(query, FILE)
      && !isValidParam(query, FILTER)
      && !isValidParam(query, QUAL)
      && !isValidParam(query, INFO)
      && !isValidParam(query, SAMPLE)
      && !isValidParam(query, FORMAT)
      && !isValidParam(query, GENOTYPE)) {
    query.remove(VariantQueryParam.STUDY.key());
  }
  convertGoToGeneQuery(query, cellBaseUtils);
  convertExpressionToGeneQuery(query, cellBaseUtils);
  return query;
}

相关文章

微信公众号

最新文章

更多