bismark: remove underscores from process names (#303)

* sanitize process names

no underscores allowed

* remove underscores from process names
This commit is contained in:
Patrick Hüther 2021-03-22 17:46:11 +01:00 committed by GitHub
parent 592002aa23
commit 7fe6f9fab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 70 additions and 70 deletions

View file

@ -4,7 +4,7 @@ include { initOptions; saveFiles; getSoftwareName } from './functions'
params.options = [:] params.options = [:]
options = initOptions(params.options) options = initOptions(params.options)
process BISMARK_GENOME_PREPARATION { process BISMARK_GENOMEPREPARATION {
tag "$fasta" tag "$fasta"
label 'process_high' label 'process_high'
publishDir "${params.outdir}", publishDir "${params.outdir}",

View file

@ -1,4 +1,4 @@
name: bismark_genome_preparation name: bismark_genomepreparation
description: | description: |
Converts a specified reference genome into two different bisulfite Converts a specified reference genome into two different bisulfite
converted versions and indexes them for alignments. converted versions and indexes them for alignments.

View file

@ -4,7 +4,7 @@ include { initOptions; saveFiles; getSoftwareName } from './functions'
params.options = [:] params.options = [:]
options = initOptions(params.options) options = initOptions(params.options)
process BISMARK_METHYLATION_EXTRACTOR { process BISMARK_METHYLATIONEXTRACTOR {
tag "$meta.id" tag "$meta.id"
label 'process_high' label 'process_high'
publishDir "${params.outdir}", publishDir "${params.outdir}",

View file

@ -1,4 +1,4 @@
name: bismark_methylation_extractor name: bismark_methylationextractor
description: Extracts methylation information for individual cytosines from alignments. description: Extracts methylation information for individual cytosines from alignments.
keywords: keywords:
- bismark - bismark

View file

@ -60,21 +60,21 @@ bedtools_sort:
bismark_align: bismark_align:
- software/bismark/align/** - software/bismark/align/**
- software/bismark/genome_preparation/** - software/bismark/genomepreparation/**
- tests/software/bismark/align/** - tests/software/bismark/align/**
bismark_deduplicate: bismark_deduplicate:
- software/bismark/deduplicate/** - software/bismark/deduplicate/**
- tests/software/bismark/deduplicate/** - tests/software/bismark/deduplicate/**
bismark_genome_preparation: bismark_genomepreparation:
- software/bismark/genome_preparation/** - software/bismark/genomepreparation/**
- tests/software/bismark/genome_preparation/** - tests/software/bismark/genomepreparation/**
bismark_methylation_extractor: bismark_methylationextractor:
- software/bismark/methylation_extractor/** - software/bismark/methylationextractor/**
- software/bismark/genome_preparation/** - software/bismark/genomepreparation/**
- tests/software/bismark/methylation_extractor/** - tests/software/bismark/methylationextractor/**
blast_blastn: blast_blastn:
@ -82,18 +82,18 @@ blast_blastn:
- tests/software/blast/blastn/** - tests/software/blast/blastn/**
bismark_report: bismark_report:
- software/bismark/genome_preparation/** - software/bismark/genomepreparation/**
- software/bismark/align/** - software/bismark/align/**
- software/bismark/deduplicate/** - software/bismark/deduplicate/**
- software/bismark/methylation_extractor/** - software/bismark/methylationextractor/**
- software/bismark/report/** - software/bismark/report/**
- tests/software/bismark/report/** - tests/software/bismark/report/**
bismark_summary: bismark_summary:
- software/bismark/genome_preparation/** - software/bismark/genomepreparation/**
- software/bismark/align/** - software/bismark/align/**
- software/bismark/deduplicate/** - software/bismark/deduplicate/**
- software/bismark/methylation_extractor/** - software/bismark/methylationextractor/**
- software/bismark/summary/** - software/bismark/summary/**
- tests/software/bismark/summary/** - tests/software/bismark/summary/**

View file

@ -2,7 +2,7 @@
nextflow.enable.dsl = 2 nextflow.enable.dsl = 2
include { BISMARK_GENOME_PREPARATION } from '../../../../software/bismark/genome_preparation/main.nf' addParams( options: [:] ) include { BISMARK_GENOMEPREPARATION } from '../../../../software/bismark/genomepreparation/main.nf' addParams( options: [:] )
include { BISMARK_ALIGN as BISMARK_ALIGN_SE } from '../../../../software/bismark/align/main.nf' addParams( options: [ publish_dir:'test_single_end' ] ) include { BISMARK_ALIGN as BISMARK_ALIGN_SE } from '../../../../software/bismark/align/main.nf' addParams( options: [ publish_dir:'test_single_end' ] )
include { BISMARK_ALIGN as BISMARK_ALIGN_PE } from '../../../../software/bismark/align/main.nf' addParams( options: [ publish_dir:'test_paired_end' ] ) include { BISMARK_ALIGN as BISMARK_ALIGN_PE } from '../../../../software/bismark/align/main.nf' addParams( options: [ publish_dir:'test_paired_end' ] )
@ -16,10 +16,10 @@ workflow test_bismark_align_single_end {
[ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true) ] ] [ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true) ] ]
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) ) BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_ALIGN_SE ( BISMARK_ALIGN_SE (
input, input,
BISMARK_GENOME_PREPARATION.out.index BISMARK_GENOMEPREPARATION.out.index
) )
} }
@ -34,9 +34,9 @@ workflow test_bismark_align_paired_end {
file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ] file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ]
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) ) BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_ALIGN_PE ( BISMARK_ALIGN_PE (
input, input,
BISMARK_GENOME_PREPARATION.out.index BISMARK_GENOMEPREPARATION.out.index
) )
} }

View file

@ -1,10 +0,0 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { BISMARK_GENOME_PREPARATION } from '../../../../software/bismark/genome_preparation/main.nf' addParams( options: [:] )
workflow test_bismark_genome_preparation {
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
}

View file

@ -0,0 +1,10 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { BISMARK_GENOMEPREPARATION } from '../../../../software/bismark/genomepreparation/main.nf' addParams( options: [:] )
workflow test_bismark_genomepreparation {
BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
}

View file

@ -1,8 +1,8 @@
- name: Run bismark_genome_preparation test workflow - name: Run bismark_genomepreparation test workflow
command: nextflow run ./tests/software/bismark/genome_preparation -entry test_bismark_genome_preparation -c tests/config/nextflow.config command: nextflow run ./tests/software/bismark/genomepreparation -entry test_bismark_genomepreparation -c tests/config/nextflow.config
tags: tags:
- bismark - bismark
- bismark_genome_preparation - bismark_genomepreparation
files: files:
- path: ./output/bismark/BismarkIndex/test_genome.fasta - path: ./output/bismark/BismarkIndex/test_genome.fasta
md5sum: 6e9fe4042a72f2345f644f239272b7e6 md5sum: 6e9fe4042a72f2345f644f239272b7e6

View file

@ -1,20 +0,0 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { BISMARK_GENOME_PREPARATION } from '../../../../software/bismark/genome_preparation/main.nf' addParams( options: [:] )
include { BISMARK_METHYLATION_EXTRACTOR } from '../../../../software/bismark/methylation_extractor/main.nf' addParams( options: [:] )
workflow test_bismark_methylation_extractor {
def input = []
input = [ [ id:'test', single_end:false ], // meta map
[ file("${launchDir}/tests/data/genomics/sarscov2/bam/test_methylated_paired_end.bam", checkIfExists: true) ] ]
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_METHYLATION_EXTRACTOR (
input,
BISMARK_GENOME_PREPARATION.out.index
)
}

View file

@ -0,0 +1,20 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { BISMARK_GENOMEPREPARATION } from '../../../../software/bismark/genomepreparation/main.nf' addParams( options: [:] )
include { BISMARK_METHYLATIONEXTRACTOR } from '../../../../software/bismark/methylationextractor/main.nf' addParams( options: [:] )
workflow test_bismark_methylationextractor {
def input = []
input = [ [ id:'test', single_end:false ], // meta map
[ file("${launchDir}/tests/data/genomics/sarscov2/bam/test_methylated_paired_end.bam", checkIfExists: true) ] ]
BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_METHYLATIONEXTRACTOR (
input,
BISMARK_GENOMEPREPARATION.out.index
)
}

View file

@ -1,8 +1,8 @@
- name: Run bismark methylation extractor test workflow - name: Run bismark methylation extractor test workflow
command: nextflow run ./tests/software/bismark/methylation_extractor -entry test_bismark_methylation_extractor -c tests/config/nextflow.config command: nextflow run ./tests/software/bismark/methylationextractor -entry test_bismark_methylationextractor -c tests/config/nextflow.config
tags: tags:
- bismark - bismark
- bismark_methylation_extractor - bismark_methylationextractor
files: files:
- path: output/bismark/CHG_OB_test_methylated_paired_end.txt.gz - path: output/bismark/CHG_OB_test_methylated_paired_end.txt.gz
- path: output/bismark/CHG_OT_test_methylated_paired_end.txt.gz - path: output/bismark/CHG_OT_test_methylated_paired_end.txt.gz

View file

@ -2,10 +2,10 @@
nextflow.enable.dsl = 2 nextflow.enable.dsl = 2
include { BISMARK_GENOME_PREPARATION } from '../../../../software/bismark/genome_preparation/main.nf' addParams( options: [:] ) include { BISMARK_GENOMEPREPARATION } from '../../../../software/bismark/genomepreparation/main.nf' addParams( options: [:] )
include { BISMARK_ALIGN } from '../../../../software/bismark/align/main.nf' addParams( options: [:] ) include { BISMARK_ALIGN } from '../../../../software/bismark/align/main.nf' addParams( options: [:] )
include { BISMARK_DEDUPLICATE } from '../../../../software/bismark/deduplicate/main.nf' addParams( options: [:] ) include { BISMARK_DEDUPLICATE } from '../../../../software/bismark/deduplicate/main.nf' addParams( options: [:] )
include { BISMARK_METHYLATION_EXTRACTOR } from '../../../../software/bismark/methylation_extractor/main.nf' addParams( options: [:] ) include { BISMARK_METHYLATIONEXTRACTOR } from '../../../../software/bismark/methylationextractor/main.nf' addParams( options: [:] )
include { BISMARK_REPORT } from '../../../../software/bismark/report/main.nf' addParams( options: [:] ) include { BISMARK_REPORT } from '../../../../software/bismark/report/main.nf' addParams( options: [:] )
workflow test_bismark_report { workflow test_bismark_report {
@ -15,15 +15,15 @@ workflow test_bismark_report {
[ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true), [ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true),
file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ] file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ]
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) ) BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_ALIGN ( input, BISMARK_GENOME_PREPARATION.out.index ) BISMARK_ALIGN ( input, BISMARK_GENOMEPREPARATION.out.index )
BISMARK_DEDUPLICATE ( BISMARK_ALIGN.out.bam ) BISMARK_DEDUPLICATE ( BISMARK_ALIGN.out.bam )
BISMARK_METHYLATION_EXTRACTOR ( BISMARK_DEDUPLICATE.out.bam, BISMARK_GENOME_PREPARATION.out.index ) BISMARK_METHYLATIONEXTRACTOR ( BISMARK_DEDUPLICATE.out.bam, BISMARK_GENOMEPREPARATION.out.index )
BISMARK_REPORT ( BISMARK_REPORT (
BISMARK_ALIGN.out.report BISMARK_ALIGN.out.report
.join(BISMARK_DEDUPLICATE.out.report) .join(BISMARK_DEDUPLICATE.out.report)
.join(BISMARK_METHYLATION_EXTRACTOR.out.report) .join(BISMARK_METHYLATIONEXTRACTOR.out.report)
.join(BISMARK_METHYLATION_EXTRACTOR.out.mbias) .join(BISMARK_METHYLATIONEXTRACTOR.out.mbias)
) )
} }

View file

@ -2,10 +2,10 @@
nextflow.enable.dsl = 2 nextflow.enable.dsl = 2
include { BISMARK_GENOME_PREPARATION } from '../../../../software/bismark/genome_preparation/main.nf' addParams( options: [:] ) include { BISMARK_GENOMEPREPARATION } from '../../../../software/bismark/genomepreparation/main.nf' addParams( options: [:] )
include { BISMARK_ALIGN } from '../../../../software/bismark/align/main.nf' addParams( options: [:] ) include { BISMARK_ALIGN } from '../../../../software/bismark/align/main.nf' addParams( options: [:] )
include { BISMARK_DEDUPLICATE } from '../../../../software/bismark/deduplicate/main.nf' addParams( options: [:] ) include { BISMARK_DEDUPLICATE } from '../../../../software/bismark/deduplicate/main.nf' addParams( options: [:] )
include { BISMARK_METHYLATION_EXTRACTOR } from '../../../../software/bismark/methylation_extractor/main.nf' addParams( options: [:] ) include { BISMARK_METHYLATIONEXTRACTOR } from '../../../../software/bismark/methylationextractor/main.nf' addParams( options: [:] )
include { BISMARK_SUMMARY } from '../../../../software/bismark/summary/main.nf' addParams( options: [:] ) include { BISMARK_SUMMARY } from '../../../../software/bismark/summary/main.nf' addParams( options: [:] )
workflow test_bismark_summary { workflow test_bismark_summary {
@ -15,16 +15,16 @@ workflow test_bismark_summary {
[ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true), [ file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_1.fastq.gz", checkIfExists: true),
file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ] file("${launchDir}/tests/data/genomics/sarscov2/fastq/test_methylated_2.fastq.gz", checkIfExists: true) ] ]
BISMARK_GENOME_PREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) ) BISMARK_GENOMEPREPARATION ( file("${launchDir}/tests/data/genomics/sarscov2/fasta/test_genome.fasta", checkIfExists: true) )
BISMARK_ALIGN ( input, BISMARK_GENOME_PREPARATION.out.index ) BISMARK_ALIGN ( input, BISMARK_GENOMEPREPARATION.out.index )
BISMARK_DEDUPLICATE ( BISMARK_ALIGN.out.bam ) BISMARK_DEDUPLICATE ( BISMARK_ALIGN.out.bam )
BISMARK_METHYLATION_EXTRACTOR ( BISMARK_DEDUPLICATE.out.bam, BISMARK_GENOME_PREPARATION.out.index ) BISMARK_METHYLATIONEXTRACTOR ( BISMARK_DEDUPLICATE.out.bam, BISMARK_GENOMEPREPARATION.out.index )
BISMARK_SUMMARY ( BISMARK_SUMMARY (
BISMARK_ALIGN.out.bam.collect{ meta, bam -> bam }, BISMARK_ALIGN.out.bam.collect{ meta, bam -> bam },
BISMARK_ALIGN.out.report.collect{ meta, report -> report }, BISMARK_ALIGN.out.report.collect{ meta, report -> report },
BISMARK_DEDUPLICATE.out.report.collect{ meta, bam -> bam }, BISMARK_DEDUPLICATE.out.report.collect{ meta, bam -> bam },
BISMARK_METHYLATION_EXTRACTOR.out.report.collect{ meta, report -> report }, BISMARK_METHYLATIONEXTRACTOR.out.report.collect{ meta, report -> report },
BISMARK_METHYLATION_EXTRACTOR.out.mbias.collect{ meta, mbias -> mbias } BISMARK_METHYLATIONEXTRACTOR.out.mbias.collect{ meta, mbias -> mbias }
) )
} }