예제 #1
0
파일: poowindow.py 프로젝트: mcvmcv/Poo
    def importKeaSampleBatch(self):
        """Opens a Kea Sample Batch file and updates the Kea table with
		the information therein. A Kea table is created if one does not
		already exist."""
        title = "Open Kea Sample Batch file..."
        fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"])
        keaSampleBatchName, ok = GetSampleBatchName.run(fileName)
        if ok:
            keaData = KeaSampleBatchTable(fileName, keaSampleBatchName)
            self.tabs.updateKeaData(keaData.table)
예제 #2
0
파일: poowindow.py 프로젝트: mcvmcv/Poo
    def createSamplesFromKea(self):
        """Opens a Kea Sample Batch Excel file and the Slipstream Plates
		Records spreadsheet and adds entries to the	sampleTable and keaTable."""
        title = "Open Kea Sample Batch file..."
        fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"])
        keaSampleBatchName, ok = GetSampleBatchName.run(fileName)
        if ok:
            keaSampleBatch = KeaSampleBatchTable(fileName, keaSampleBatchName)
            self.tabs.addKeaTable()
            self.tabs.appendSamples(keaSampleBatch.table)
            self.__getPlatesRecords("Plate Kea")
            self.setCrop()
예제 #3
0
파일: poowindow.py 프로젝트: mcvmcv/Poo
    def createSamplesFromEbrida(self):
        """Opens an Ebrida File, a Kea Sample Batch file, and the Slipstream
		Plates Records Spreadsheet and adds entries to the sampleTable,
		keaTable, and ebridaTable."""
        title = "Open Ebrida Sample batch file..."
        fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"])
        ebridaSampleBatch = EbridaSampleBatchTable(fileName)
        title = "Open Kea Sample Batch file..."
        fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"])
        sampleBatchName, ok = GetSampleBatchName.run(fileName)
        if ok:
            keaSampleBatch = KeaSampleBatchTable(fileName, sampleBatchName)
            sampleBatch = KeaEbridaSampleBatchTable(keaSampleBatch, ebridaSampleBatch)
            self.tabs.addKeaTable()
            self.tabs.addEbridaTable()
            self.tabs.appendSamples(sampleBatch.table)
            self.__getPlatesRecords("Plate Kea")
            self.setCrop()