Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ensureDir(self.params.flowcellBamDir)
#
# 2. run all fastq pairs through BWA:
#
nextWait = set()
for key in fqs.keys() :
(project, sample, index, lane, num) = key
sampleBamDir = os.path.join(self.params.flowcellBamDir, "Project_" + project, "Sample_" + sample)
ensureDir(sampleBamDir)
keytag = "_".join(key)
self.params.bamFile = os.path.join(sampleBamDir, keytag + ".bam")
self.params.fastq1File = fqs[key][0]
self.params.fastq2File = fqs[key][1]
nextWait.add(self.addWorkflowTask(preJoin(taskPrefix, keytag), FastqPairToBwaBamFlow(self.params), dependencies=dependencies))
return nextWait