diff --git a/lib/NGSaligner.groovy b/lib/NGSaligner.groovy index a4c2860..3b973d4 100644 --- a/lib/NGSaligner.groovy +++ b/lib/NGSaligner.groovy @@ -153,8 +153,10 @@ mkdir ${this.output} mv ${this.id}Aligned* ${this.output}/. mv ${this.id}SJ* ${this.output}/. - mv ${this.id}ReadsPerGene* ${this.output}/. - mv ${this.id}Log* ${this.output}/. + mv ${this.id}Log* ${this.output}/. + if test -f "${this.id}ReadsPerGene*"; then + mv ${this.id}ReadsPerGene* ${this.output}/. + fi """ }