def createSamplesFromEbridaNoKea(self): """Opens an Ebrida File and the Slipstream Plates Records Spreadsheet and adds entries to the sampleTable and ebridaTable. Created for when the Kea Create Samples from Ebrida function wasn't working.""" title = "Open Ebrida Sample batch file..." fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"]) ebridaSampleBatch = EbridaSampleBatchTable(fileName) plates, ok = GetPlatesList.run() if ok: samples, ok = GetNonSamples.run(plates) if ok: ebridaSampleBatch.addPlateAndWell(samples) self.tabs.addEbridaTable() self.tabs.appendSamples(ebridaSampleBatch.table) self.__getPlatesRecords("Plate ID") self.setCrop()
def importEbridaSampleBatchNoKea(self): """Opens an Ebrida File and updates the Ebrida table with the information therein. An Ebrida table is created if one does not already exist. This is for Ebrida data with no associated Kea data.""" title = "Open Ebrida Sample Batch file..." fileName, f = QtGui.QFileDialog.getOpenFileName(self, title, self.var["path"]) ebridaData = EbridaSampleBatchTable(fileName) ebridaData.createPlateNameColumn() missingSamplesPerPlate = ebridaData.getMissingSamplesPerPlate() samples, ok = GetEbridaSamples.run(missingSamplesPerPlate) ebridaData.addWells(samples) self.tabs.updateEbridaDataNoKea(ebridaData)