Ejemplo n.º 1
0
Archivo: tabs.py Proyecto: mcvmcv/Poo
	def openSaved(self,excelFile):
		'''Adds data from a saved file.'''
		for sheetName in excelFile.sheet_names:
			if sheetName == 'Project':
				pass
			elif sheetName == 'Samples':
				samples				= excelFile.parse('Samples').astype(str)
				self.addSampleTable()
				self.sampleTable.appendSamples(samples)
			elif sheetName == 'Kea':
				samples				= excelFile.parse('Kea').astype(str)
				self.addKeaTable()
				self.keaTable.appendSamples(samples)
			elif sheetName == 'EBrida':
				samples				= excelFile.parse('EBrida').astype(str)
				self.addEbridaTable()
				self.ebridaTable.appendSamples(samples)
			else:
				samples				= excelFile.parse(sheetName).astype(str)
				screenTable			= ScreenTable(sheetName)
				screenTable.appendSamples(samples)
				self.addTab(screenTable,sheetName)
Ejemplo n.º 2
0
Archivo: tabs.py Proyecto: mcvmcv/Poo
	def addScreen(self,plateNames,includeAll,oldPlates,newMarker,controls):
		'''Adds a new screen table based on the passed data.'''
		fromSource,samples		= self.getInclude(includeAll)
		screenTable				= ScreenTable(plateNames)
		screenTable.addSamples(fromSource,includeAll,oldPlates,newMarker,samples,controls)
		self.addTab(screenTable,plateNames)