# HG changeset patch
# User iracooke
# Date 1433370290 14400
# Node ID e5551a35e508ebde91eca739e7a5b892d4e3c7ad
# Parent d1ea609e57d45cfd75ba20c6580688200970edbe
planemo upload for repository https://github.com/iracooke/proteomics-datatypes commit a71820c91d9d7629415a27526bbf700800d12f3f
diff -r d1ea609e57d4 -r e5551a35e508 datatypes_conf.xml
--- a/datatypes_conf.xml Wed May 20 01:39:39 2015 -0400
+++ b/datatypes_conf.xml Wed Jun 03 18:24:50 2015 -0400
@@ -46,7 +46,12 @@
+
+
+
+
+
diff -r d1ea609e57d4 -r e5551a35e508 proteomics.py
--- a/proteomics.py Wed May 20 01:39:39 2015 -0400
+++ b/proteomics.py Wed Jun 03 18:24:50 2015 -0400
@@ -285,6 +285,19 @@
with open(filename, 'r') as contents:
return Msp.next_line_starts_with(contents, "Name:") and Msp.next_line_starts_with(contents, "MW:")
+class SPLibNoIndex( Text ):
+ """SPlib without index file """
+ file_ext = "splib"
+
+ def set_peek( self, dataset, is_multi_byte=False ):
+ """Set the peek and blurb text"""
+ if not dataset.dataset.purged:
+ dataset.peek = data.get_file_peek( dataset.file_name, is_multi_byte=is_multi_byte )
+ dataset.blurb = 'Spectral Library without index files'
+ else:
+ dataset.peek = 'file does not exist'
+ dataset.blurb = 'file purged from disk'
+
class SPLib( Msp ):
"""SpectraST Spectral Library. Closely related to msp format"""
@@ -378,3 +391,13 @@
if hasattr(Binary, 'register_unsniffable_binary_ext'):
Binary.register_unsniffable_binary_ext('hlf')
+
+
+class Sf3(Binary):
+ """Class describing a Scaffold SF3 files"""
+ file_ext = "sf3"
+
+if hasattr(Binary, 'register_unsniffable_binary_ext'):
+ Binary.register_unsniffable_binary_ext('sf3')
+
+