SingleCellAnalyticsCollectionProxy extends CollectionProxy { public static String attributeNameToFieldName(String attributeName) { return attributeName.trim().toLowerCase().replace(" ", "_"); } 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 validAttributeNameToDisplayName() { assertThat(SingleCellAnalyticsCollectionProxy.attributeNameToFieldName("FACS marker")) .isEqualToIgnoringCase("facs_marker"); }
@Test void emptyAttributeNameToDisplayName() { assertThat(SingleCellAnalyticsCollectionProxy.attributeNameToFieldName("")).isEmpty(); }