Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Adding Matrix and Genomeset types (#3)
Browse files Browse the repository at this point in the history
* adding new fields and mappings for sdk indexer applications

* adding genomeset index to mappings and other fields

* making genomeset mapping more specific, removing KbaseGenomes.Genome from sdk indexers applications list"
  • Loading branch information
slebras authored and jayrbolton committed Jun 27, 2019
1 parent 2682d1a commit 35058f2
Showing 1 changed file with 76 additions and 4 deletions.
80 changes: 76 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,47 @@ ws_type_to_indexes:
Taxon: taxon
Tree: tree
GenomeFeature: genome_features
AttributeMapping: attribute_mapping
MetaboliteMatrix: matrix
DifferentialExpressionMatrix: matrix
ExpressionMatrix: matrix
FitnessMatrix: matrix
TraitMatrix: matrix
GenomeSet: genomeset

es_type_global_name: data

# SDK apps used for indexing, map from type_module.type_name -> {'sdk_func': _, 'sdk_app': _, 'sdk_version': _}
sdk_indexer_apps:
KBaseGenomes.Genome:
sdk_app: example_app
sdk_func: example_func

KBaseMatrices.MetaboliteMatrix:
sdk_app: kbasematrices_indexer
sdk_func: run_kbasematrices_indexer
sub_obj_index: attribute_mapping
KBaseMatrices.DifferentialExpressionMatrix:
sdk_app: kbasematrices_indexer
sdk_func: run_kbasematrices_indexer
sub_obj_index: attribute_mapping
KBaseMatrices.ExpressionMatrix:
sdk_app: kbasematrices_indexer
sdk_func: run_kbasematrices_indexer
sub_obj_index: attribute_mapping
KBaseMatrices.FitnessMatrix:
sdk_app: kbasematrices_indexer
sdk_func: run_kbasematrices_indexer
sub_obj_index: attribute_mapping
KBaseMatrices.TraitMatrix:
sdk_app: kbasematrices_indexer
sdk_func: run_kbasematrices_indexer
sub_obj_index: attribute_mapping
KBaseSets.GenomeSet:
sdk_app: genomeset_indexer
sdk_func: run_genomeset_indexer

# Which indexes are considered "subobjects" (nested under workspace objects, such as genome features)
ws_subobjects:
- "genome_features:2"
- "pangenome_orthologfamily:1"
- "attribute_mapping:1"

# Generic, global type mappings. These can be reused in any index mappings below.
global_mappings:
Expand Down Expand Up @@ -57,6 +84,9 @@ latest_versions:
pangenome_orthologfamily: "pangenome_orthologfamily:1"
taxon: "taxon:1"
tree: "tree:1"
matrix: "matrix:1"
attribute_mapping: "attribute_mapping:1"
genomeset: "genomeset:1"

# Aliases from any index to any name
aliases:
Expand All @@ -69,6 +99,9 @@ aliases:
"pangenome_orthologfamily:1": pangenome_orthologfamily
"taxon:1": taxon
"tree:1": tree
"matrix:1": matrix
"attribute_mapping:1": attribute_mapping
"genomeset:1": genomeset
"indexing_errors:1": indexing_errors

# All ES type mappings
Expand Down Expand Up @@ -198,6 +231,45 @@ mappings:
node_id: {type: text}
label: {type: text}

"attribute_mapping:1":
global_mappings: [ws_subobject, ws_auth, ws_object]
properties:
attributes: {type: keyword}
attribute_ontology_ids: {type: keyword}
attribute_units: {type: keyword}
attribute_unit_ontology_ids: {type: keyword}
attribute_values: {type: keyword}
attribute_value_ontology_ids: {type: keyword}
instances: {type: object}
num_attributes: {type: integer}
num_instances: {type: integer}

"matrix:1":
global_mappings: [ws_auth, ws_object]
properties:
matrix_type: {type: keyword}
row_attributes: {type: keyword}
col_attributes: {type: keyword}
row_attribute_ontology_ids: {type: keyword}
col_attribute_ontology_ids: {type: keyword}
row_attribute_values: {type: keyword}
col_attribute_values: {type: keyword}
row_ids: {type: keyword}
col_ids: {type: keyword}
num_rows: {type: integer}
num_columns: {type: integer}
attributes: {type: keyword}

"genomeset:1":
global_mappings: [ws_auth, ws_object]
properties:
genomes:
type: object
properties:
genome_ref: {type: keyword}
label: {type: keyword}
description: {type: text}

"indexing_errors:1":
properties:
evtype: {type: keyword}
Expand Down

0 comments on commit 35058f2

Please sign in to comment.