@@ -365,7 +365,32 @@ def detectInputType(input) {
365365 }
366366}
367367
368+ // handle deprecated parameters
369+ def handleDeprecatedParameters() {
370+ if (params. input_folder && ! params. input) {
371+ log. warn " "
372+ log. warn " ╔══════════════════════════════════════════════════════════════╗"
373+ log. warn " ║ DEPRECATION WARNING ║"
374+ log. warn " ║ ║"
375+ log. warn " ║ --input_folder is deprecated and has been removed. ║"
376+ log. warn " ║ Please use --input instead of --input_folder ║"
377+ log. warn " ║ ║"
378+ log. warn " ╚══════════════════════════════════════════════════════════════╝"
379+ log. warn " "
380+ exit 1
381+
382+ } else if (params. input_folder && params. input) {
383+ log. error " "
384+ log. error " ERROR: Both --input_folder (deprecated) and --input specified."
385+ log. error " Please use only --input parameter."
386+ log. error " "
387+ exit 1
388+ }
389+ }
390+
368391workflow {
392+ handleDeprecatedParameters()
393+
369394 // Print help message if requested
370395 if (params. help) {
371396 log. info paramsHelp(" nextflow run FastOMA.nf" )
@@ -380,9 +405,7 @@ workflow {
380405
381406 // Detect input type
382407 def inputType = detectInputType(params. input)
383- log. info " Detected input type '${ inputType} ' for: ${ params.input} "
384408 if (inputType == " directory" ) {
385- log. info " Using local input folder: ${ params.input} "
386409 // Local/custom dataset - allow parameter overrides
387410 proteome_folder = Channel . value(params. proteome_folder)
388411 proteomes = Channel . fromPath(" ${ params.proteome_folder} /*.{fa,fasta}" , checkIfExists : true )
@@ -393,11 +416,8 @@ workflow {
393416 // Input is either a URL or an archive file - fetch and extract
394417 // Fetch test dataset from remote URL
395418 if (inputType == " url" ) {
396- log. info " Fetching test dataset from URL: ${ params.input} "
397419 input_path = fetchRemoteData(Channel . value(params. input))
398420 } else if (inputType == " archive" ) {
399- log. info " Extracting test dataset from local archive: ${ params.input} "
400-
401421 input_path = extractLocalArchive(Channel . fromPath(params. input))
402422 }
403423
0 commit comments