Skip to content

Commit a5f6288

Browse files
author
Tim Sterne-Weiler
authored
Fix Inexact error for variable read-lengths
This commit fixes the second error reported in #114
1 parent d3e9aed commit a5f6288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/whippet-quant.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ function main()
142142
println(stderr, "FASTQ_2: " * args["paired_mate.fastq[.gz]"])
143143
@timer mapped,totreads,readlen = process_paired_reads!( parser, mate_parser, param, lib, quant, multi, mod,
144144
sam=args["sam"], qualoffset=enc_offset )
145-
readlen = Int(readlen)
145+
readlen = Int(floor(readlen))
146146
println(stderr, "Finished mapping $mapped paired-end reads of length $readlen each out of a total of $totreads mate-pairs...")
147147
else
148148
println(stderr, "FASTQ: " * args["filename.fastq[.gz]"])
149149
@timer mapped,totreads,readlen = process_reads!( parser, param, lib, quant, multi, mod,
150150
sam=args["sam"], qualoffset=enc_offset )
151-
readlen = Int(readlen)
151+
readlen = Int(floor(readlen))
152152
println(stderr, "Finished mapping $mapped single-end reads of length $readlen out of a total of $totreads reads...")
153153
end
154154

0 commit comments

Comments
 (0)