jdana
07/23/2024, 11:30 PMjdana
07/24/2024, 12:41 AMnextflow run nf-core/chipseq \
--input samplesheet_chip.csv \
--outdir ./result \
--gtf /GRCh38/gencode.v45.primary_assembly.basic.annotation.gtf.gz \
--fasta /GRCh38/GRCh38.primary_assembly.genome.fa.gz \
--blacklist /GRCh38/hg38-blacklist.v2.bed \
--read_length 100 \
--narrow_peak \
-profile dockerjdana
07/24/2024, 6:08 AMN E X T F L O W ~ version 23.10.1
ERROR ~ Unable to parse config file: '/home/jiwon/nf-core/configs/custom.config'
Cannot compare groovy.util.ConfigObject with value '[:]' and java.lang.Integer with value '0'
-- Check '.nextflow.log' file for details
my script is here
nextflow run nf-core/chipseq \
--input samplesheet_chip.csv \
--outdir ./result_nomodel \
--gtf /GRCh38/gencode.v45.primary_assembly.basic.annotation.gtf.gz \
--fasta /GRCh38/GRCh38.primary_assembly.genome.fa.gz \
--blacklist /GRCh38/hg38-blacklist.v2.bed \
--read_length 100 \
-c ~/nf-core/configs/custom.config \
-profile dockerJose Espinosa-Carrasco
07/24/2024, 7:25 AMcustom.config here please?jdana
07/24/2024, 7:26 AMprocess {
withName: 'MACS2_CALLPEAK' {
ext.args = [
'--keep-dup all',
params.narrow_peak ? '' : "--broad --broad-cutoff ${params.broad_cutoff}",
params.save_macs_pileup ? '--bdg --SPMR' : '',
params.macs_fdr ? "--pvalue ${params.macs_pvalue}" : '',
params.macs_pvalue ? "--qvalue ${params.macs_fdr}" : '',
'--nomodel --extsize 147' //New argument here
].join(' ').trim()jdana
07/24/2024, 7:29 AMprocess {
withName: 'MACS2_CALLPEAK' {
ext.args = [
'--keep-dup all --broad --broad-cutoff 0.1',
'gsize 2406655830',
'--format BAM',
'--nomodel --extsize 147'].join(' ').trim()
}
but I got same error message
N E X T F L O W ~ version 23.10.1
ERROR ~ Unable to parse config file: '/home/jiwon/nf-core/configs/custom2.config'
Compile failed for sources FixedSetSources[name='/groovy/script/Script2CBC105D2D5866D8F35C196055A1D6ED/_nf_config_04547fe9']. Cause: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/groovy/script/Script2CBC105D2D5866D8F35C196055A1D6ED/_nf_config_04547fe9: 1: Unexpected input: '{' @ line 1, column 9.
process {
^
1 error
-- Check '.nextflow.log' file for detailsJose Espinosa-Carrasco
07/24/2024, 7:45 AMext.args , the others such as publishDir directive won’t be modified. You have to keep in mind that your ext.args will overwrite anything that is set by default by the ext.args declaration in the modules.config (here).
Also, the parameters are not read at the time when the custom.config is resolved and thus, for instance params.narrow_peak, params.save_macs_pileup, etc. won’t be effective in your custom.config. I will suggest that you simply provide the arguments you want to use with macs2 as a single string, e.g.:
process {
withName: 'MACS2_CALLPEAK' {
ext.args = '--keep-dup all --nomodel --extsize 147'
}
}jdana
07/24/2024, 8:00 AMext.arg is remained and set by default
process {
withName: 'MACS2_CALLPEAK' {
ext.args = [
'--keep-dup all',
params.narrow_peak ? '' : "--broad --broad-cutoff ${params.broad_cutoff}",
params.save_macs_pileup ? '--bdg --SPMR' : '',
params.macs_fdr ? "--pvalue ${params.macs_pvalue}" : '',
params.macs_pvalue ? "--qvalue ${params.macs_fdr}" : '',
].join(' ').trim()
and only e`xt.args = '--keep-dup all --nomodel --extsize 147'` this part overwrite?
or in nextflow runninng, ignore the original ext.arg and only use custom.config?
I am sorry I don't fully understand about custom.config ..Jose Espinosa-Carrasco
07/24/2024, 8:03 AMext.args is overwritten and only the custom.config is used
What is not overwritten is the rest of the directives under the MACS2_CALLPEAK process selector in the modules.config , 👉🏻 https://github.com/nf-core/chipseq/blob/51eba00b32885c4d0bec60db3cb0a45eb61e34c5/conf/modules.config#L534-L540jdana
07/24/2024, 8:10 AMext.args like this?
ext.args = ['--keep-dup all --nomodel --extsize 147',
'-pvalue 0.05',
'--broad'].join(' ').trim()Jose Espinosa-Carrasco
07/24/2024, 8:15 AMprocess {
withName: 'MACS2_CALLPEAK' {
ext.args = '--keep-dup all --nomodel --extsize 147 --pvalue 0.05 --broad --broad-cutoff 0.1'
}
}
I though, you were calling narrow peaks as this is specified in your scriptjdana
07/24/2024, 8:20 AM