@@ -446,6 +446,7 @@ process extract_pairwise_ortholog_relations {
446446process fastoma_report {
447447 publishDir params. output_folder, mode: ' copy'
448448 input:
449+ path notebook
449450 path orthoxml
450451 path proteome_folder
451452 path species_tree_checked
@@ -461,7 +462,7 @@ process fastoma_report {
461462 >&2 echo "Ensure you have installed fastoma with the 'report' feature\n (e.g. pip install fastoma[report])"
462463 exit 1
463464 fi
464- papermill ${ workflow.projectDir } /FastOMA/fastoma_notebook_stat.ipynb \
465+ papermill $n otebook \
465466 report.ipynb \
466467 -p output_folder "./" \
467468 -p proteome_folder "$proteome_folder "
@@ -479,6 +480,7 @@ workflow {
479480 hogmap_in = Channel . fromPath(params. hogmap_in, type :' dir' )
480481
481482 omamerdb = Channel . fromPath(params. omamer_db)
483+ notebook = Channel . fromPath(" $workflow . projectDir /FastOMA/fastoma_notebook_stat.ipynb" , type : " file" , checkIfExists : true ). first()
482484 (species_tree_checked, ready_input_check) = check_input(proteome_folder, hogmap_in, species_tree, omamerdb, splice_folder)
483485 omamer_input_channel = proteomes. combine(omamerdb). combine(hogmap_in). combine(ready_input_check)
484486 hogmap = omamer_run(omamer_input_channel)
@@ -498,7 +500,7 @@ workflow {
498500 FALSE : n> 25
499501 }
500502 extract_pairwise_ortholog_relations(orthoxml_file, c. TRUE )
501- fastoma_report(orthoxml_file, proteome_folder, species_tree_checked)
503+ fastoma_report(notebook, orthoxml_file, proteome_folder, species_tree_checked)
502504}
503505
504506workflow. onComplete {
0 commit comments