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.
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 tobam[0]
. In this PR it is coerced back with[bam].flatten().each{ bamSize = bamSize + it.size()}
. Ifbam
is already a list of filepaths it will remain as such, ifbam
is a filepath then it becomes a list of filepaths.