Skip to content

Commit 53ee9b4

Browse files
committed
Print addiitonal diagnostic info when running
- Added project manifest - v0.2.0 - Print git commit, etc when running
1 parent 4f57e38 commit 53ee9b4

2 files changed

Lines changed: 40 additions & 23 deletions

File tree

main.nf

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
#!/usr/bin/env nextflow
22

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:")
410
params.each { println "${it}" }
5-
println( "***\n")
611

712

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)
936

1037

1138
/*
@@ -114,26 +141,6 @@ process cluster {
114141
* SCENIC steps
115142
*/
116143

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-
137144
process GRNinference {
138145
cache 'deep'
139146
container params.pyscenic_container

nextflow.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11

2+
manifest {
3+
name = 'SCENIC Protocol'
4+
description = 'A scalable SCENIC workflow for single-cell gene regulatory network analysis'
5+
homePage = 'https://github.com/aertslab/SCENICprotocol'
6+
author = 'Christopher Flerin, Bram Van de Sande'
7+
mainScript = 'main.nf'
8+
defaultBranch = 'master'
9+
version = '0.2.0'
10+
}
11+
212
params {
313
loom_input = '' // unfiltered loom input
414
loom_filtered = 'filtered.loom'

0 commit comments

Comments
 (0)