Skip to content

Commit a20c464

Browse files
committed
Also move getMacsGsize declaration
1 parent b1f7d31 commit a20c464

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

main.nf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ workflow {
146146
//
147147
// Get attribute from genome config file e.g. fasta
148148
//
149-
150149
def getGenomeAttribute(attribute) {
151150
if (params.genomes && params.genome && params.genomes.containsKey(params.genome)) {
152151
if (params.genomes[ params.genome ].containsKey(attribute)) {
@@ -156,6 +155,21 @@ def getGenomeAttribute(attribute) {
156155
return null
157156
}
158157

158+
//
159+
// Get macs genome size (macs_gsize)
160+
//
161+
def getMacsGsize(params) {
162+
def val = null
163+
if (params.genomes && params.genome && params.genomes.containsKey(params.genome)) {
164+
if (params.genomes[ params.genome ].containsKey('macs_gsize')) {
165+
if (params.genomes[ params.genome ][ 'macs_gsize' ].containsKey(params.read_length.toString())) {
166+
val = params.genomes[ params.genome ][ 'macs_gsize' ][ params.read_length.toString() ]
167+
}
168+
}
169+
}
170+
return val
171+
}
172+
159173
/*
160174
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161175
THE END

subworkflows/local/utils_nfcore_chipseq_pipeline/main.nf

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,17 @@ def genomeExistsError() {
178178
//
179179
// Get macs genome size (macs_gsize)
180180
//
181-
def getMacsGsize(params) {
182-
def val = null
183-
if (params.genomes && params.genome && params.genomes.containsKey(params.genome)) {
184-
if (params.genomes[ params.genome ].containsKey('macs_gsize')) {
185-
if (params.genomes[ params.genome ][ 'macs_gsize' ].containsKey(params.read_length.toString())) {
186-
val = params.genomes[ params.genome ][ 'macs_gsize' ][ params.read_length.toString() ]
187-
}
188-
}
189-
}
190-
return val
191-
}
181+
// def getMacsGsize(params) {
182+
// def val = null
183+
// if (params.genomes && params.genome && params.genomes.containsKey(params.genome)) {
184+
// if (params.genomes[ params.genome ].containsKey('macs_gsize')) {
185+
// if (params.genomes[ params.genome ][ 'macs_gsize' ].containsKey(params.read_length.toString())) {
186+
// val = params.genomes[ params.genome ][ 'macs_gsize' ][ params.read_length.toString() ]
187+
// }
188+
// }
189+
// }
190+
// return val
191+
// }
192192

193193
//
194194
// Generate methods description for MultiQC

0 commit comments

Comments
 (0)