Skip to content

Commit

Permalink
Fix issue with item order in mix
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Feb 20, 2017
1 parent 50bf719 commit 08672c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chipseq-pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,10 @@ originalBams.cross(bamsReads)
it.value[0]
break
case 2:
def fragLen = it.value[0][1].text.split()[2].split(',')[0] as Integer
it.value[1][0..-4] + [fragLen] + it.value[1][-2..-1]
def bams = it.value.find { it[1] =~ /bam/ }
def paramFile = it.value.find { it[1] =~ /params/ }[1]
def fragLen = paramFile.text.split()[2].split(',')[0] as Integer
bams[0..-4] + [fragLen] + bams[-2..-1]
break
}
}.tap{ allBams }
Expand Down

0 comments on commit 08672c8

Please sign in to comment.