Created
November 26, 2020 21:58
-
-
Save robsyme/7145f8ffc3c340855b0dc6281d7faeef 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
class Dog { | |
final String name | |
Dog(String name) { | |
this.name = name | |
} | |
@Override | |
public int hashCode() { | |
return name.hashCode() | |
} | |
} |
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 | |
nextflow.enable.dsl=2 | |
import Dog | |
process Woof { | |
input: | |
val(dog) | |
"echo ${dog.name} says woof! > bark_book.txt" | |
} | |
workflow { | |
Channel.from( "Fido", "Spot", "Lassie", "Barky" ) | map { new Dog(it) } | Woof | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment