mskcc / tempo

CCS research pipeline to process WES and WGS TN pairs
12 stars 5 forks source link

bugfix for single bam input into MergeBamsAndMarkDuplicates #963

Closed anoronh4 closed 2 years ago

anoronh4 commented 2 years ago

Added on bugfix for error related to single bam input, related to issue #952 and PR #955 . In the previous PR, bam is input as a list, however if it is a one-element list then it is coerced to bam[0]. In this PR it is coerced back with [bam].flatten().each{ bamSize = bamSize + it.size()}. If bam is already a list of filepaths it will remain as such, if bam is a filepath then it becomes a list of filepaths.