From 878fdb30b7db62a9c7308c5facb5ca143cd9da60 Mon Sep 17 00:00:00 2001 From: Emilio Palumbo Date: Sat, 21 Sep 2024 13:21:50 +0200 Subject: [PATCH] Fix type for genome size variable in getIndexBases function --- modules/mapping/star/main.nf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mapping/star/main.nf b/modules/mapping/star/main.nf index ae86830..e02ca81 100644 --- a/modules/mapping/star/main.nf +++ b/modules/mapping/star/main.nf @@ -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); @@ -161,4 +161,4 @@ process map { } // cmd << "${params.mappingSortTool} index ${prefix}_toGenome.bam" cmd.join('\n') -} \ No newline at end of file +}