SingleCellAnalyticsCollectionProxy extends CollectionProxy { public static SingleCellAnalyticsSchemaField characteristicAsSchemaField(String characteristic) { return new SingleCellAnalyticsSchemaField( String.format("characteristic_%s", characteristic), metadataFieldNameToDisplayName(characteristic, "characteristic_")); } SingleCellAnalyticsCollectionProxy(SolrClient solrClient); static SingleCellAnalyticsSchemaField characteristicAsSchemaField(String characteristic); static SingleCellAnalyticsSchemaField factorAsSchemaField(String factor); static SingleCellAnalyticsSchemaField metadataAsSchemaField(String metadata); static String metadataFieldNameToDisplayName(String metadataFieldName); static String attributeNameToFieldName(String attributeName); QueryResponse query(SolrQueryBuilder<SingleCellAnalyticsCollectionProxy> solrQueryBuilder); static final SingleCellAnalyticsSchemaField CELL_ID; static final SingleCellAnalyticsSchemaField CHARACTERISTIC_INFERRED_CELL_TYPE; static final SingleCellAnalyticsSchemaField CHARACTERISTIC_SPECIES; static final SingleCellAnalyticsSchemaField CHARACTERISTIC_ORGANISM_PART; static final SingleCellAnalyticsSchemaField FACTORS; static final SingleCellAnalyticsSchemaField EXPERIMENT_ACCESSION; }
@Test void testCharacteristicFieldCreation() { SingleCellAnalyticsSchemaField result = SingleCellAnalyticsCollectionProxy.characteristicAsSchemaField("inferred_cell_type"); assertThat(result.displayName()).isEqualTo("Inferred cell type"); assertThat(result.name()).isEqualTo("characteristic_inferred_cell_type"); }