def catRealignedBam(label, segmentList) :
            output = self.paths.getRealignedBamPath(label)

            bamCatCmd = bamListCatCmd(self.params.samtoolsBin, segmentList, output)
            bamCatTaskLabel = preJoin(taskPrefix, "realignedBamCat_" + label)

            finishTasks.add(self.addTask(bamCatTaskLabel, bamCatCmd, dependencies=completeSegmentsTask))
Exemplo n.º 2
0
        def catRealignedBam(sampleIndex) :
            segmentList = segFiles.sample[sampleIndex].bamRealign
            output = self.paths.getRealignedBamPath(sampleIndex)

            bamCatCmd = bamListCatCmd(self.params.samtoolsBin, segmentList, output)
            bamCatTaskLabel = preJoin(taskPrefix, "realignedBamCat_" + self.paths.sampleLabel(sampleIndex))
            finishTasks.add(self.addTask(bamCatTaskLabel, bamCatCmd, dependencies=completeSegmentsTask))
Exemplo n.º 3
0
 def finishBam(tmpList, output, label):
     cmd = bamListCatCmd(self.params.samtoolsBin, tmpList, output)
     finishTasks.add(
         self.addTask(preJoin(taskPrefix, label + "_finalizeBAM"),
                      cmd,
                      dependencies=completeSegmentsTask))