-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Giovanni Stracquadanio
committed
Feb 23, 2024
1 parent
b2a60f4
commit ab03bcf
Showing
6 changed files
with
93 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ logs/ | |
.DS_Store | ||
*.pyc | ||
.vscode | ||
.nextflow* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
include { Hello } from './modules/hello' | ||
include { MAKE_TRANSFORMATION_PROTOCOL; MAKE_SPOTTING_PROTOCOL } from './modules/protocol_compiler' | ||
|
||
workflow { | ||
channel.fromPath("${params.inputFile}") | Hello | ||
|
||
MAKE_TRANSFORMATION_PROTOCOL( | ||
tuple(file("$params.transformation_config"), file("$params.transformation_data")), | ||
file("$params.protocol_template_dir") | ||
) | ||
|
||
MAKE_SPOTTING_PROTOCOL( | ||
tuple(file("$params.spotting_config"), file("$params.spotting_data")), | ||
file("$params.protocol_template_dir") | ||
) | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,47 @@ | ||
process MAKE_TRANSFORMATION_PROTOCOL { | ||
|
||
publishDir "${params.resultsDir}", pattern: "results.txt", mode: 'copy' | ||
publishDir "${params.resultsDir}", pattern: "transformation_protocol.py", mode: 'copy' | ||
|
||
input: | ||
path data | ||
tuple path(config), path(csv) | ||
path(template_dir) | ||
|
||
output: | ||
path 'results.txt' | ||
path 'transformation_protocol.py' | ||
|
||
script: | ||
""" | ||
cat ${data} > results.txt | ||
protocol-compiler.py -d ${template_dir} -o transformation_protocol.py \ | ||
transformation-template.py ${config} ${csv} | ||
""" | ||
|
||
stub: | ||
""" | ||
touch transformation_protocol.py | ||
""" | ||
|
||
} | ||
|
||
process MAKE_SPOTTING_PROTOCOL { | ||
|
||
publishDir "${params.resultsDir}", pattern: "results.txt", mode: 'copy' | ||
publishDir "${params.resultsDir}", pattern: "spotting_protocol.py", mode: 'copy' | ||
|
||
input: | ||
path data | ||
tuple path(config), path(csv) | ||
path(template_dir) | ||
|
||
output: | ||
path 'results.txt' | ||
path 'spotting_protocol.py' | ||
|
||
script: | ||
""" | ||
protocol-compiler.py -d ${template_dir} -o spotting_protocol.py \ | ||
spotting-template.py ${config} ${csv} | ||
""" | ||
|
||
stub: | ||
""" | ||
cat ${data} > results.txt | ||
touch spotting_protocol.py | ||
""" | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
opentrons | ||
jinja2 | ||
docopt |
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
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