-
-
Save pditommaso/d20d8a56b790cdb656301eb95980fe0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nextflow | |
Channel | |
.fromPath('hello.txt') | |
.map { [it, it.size()] } | |
.set { input_ch } | |
process foo { | |
memory { sz < 1_000_000 ? 2.GB : 8.GB } | |
input: | |
set file(x), val(sz) from input_ch | |
""" | |
you_command --input $x | |
""" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mentioned that:
This works as well, would that be any better or did you have something else in mind to be able to do it from the config side?