Skip to content

replace toInteger with toLong #451

@DLBPointon

Description

@DLBPointon

Description of the bug

Brought up by @muffato

Hi ToLA. I’ve fixed my pipelines but found some of your pipelines use toInteger. Be careful because it’s capped to 2^32-1 (~2 billion). I think it’s GET_LARGEST_SCAFFOLD.out.scaff_size that could cause an issue ? The largest mistletoe scaffolds were > 2 Gbp before being split for ENA, right ? toLong is the alternative.
I can’t remember what those counts in fastx_map_long_reads are.

ascc/subworkflows/local/generate_genomes/main.nf:    max_scaff_size  = GET_LARGEST_SCAFFOLD.out.scaff_size.toInteger()
genomeassembly/subworkflows/local/polishing_10X/main.nf:            [meta, rows[0].mean_depth.toFloat().round().toInteger()]
metagenomeassembly/subworkflows/sanger-tol/fastx_map_long_reads/main.nf:            def intcount = count.toInteger()
metagenomeassembly/subworkflows/sanger-tol/fastx_map_long_reads/main.nf:            def n_bins   = Math.ceil(intcount / size).toInteger()
metagenomeassembly/modules/sanger-tol/cramalign/gencramchunks/main.nf:    def n_bins   = Math.ceil(n_slices / size).toInteger()
treeval/subworkflows/local/selfcomp/main.nf:            sizeInGB < 1 ? 1 : sizeInGB.toInteger()  // Conditional operator for the logic
treeval/subworkflows/local/selfcomp/main.nf:            sizeInGB < 1 ? 1 : sizeInGB.toInteger()  // Conditional operator for the logic
treeval/subworkflows/local/generate_genome/main.nf:    max_scaff_size  = GET_LARGEST_SCAFFOLD.out.scaff_size.toInteger()

Command used and terminal output

Relevant files

No response

System information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions