Skip to content

Commit

Permalink
Fix type for genome size variable in getIndexBases function
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Sep 21, 2024
1 parent e8b8a20 commit 878fdb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mapping/star/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ params.starVersion = "2.4.0j--h9ee0642_2"
params.container = "${params.containerRepo}/star:${params.starVersion}"

def getIndexBases(genome) {
int size = genome.size()
long size = genome.size()
if ( genome.extension == "gz" ) {
RandomAccessFile raf = new RandomAccessFile(genome.toString(), "r");
raf.seek(raf.length() - 4);
Expand Down Expand Up @@ -161,4 +161,4 @@ process map {
}
// cmd << "${params.mappingSortTool} index ${prefix}_toGenome.bam"
cmd.join('\n')
}
}

0 comments on commit 878fdb3

Please sign in to comment.