Skip to content

Commit

Permalink
add new datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaMcCloud committed Dec 20, 2024
1 parent 028f320 commit 30cb247
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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 @@ -1017,6 +1017,7 @@
<datatype extension="fits" type="galaxy.datatypes.binary:FITS" mimetype="application/octet-stream" display_in_upload="true" description="Flexible Image Transport System (FITS) used in Astronomy"/>
<datatype extension="chain" type="galaxy.datatypes.chain:Chain" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/chain.html"/>
<datatype extension="ucsc.net" type="galaxy.datatypes.chain:Net" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/net.html"/>
<datatype extension="bcsp" type="galaxy.datatypes.binary:bcsp" display_in_upload="true"/>
</registration>
<sniffers>
<!--
Expand Down
5 changes: 5 additions & 0 deletions lib/galaxy/datatypes/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -4747,3 +4747,8 @@ def display_peek(self, dataset: DatasetProtocol) -> str:
return dataset.peek
except Exception:
return f"Binary numpy file ({nice_size(dataset.get_size())})"

class bcsp(Binary):
"""Class for a *.bscp file"""

file_ext = "bcsp"

0 comments on commit 30cb247

Please sign in to comment.