Mercurial > repos > sanbi-uwc > neo4j_datatypes
changeset 5:7f262236d352 draft
planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3
author | sanbi-uwc |
---|---|
date | Wed, 18 May 2016 06:38:16 -0400 |
parents | 4b1d16644ec2 |
children | 643e3ebaa907 |
files | neo4j.py |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/neo4j.py Wed May 18 04:50:39 2016 -0400 +++ b/neo4j.py Wed May 18 06:38:16 2016 -0400 @@ -2,23 +2,22 @@ Neo4j Composite Dataset """ import logging -import os import sys -from galaxy.datatypes.images import Html -from galaxy.datatypes.metadata import MetadataElement -from galaxy.datatypes.data import get_file_peek from galaxy.datatypes.data import Data, Text gal_Log = logging.getLogger(__name__) verbose = True + class Neo4j(object): """ base class to use for neostore datatypes derived from html - composite datatype elements stored in extra files path """ + file_ext = 'neo4j' + def get_mime(self): """Returns the mime type of the datatype""" return 'text/html' @@ -90,7 +89,7 @@ self.add_composite_file('neostore.propertystore.db.arrays', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) self.add_composite_file('neostore.propertystore.db.arrays.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) self.add_composite_file('neostore.propertystore.db.index', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) - self.add_composite_file('neostore.propertystore.db.index.id',substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) + self.add_composite_file('neostore.propertystore.db.index.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) self.add_composite_file('neostore.propertystore.db.index.keys', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) self.add_composite_file('neostore.propertystore.db.index.keys.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) self.add_composite_file('neostore.propertystore.db.strings', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True) @@ -106,6 +105,8 @@ self.add_composite_file('neostore.schemastore.db.id', substitute_name_with_metadata='neostore_schema_store_file', is_binary=True) self.add_composite_file('neostore.transaction.db.0', substitute_name_with_metadata='neostore_count_file', is_binary=True) + if __name__ == '__main__': import doctest - doctest.testmod(sys.modules[__name__]) \ No newline at end of file + + doctest.testmod(sys.modules[__name__])