Uri David Akavia
02/18/2026, 3:37 PMmashehu
02/18/2026, 3:39 PMUri David Akavia
02/18/2026, 3:46 PMwith (path("file.csv").csv(sep: ": ") {
assert rows[1][1] > 0
}
I guess I can use println for debugging, right?
So start with
with (path("file.csv").csv(sep: ": ") {
println(rows[1])
}
and see what I get?mashehu
02/18/2026, 3:49 PMUri David Akavia
02/22/2026, 3:02 PMdef lines = path(process.out.prep_read_outcomes_file[0][1]).readLines()
println(lines[1])
println(lines[1] == "USED: 93265")
def reads_used = lines[1] =~ /USED: (\d+)/
reads_used.println()
Now, the line is "USED: 93265", so the println(lines[1]==) line prints true
However, the regular expression doesn't manage to find any matches. I tested the groovy regular expression at https://onecompiler.com/groovy/44eaxf8qe, so it feels like I'm missing something on the difference between nf-test and groovy regular expressions. Any advice?Uri David Akavia
03/03/2026, 12:11 PMNicolas Vannieuwkerke
03/03/2026, 12:17 PMprintln(reads_used[0][1])
Your regex looks correctNicolas Vannieuwkerke
03/03/2026, 12:19 PMif (reads_used.matches()) {
amount = reads_used[0][1]
} else {
println("couldn't find how many reads are used")
}Uri David Akavia
03/03/2026, 12:59 PMNicolas Vannieuwkerke
03/03/2026, 2:06 PM