# HG changeset patch # User sanbi-uwc # Date 1463567896 14400 # Node ID 7f262236d352b4a3113b1171e9d447ae7353070d # Parent 4b1d16644ec2e7c06e31f5e32eca59307a71fe17 planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit ebd884bad7609048e02d1ef04985cf812ab142a3 diff -r 4b1d16644ec2 -r 7f262236d352 neo4j.py --- 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__])