Skip to content
Discussion options

You must be logged in to vote

Sorry for the late response

So If I understand well you can do something as:

ret = MemoryUnit.of( params.input ) / 2

 println ret  // 57.3 GB
 println ret.bytes // 61561561562
 println ret.toKilo() // 60118712

nextflow run ./mem.nf --input=123123123123

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jorgeaguileraseqera
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3087 on August 11, 2022 08:31.