Skip to content

Commit

Permalink
Add lastdb datatype for last tool (PR galaxyproject#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdallet committed Jun 12, 2020
1 parent dd01678 commit 446a79d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/config/sample/datatypes_conf.xml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,8 @@
<datatype extension="dada2_sequencetable" type="galaxy.datatypes.tabular:Tabular" mimetype="application/text" subclass="true" display_in_upload="true" />
<datatype extension="dada2_uniques" type="galaxy.datatypes.tabular:Tabular" mimetype="application/text" subclass="true" display_in_upload="true" />
<datatype extension="ckpt" type="galaxy.datatypes.binary:Binary" subclass="true" display_in_upload="true" />
<datatype extension="lastdb" type="galaxy.datatypes.last:LastDb" mimetype="text/html" display_in_upload="false"/>
</datatypes>
</registration>
<sniffers>
<!--
Expand Down
18 changes: 18 additions & 0 deletions lib/galaxy/datatypes/last.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from galaxy.datatypes.data import Data


class LastDb(Data):
"""Class for LAST database files."""
file_ext = 'lastdb'
allow_datatype_change = False
composite_type = 'basic'

def __init__(self, **kwd):
Data.__init__(self, **kwd)
self.add_composite_file('lastdb.bck', is_binary=True)
self.add_composite_file('lastdb.des', is_binary=False) # description file
self.add_composite_file('lastdb.prj', is_binary=False) # project resume
self.add_composite_file('lastdb.sds', is_binary=True)
self.add_composite_file('lastdb.ssp', is_binary=True)
self.add_composite_file('lastdb.suf', is_binary=True)
self.add_composite_file('lastdb.tis', is_binary=True)

0 comments on commit 446a79d

Please sign in to comment.