Advertisement
Guest User

prueba de paso de variables 1

a guest
Jan 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. #! /usr/bin/env nextflow
  2.  
  3. // Input parameters definition (with default values)
  4. params.source = "/home/ubuntu/cardiac-nipype/data/InputData_00/"
  5.  
  6. //channels definition
  7. input_file_channel = Channel.fromPath('input.fa')
  8. screen_out_channel = Channel.value()
  9.  
  10. //variables inicialisation
  11. source = params.source
  12. linex = ''
  13.  
  14.  
  15. // *************************************************************************************
  16. // workflow programming: scripts and processes
  17. // *************************************************************************************
  18.  
  19. process node1_data_organize {
  20. input:
  21. file file_input from input_file_channel
  22.  
  23. output:
  24. stdout linex into screen_out_channel
  25.  
  26.  
  27. script:
  28. println ""
  29. println ""
  30. println ""
  31. println "*****************************************************************************************************"
  32. println "** DATA ORGANISATION **"
  33. println "*****************************************************************************************************"
  34. println ""
  35.  
  36. int aux = 0
  37.  
  38. // imprime el listado del contenido del input file, para control de correcta lectura del archivo.
  39. println "FOLDERS TO PROCESS:"
  40.  
  41. myFile = file('input.fa')
  42. allLines = myFile.readLines()
  43. for( line in allLines ) {
  44. aux++
  45. println "Line $aux " + line
  46.  
  47. }
  48.  
  49. """
  50. #! /usr/bin/env python
  51. linex = '10000000000000'
  52. print linex
  53.  
  54. """
  55. }
  56.  
  57.  
  58. process node2_quality_assesment {
  59.  
  60. input:
  61. val linex from screen_out_channel
  62.  
  63. script:
  64.  
  65. println ""
  66. println ""
  67. println "SECOND PHASE:"
  68. println ""
  69. println ""
  70.  
  71.  
  72. """
  73. #! /usr/bin/env python
  74. print "linex = "+$linex
  75. """
  76.  
  77.  
  78.  
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement