Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env nextflow
- // Input parameters definition (with default values)
- params.source = "/home/ubuntu/cardiac-nipype/data/InputData_00/"
- //channels definition
- input_file_channel = Channel.fromPath('input.fa')
- screen_out_channel = Channel.value()
- //variables inicialisation
- source = params.source
- linex = ''
- // *************************************************************************************
- // workflow programming: scripts and processes
- // *************************************************************************************
- process node1_data_organize {
- input:
- file file_input from input_file_channel
- output:
- stdout linex into screen_out_channel
- script:
- println ""
- println ""
- println ""
- println "*****************************************************************************************************"
- println "** DATA ORGANISATION **"
- println "*****************************************************************************************************"
- println ""
- int aux = 0
- // imprime el listado del contenido del input file, para control de correcta lectura del archivo.
- println "FOLDERS TO PROCESS:"
- myFile = file('input.fa')
- allLines = myFile.readLines()
- for( line in allLines ) {
- aux++
- println "Line $aux " + line
- }
- """
- #! /usr/bin/env python
- linex = '10000000000000'
- print linex
- """
- }
- process node2_quality_assesment {
- input:
- val linex from screen_out_channel
- script:
- println ""
- println ""
- println "SECOND PHASE:"
- println ""
- println ""
- """
- #! /usr/bin/env python
- print "linex = "+$linex
- """
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement