comparison datatypes/Datatype.py @ 72:2440ce10848b draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit a60f8496cccf4c5a07ba7d75876198eda997f07d
author yating-l
date Wed, 27 Sep 2017 15:34:20 -0400
parents 4ca7cbf2d9b8
children 0bc486356e2a
comparison
equal deleted inserted replaced
71:b724e559907e 72:2440ce10848b
73 73
74 @abc.abstractmethod 74 @abc.abstractmethod
75 def validateData(self): 75 def validateData(self):
76 """validate the input data with DataValidation""" 76 """validate the input data with DataValidation"""
77 77
78 def initSettings(self, trackType = None): 78 def initSettings(self):
79 #Initialize required fields: trackName, longLabel, shortLable 79 #Initialize required fields: trackName, longLabel, shortLable
80 self.trackName = self.trackSettings["name"] 80 self.trackName = self.trackSettings["name"]
81 if self.trackSettings["long_label"]: 81 if self.trackSettings["long_label"]:
82 self.longLabel = self.trackSettings["long_label"] 82 self.longLabel = self.trackSettings["long_label"]
83 else: 83 else:
85 if not "short_label" in self.trackSettings: 85 if not "short_label" in self.trackSettings:
86 self.shortLabel = "" 86 self.shortLabel = ""
87 else: 87 else:
88 self.shortLabel = self.trackSettings["short_label"] 88 self.shortLabel = self.trackSettings["short_label"]
89 self.trackDataURL = os.path.join(self.myTrackFolderPath, self.trackName) 89 self.trackDataURL = os.path.join(self.myTrackFolderPath, self.trackName)
90 if trackType: 90
91 self.trackType = trackType
92 91
93 @abc.abstractmethod 92 @abc.abstractmethod
94 def createTrack(self): 93 def createTrack(self):
95 """Create the final track file""" 94 """Create the final track file"""
96 95