|
1 | 1 | #!/usr/bin/env nextflow |
2 | 2 |
|
3 | | -println( "\n***\nParameters in use:") |
| 3 | +println( "\n***") |
| 4 | +println "Project name: $workflow.manifest.name" |
| 5 | +println "Project dir : $workflow.projectDir" |
| 6 | +println "Git info: $workflow.repository - $workflow.revision [$workflow.commitId]" |
| 7 | +println "Cmd line: $workflow.commandLine" |
| 8 | +println "Pipeline version: $workflow.manifest.version" |
| 9 | +println( "***\nParameters in use:") |
4 | 10 | params.each { println "${it}" } |
5 | | -println( "***\n") |
6 | 11 |
|
7 | 12 |
|
8 | | -file( "${params.outdir}" ).mkdirs() |
| 13 | +/* |
| 14 | + * scenic channel setup |
| 15 | + */ |
| 16 | + |
| 17 | +// channel for SCENIC databases resources: |
| 18 | +featherDB = Channel |
| 19 | + .fromPath( params.db ) |
| 20 | + .collect() // use all files together in the ctx command |
| 21 | + |
| 22 | +n = Channel.fromPath(params.db).count().get() |
| 23 | +if( n==1 ) { |
| 24 | + println( "***\nWARNING: only using a single feather database:\n ${featherDB.get()[0]}.\nTo include all database files using pattern matching, make sure the value for the '--db' parameter is enclosed in quotes!" ) |
| 25 | +} else { |
| 26 | + println( "***\nUsing $n feather databases:") |
| 27 | + featherDB.get().each { |
| 28 | + println " ${it}" |
| 29 | + } |
| 30 | +} |
| 31 | +println( "***\n") |
| 32 | + |
| 33 | +// expr = file(params.expr) |
| 34 | +tfs = file(params.TFs) |
| 35 | +motifs = file(params.motifs) |
9 | 36 |
|
10 | 37 |
|
11 | 38 | /* |
@@ -114,26 +141,6 @@ process cluster { |
114 | 141 | * SCENIC steps |
115 | 142 | */ |
116 | 143 |
|
117 | | -// channel for SCENIC databases resources: |
118 | | -featherDB = Channel |
119 | | - .fromPath( params.db ) |
120 | | - .collect() // use all files together in the ctx command |
121 | | - |
122 | | -n = Channel.fromPath(params.db).count().get() |
123 | | -if( n==1 ) { |
124 | | - println( "***\nWARNING: only using a single feather database:\n ${featherDB.get()[0]}.\nTo include all database files using pattern matching, make sure the value for the '--db' parameter is enclosed in quotes!\n***\n" ) |
125 | | -} else { |
126 | | - println( "***\nUsing $n feather databases:") |
127 | | - featherDB.get().each { |
128 | | - println " ${it}" |
129 | | - } |
130 | | - println( "***\n") |
131 | | -} |
132 | | - |
133 | | -// expr = file(params.expr) |
134 | | -tfs = file(params.TFs) |
135 | | -motifs = file(params.motifs) |
136 | | - |
137 | 144 | process GRNinference { |
138 | 145 | cache 'deep' |
139 | 146 | container params.pyscenic_container |
|
0 commit comments