3.1.1.4. datanator_query_python.query_schema_2 package

3.1.1.4.1. Submodules

3.1.1.4.3. datanator_query_python.query_schema_2.query_entity module

class datanator_query_python.query_schema_2.query_entity.QueryEn(db='datanator-demo')[source]

Bases: datanator_query_python.config.query_schema_2_manager.QM

query_entity(identifier, datatype='metabolite', collection='entity', limit=10, skip=0, projection={'_id': 0})[source]

Get entity with identifier.

Parameters
  • identifier (Obj) – identifier used for the entity.

  • datatype (Obj, optional) – Datatype to be retrieved.

  • collection (str) – name of the collection in which data resides.

  • limit (int, optional) – number of results to return.

  • skip (int, optional) – number of documents to skip.

  • projection (Obj, optional) – MongoDB projection.

Returns

pymongo iterables.

Return type

(list)

3.1.1.4.4. datanator_query_python.query_schema_2.query_observation module

class datanator_query_python.query_schema_2.query_observation.QueryObs(db='datanator-demo')[source]

Bases: datanator_query_python.config.query_schema_2_manager.QM

get_entity_datatype(identifier, entity='protein', datatype='half-life', collection='observation', limit=10, skip=0, projection={'_id': 0})[source]

Get entity datatype.

Parameters
  • identifier (Obj) – identifier used for the entity.

  • entity (Obj, optional) – entity type. i.e. “protein”, “RNA”, etc.

  • datatype (Obj, optional) – Datatype to be retrieved.

  • collection (str, optional) – name of collection in which values reside.

  • limit (int, optional) – number of results to return.

  • skip (int, optional) – number of documents to skip.

Returns

pymongo iterables.

Return type

(list)

3.1.1.4.5. datanator_query_python.query_schema_2.query_taxon_tree_v2 module

3.1.1.4.6. datanator_query_python.query_schema_2.query_uniprot_v2 module

class datanator_query_python.query_schema_2.query_uniprot_v2.QueryUniprot(db=None, collection=None)[source]

Bases: object

3.1.1.4.7. Module contents