Mercurial > repos > crusoe > khmer
changeset 35:be178f712bb1
Uploaded datatype definitions.
author | devteam |
---|---|
date | Sun, 29 Jun 2014 18:13:23 -0400 |
parents | 7611b274ed67 |
children | 846232fc30bf |
files | datatypes_conf.xml gedlab.py |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datatypes_conf.xml Sun Jun 29 18:13:23 2014 -0400 @@ -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>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gedlab.py Sun Jun 29 18:13:23 2014 -0400 @@ -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")