Fixing typo in DPP

platform and library were exchanged when rebuilding the read group information
This commit is contained in:
Mauricio Carneiro 2011-09-01 18:13:52 -04:00
parent 65a9159ac6
commit e253f6f05d
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class DataProcessingPipeline extends QScript {
for (rg <- readGroups) {
val intermediateInBam: File = if (index == readGroups.length) { inBam } else { swapExt(outBam, ".bam", index+1 + "-rg.bam") }
val intermediateOutBam: File = if (index > 1) {swapExt(outBam, ".bam", index + "-rg.bam") } else { outBam}
val readGroup = new ReadGroup(rg.getReadGroupId, rg.getPlatform, rg.getLibrary, rg.getPlatformUnit, rg.getSample, rg.getSequencingCenter, rg.getDescription)
val readGroup = new ReadGroup(rg.getReadGroupId, rg.getLibrary, rg.getPlatform, rg.getPlatformUnit, rg.getSample, rg.getSequencingCenter, rg.getDescription)
add(addReadGroup(intermediateInBam, intermediateOutBam, readGroup))
index = index - 1
}