diff neo4j.py @ 20:45b969e6ff9a draft

planemo upload for repository https://github.com/SANBI-SA/tools-sanbi-uwc/tree/master/datatypes/neo4j_datatypes commit 2056c35a6d070fe6c56129a5a4b6fe400e5c9c8d
author sanbi-uwc
date Thu, 09 Jun 2016 07:50:13 -0400
parents 2287178087eb
children c48ea98bd3b2
line wrap: on
line diff
--- a/neo4j.py	Thu Jun 09 05:52:56 2016 -0400
+++ b/neo4j.py	Thu Jun 09 07:50:13 2016 -0400
@@ -6,7 +6,7 @@
 
 from galaxy.datatypes.images import Html
 from galaxy.datatypes.data import Data, Text
-from galaxy.datatypes.metadata import MetadataElement
+
 import shutil
 import os
 
@@ -20,16 +20,6 @@
     derived from html - composite datatype elements
     stored in extra files path
     """
-    MetadataElement( name='neostore', default=None, desc='Neo4j NeoStore File', readonly=True, visible=True, set_in_upload=True, no_value=None )
-    MetadataElement( name='neostore_count_file', default=None, desc='Neo4j Count File', readonly=True, visible=True, set_in_upload=True, no_value=None )
-    MetadataElement( name="neostore_labeltokenstore_db_file", default=None, desc="Neostore LabelTokenStore File", readonly=True, visible=True, no_value=None )
-    MetadataElement( name="neostore_nodestore_file", default=None, desc="Neostore NodeStore File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_propertystore_file", default=None, desc="Neostore Property Store File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_relationship_group_file", default=None, desc="Neostore Relationship Group File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_relationship_file", default=None, desc="Neostore Relationship File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_relationship_type_file", default=None, desc="Neostore Relationship Type File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_schema_store_file", default=None, desc="Neostore Schema Store File", readonly=True, visible=True, no_value=None)
-    MetadataElement( name="neostore_transaction_db_file", default=None, desc="Neostore Transaction File", readonly=True, visible=True, no_value=None)
 
     def get_mime(self):
         """Returns the mime type of the datatype"""
@@ -86,39 +76,39 @@
 
     def __init__(self, **kwd):
         Data.__init__(self, **kwd)
-        self.add_composite_file('neostore', substitute_name_with_metadata='neostore', is_binary=True)
-        self.add_composite_file('neostore.id', substitute_name_with_metadata='neostore', is_binary=True)
-        self.add_composite_file('neostore.counts.db.a', substitute_name_with_metadata='neostore_count_file', is_binary=True)
-        self.add_composite_file('neostore.counts.db.b', substitute_name_with_metadata='neostore_count_file', is_binary=True)
-        self.add_composite_file('neostore.labeltokenstore.db', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True)
-        self.add_composite_file('neostore.labeltokenstore.db.id', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True)
-        self.add_composite_file('neostore.labeltokenstore.db.names', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True)
-        self.add_composite_file('neostore.labeltokenstore.db.names.id', substitute_name_with_metadata='neostore_labeltokenstore_db_file', is_binary=True)
-        self.add_composite_file('neostore.nodestore.db', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True)
-        self.add_composite_file('neostore.nodestore.db.id', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True)
-        self.add_composite_file('neostore.nodestore.db.labels', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True)
-        self.add_composite_file('neostore.nodestore.db.labels.id', substitute_name_with_metadata='neostore_nodestore_file', is_binary=True)
+        self.add_composite_file('neostore', is_binary=True)
+        self.add_composite_file('neostore.id', is_binary=True)
+        self.add_composite_file('neostore.counts.db.a', is_binary=True)
+        self.add_composite_file('neostore.counts.db.b', is_binary=True)
+        self.add_composite_file('neostore.labeltokenstore.db', is_binary=True)
+        self.add_composite_file('neostore.labeltokenstore.db.id', is_binary=True)
+        self.add_composite_file('neostore.labeltokenstore.db.names', is_binary=True)
+        self.add_composite_file('neostore.labeltokenstore.db.names.id',  is_binary=True)
+        self.add_composite_file('neostore.nodestore.db', is_binary=True)
+        self.add_composite_file('neostore.nodestore.db.id', is_binary=True)
+        self.add_composite_file('neostore.nodestore.db.labels', is_binary=True)
+        self.add_composite_file('neostore.nodestore.db.labels.id', is_binary=True)
 
-        self.add_composite_file('neostore.propertystore.db', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True)
-        self.add_composite_file('neostore.propertystore.db.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True)
-        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.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)
-        self.add_composite_file('neostore.propertystore.db.strings.id', substitute_name_with_metadata='neostore_propertystore_file', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.id', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.arrays', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.arrays.id', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.index', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.index.id',  is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.index.keys', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.index.keys.id', is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.strings',  is_binary=True)
+        self.add_composite_file('neostore.propertystore.db.strings.id', is_binary=True)
 
-        self.add_composite_file('neostore.relationshipgroupstore.db', substitute_name_with_metadata='neostore_relationship_group_file', is_binary=True)
-        self.add_composite_file('neostore.relationshipgroupstore.db.id', substitute_name_with_metadata='neostore_relationship_group_file', is_binary=True)
-        self.add_composite_file('neostore.relationshipstore.db', substitute_name_with_metadata='neostore_relationship_file', is_binary=True)
-        self.add_composite_file('neostore.relationshipstore.db.id', substitute_name_with_metadata='neostore_relationship_file', is_binary=True)
-        self.add_composite_file('neostore.relationshiptypestore.db.names', substitute_name_with_metadata='neostore_relationship_type_file', is_binary=True)
-        self.add_composite_file('neostore.relationshiptypestore.db.names.id', substitute_name_with_metadata='neostore_relationship_type_file', is_binary=True)
-        self.add_composite_file('neostore.schemastore.db', substitute_name_with_metadata='neostore_schema_store_file', is_binary=True)
-        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)
+        self.add_composite_file('neostore.relationshipgroupstore.db', is_binary=True)
+        self.add_composite_file('neostore.relationshipgroupstore.db.id', is_binary=True)
+        self.add_composite_file('neostore.relationshipstore.db',  is_binary=True)
+        self.add_composite_file('neostore.relationshipstore.db.id',  is_binary=True)
+        self.add_composite_file('neostore.relationshiptypestore.db.names', is_binary=True)
+        self.add_composite_file('neostore.relationshiptypestore.db.names.id', is_binary=True)
+        self.add_composite_file('neostore.schemastore.db', is_binary=True)
+        self.add_composite_file('neostore.schemastore.db.id', is_binary=True)
+        self.add_composite_file('neostore.transaction.db.0', is_binary=True)
 
 
 if __name__ == '__main__':