AnalyticsCollectionProxy extends CollectionProxy { public static Pair<AnalyticsSchemaField, AnalyticsSchemaField> getExpressionLevelFieldNames( ExpressionUnit.Absolute unit) { return unit == ExpressionUnit.Absolute.Rna.FPKM ? Pair.of(EXPRESSION_LEVEL_FPKM, EXPRESSION_LEVELS_FPKM) : Pair.of(EXPRESSION_LEVEL, EXPRESSION_LEVELS); } AnalyticsCollectionProxy(SolrClient solrClient); static AnalyticsSchemaField asAnalyticsSchemaField(BioentityPropertyName bioentityPropertyName); static Map<AnalyticsSchemaField, Set<String>> asAnalyticsGeneQuery(SemanticQuery geneQuery); QueryResponse query(SolrQueryBuilder<AnalyticsCollectionProxy> solrQueryBuilder); FieldStatsInfo fieldStats(SchemaField<AnalyticsCollectionProxy> field, SolrQuery solrQuery); static Pair<AnalyticsSchemaField, AnalyticsSchemaField> getExpressionLevelFieldNames(
            ExpressionUnit.Absolute unit); static final AnalyticsSchemaField BIOENTITY_IDENTIFIER; static final AnalyticsSchemaField BIOENTITY_IDENTIFIER_SEARCH; static final AnalyticsSchemaField EXPERIMENT_ACCESSION; static final AnalyticsSchemaField EXPERIMENT_TYPE; static final AnalyticsSchemaField ASSAY_GROUP_ID; static final AnalyticsSchemaField EXPRESSION_LEVEL; static final AnalyticsSchemaField EXPRESSION_LEVEL_FPKM; static final AnalyticsSchemaField EXPRESSION_LEVELS; static final AnalyticsSchemaField EXPRESSION_LEVELS_FPKM; static final AnalyticsSchemaField LOG_2_FOLD_CHANGE; static final AnalyticsSchemaField IDENTIFIER_SEARCH; static final AnalyticsSchemaField CONDITIONS_SEARCH; static final AnalyticsSchemaField SPECIES; static final AnalyticsSchemaField DEFAULT_FACTOR_TYPE; }
@Test void tpmAndFpkmFieldsAreDifferent() { assertThat(AnalyticsCollectionProxy.getExpressionLevelFieldNames(ExpressionUnit.Absolute.Rna.TPM)) .isNotEqualTo(AnalyticsCollectionProxy.getExpressionLevelFieldNames(ExpressionUnit.Absolute.Rna.FPKM)); }
@Test void proteomicUnitsAndTpmsAreTheSameField() { assertThat(AnalyticsCollectionProxy.getExpressionLevelFieldNames(ExpressionUnit.Absolute.Protein.ANY)) .isEqualTo(AnalyticsCollectionProxy.getExpressionLevelFieldNames(ExpressionUnit.Absolute.Rna.TPM)); }