Skip to content

Commit

Permalink
Merge pull request #12099 from knutwa-ext/iml_dataset_branch
Browse files Browse the repository at this point in the history
Add datatype iml_dataset subclassing html
  • Loading branch information
davelopez authored Jan 18, 2022
2 parents 4147382 + 2817fdb commit 8f72ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/galaxy/config/sample/datatypes_conf.xml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@
<datatype extension="ffindex" type="galaxy.datatypes.tabular:Tabular" display_in_upload="true" subclass="true" description_url="https://github.com/soedinglab/ffindex_soedinglab"/>
<datatype extension="ffdata" type="galaxy.datatypes.data:Data" display_in_upload="true" subclass="true" description_url="https://github.com/soedinglab/ffindex_soedinglab"/>
<datatype extension="pretext" type="galaxy.datatypes.binary:Pretext" display_in_upload="true" />
<datatype extension="immuneml_receptors.html" type="galaxy.datatypes.text:Html" subclass="true"/>
<!-- Structural Materials datatypes -->
<datatype extension="hexrd.materials.h5" type="galaxy.datatypes.binary:HexrdMaterials" display_in_upload="true"/>
<datatype extension="npz" type="galaxy.datatypes.binary:Npz" display_in_upload="true"/>
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def to_archive(self, dataset, name=""):
"""
rel_paths = []
file_paths = []
if dataset.datatype.composite_type or dataset.extension == 'html':
if dataset.datatype.composite_type or dataset.extension.endswith('html'):
main_file = f"{name}.html"
rel_paths.append(main_file)
file_paths.append(dataset.file_name)
Expand Down

0 comments on commit 8f72ec5

Please sign in to comment.