mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-04 21:42:08 -05:00
fix(appyter): Add hack to get example working
Co-authored-by: sruthipsuresh <sps180004@utdallas.edu>
This commit is contained in:
parent
ec97e1890b
commit
8b4fe3c215
4 changed files with 21 additions and 5 deletions
|
@ -19,17 +19,24 @@ process APPYTER {
|
||||||
}
|
}
|
||||||
|
|
||||||
input:
|
input:
|
||||||
path input
|
path input_json
|
||||||
|
path input_files
|
||||||
|
|
||||||
output:
|
output:
|
||||||
path "data/output.ipynb", emit: output_notebook
|
path "output.ipynb", emit: output_notebook
|
||||||
path "*.version.txt" , emit: version
|
// TODO path "*.version.txt" , emit: version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
// Add soft-links to original FastQs for consistent naming in pipeline
|
// Add soft-links to original FastQs for consistent naming in pipeline
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
appyter nbconstruct -i $input -o data/output.ipynb
|
CURRENTWORK=`pwd`
|
||||||
|
cp $input_json ~
|
||||||
|
cp $input_files ~
|
||||||
|
cd ~
|
||||||
|
appyter nbconstruct -i $input_json -o output.ipynb
|
||||||
|
appyter nbexecute output.ipynb
|
||||||
|
cp output.ipynb \$CURRENTWORK
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"description": "testrun",
|
||||||
|
"number_1": 3,
|
||||||
|
"number_2": 5,
|
||||||
|
"operator": "add",
|
||||||
|
"file": "test.txt"
|
||||||
|
}
|
|
@ -7,5 +7,6 @@ include { APPYTER } from '../../../software/appyter/main.nf' addParams( appyter_
|
||||||
workflow test_appyter {
|
workflow test_appyter {
|
||||||
def input = []
|
def input = []
|
||||||
input = file("${launchDir}/tests/software/appyter/input.json", checkIfExists: true)
|
input = file("${launchDir}/tests/software/appyter/input.json", checkIfExists: true)
|
||||||
APPYTER ( input )
|
input_file = file("${launchDir}/tests/software/appyter/test.txt", checkIfExists: true)
|
||||||
|
APPYTER ( input, input_file)
|
||||||
}
|
}
|
||||||
|
|
1
tests/software/appyter/test.txt
Normal file
1
tests/software/appyter/test.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
This is a test file..
|
Loading…
Reference in a new issue