Repository 'khmer'
hg clone https://testtoolshed.g2.bx.psu.edu/repos/crusoe/khmer

Changeset 35:be178f712bb1 (2014-06-29)
Previous changeset 34:7611b274ed67 (2014-06-29) Next changeset 36:846232fc30bf (2014-06-30)
Commit message:
Uploaded datatype definitions.
added:
datatypes_conf.xml
gedlab.py
b
diff -r 7611b274ed67 -r be178f712bb1 datatypes_conf.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/datatypes_conf.xml Sun Jun 29 18:13:23 2014 -0400
b
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<datatypes>
+    <datatype_files>
+        <datatype_file name="gedlab.py"/>
+    </datatype_files>
+  <registration>
+    <datatype extension="ct" type="galaxy.datatypes.gedlab:Count" mimetype="application/octet-stream" display_in_upload="true"/>
+    <datatype extension="pt" type="galaxy.datatypes.gedlab:Presence" mimetype="application/octet-stream" display_in_upload="true"/>
+  </registration>
+  <sniffers>
+    <sniffer type="galaxy.datatypes.gedlab:Count"/>
+    <sniffer type="galaxy.datatypes.gedlab:Presence"/>
+  </sniffers>
+</datatypes>
b
diff -r 7611b274ed67 -r be178f712bb1 gedlab.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gedlab.py Sun Jun 29 18:13:23 2014 -0400
b
@@ -0,0 +1,24 @@
+"""
+k-mer count and presence
+"""
+
+from galaxy.datatypes.binary import Binary
+
+import os
+import logging
+
+log = logging.getLogger(__name__)
+
+class Count( Binary ):
+
+    def __init__( self, **kwd ):
+        Binary.__init__( self, **kwd )
+
+
+class Presence( Binary ):
+
+    def __init__( self, **kwd ):
+        Binary.__init__( self, **kwd )
+
+Binary.register_unsniffable_binary_ext("ct")
+Binary.register_unsniffable_binary_ext("pt")