def readExperiment(self, experimentXmlPath): expXml = ET.parse(experimentXmlPath).getroot() exp = ExperimentWrapper(expXml) self.nameMap = dict() for eventName, sequencePath in exp.seqMap.items(): for sequenceFile in fileList(sequencePath): if not os.path.isdir(sequenceFile): self.processSequence(eventName, sequenceFile)
def readProject(self, projectXmlPath): mcProj = MultiCactusProject() mcProj.readXML(projectXmlPath) mcProj.mcTree.nameUnlabeledInternalNodes() self.nameMap = dict() for leaf in mcProj.mcTree.getLeaves(): eventName = mcProj.mcTree.getName(leaf) sequencePath = mcProj.sequencePath(eventName) for sequenceFile in fileList(sequencePath): if not os.path.isdir(sequenceFile): self.processSequence(eventName, sequenceFile)