mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Merge branch 'master' into haplocheck
This commit is contained in:
commit
d037f0ec97
8 changed files with 58 additions and 15 deletions
|
@ -9,7 +9,7 @@ process BCFTOOLS_ROH {
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(vcf), path(tbi)
|
tuple val(meta), path(vcf), path(tbi)
|
||||||
path af_file
|
tuple path(af_file), path(af_file_tbi)
|
||||||
path genetic_map
|
path genetic_map
|
||||||
path regions_file
|
path regions_file
|
||||||
path samples_file
|
path samples_file
|
||||||
|
|
|
@ -23,6 +23,9 @@ input:
|
||||||
- af_file:
|
- af_file:
|
||||||
type: file
|
type: file
|
||||||
description: "Read allele frequencies from a tab-delimited file containing the columns: CHROM\tPOS\tREF,ALT\tAF."
|
description: "Read allele frequencies from a tab-delimited file containing the columns: CHROM\tPOS\tREF,ALT\tAF."
|
||||||
|
- af_file_tbi:
|
||||||
|
type: file
|
||||||
|
description: "tbi index of af_file."
|
||||||
- genetic_map:
|
- genetic_map:
|
||||||
type: file
|
type: file
|
||||||
description: "Genetic map in the format required also by IMPUTE2."
|
description: "Genetic map in the format required also by IMPUTE2."
|
||||||
|
|
|
@ -7,7 +7,8 @@ process MULTIQC {
|
||||||
'quay.io/biocontainers/multiqc:1.12--pyhdfd78af_0' }"
|
'quay.io/biocontainers/multiqc:1.12--pyhdfd78af_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
path multiqc_files
|
path multiqc_files, stageAs: "?/*"
|
||||||
|
tuple path(multiqc_config), path(multiqc_logo)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
path "*multiqc_report.html", emit: report
|
path "*multiqc_report.html", emit: report
|
||||||
|
@ -20,8 +21,13 @@ process MULTIQC {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
|
def config = multiqc_config ? "--config $multiqc_config" : ''
|
||||||
"""
|
"""
|
||||||
multiqc -f $args .
|
multiqc \\
|
||||||
|
--force \\
|
||||||
|
$config \\
|
||||||
|
$args \\
|
||||||
|
.
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -17,6 +17,14 @@ input:
|
||||||
type: file
|
type: file
|
||||||
description: |
|
description: |
|
||||||
List of reports / files recognised by MultiQC, for example the html and zip output of FastQC
|
List of reports / files recognised by MultiQC, for example the html and zip output of FastQC
|
||||||
|
- multiqc_config:
|
||||||
|
type: file
|
||||||
|
description: Config yml for MultiQC
|
||||||
|
pattern: "*.{yml,yaml}"
|
||||||
|
- multiqc_logo:
|
||||||
|
type: file
|
||||||
|
description: Logo file for MultiQC
|
||||||
|
pattern: "*.{png}"
|
||||||
output:
|
output:
|
||||||
- report:
|
- report:
|
||||||
type: file
|
type: file
|
||||||
|
|
|
@ -10,7 +10,7 @@ workflow test_bcftools_roh {
|
||||||
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
||||||
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
||||||
|
|
||||||
af_file = []
|
af_file = [[],[]]
|
||||||
gen_map = []
|
gen_map = []
|
||||||
regions = []
|
regions = []
|
||||||
targets = []
|
targets = []
|
||||||
|
@ -25,7 +25,7 @@ workflow test_bcftools_roh_stub {
|
||||||
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
||||||
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true)]
|
||||||
|
|
||||||
af_file = []
|
af_file = [[],[]]
|
||||||
gen_map = []
|
gen_map = []
|
||||||
regions = []
|
regions = []
|
||||||
targets = []
|
targets = []
|
||||||
|
|
|
@ -2,15 +2,32 @@
|
||||||
|
|
||||||
nextflow.enable.dsl = 2
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
include { FASTQC } from '../../../modules/fastqc/main.nf'
|
include { FASTQC } from '../../../modules/fastqc/main.nf'
|
||||||
include { MULTIQC } from '../../../modules/multiqc/main.nf'
|
include { FASTQC as FASTQC2 } from '../../../modules/fastqc/main.nf'
|
||||||
|
include { MULTIQC } from '../../../modules/multiqc/main.nf'
|
||||||
|
|
||||||
workflow test_multiqc {
|
workflow test_multiqc {
|
||||||
input = [ [ id: 'test', single_end: false ],
|
input = [
|
||||||
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
|
[ id: 'test', single_end: false ],
|
||||||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
||||||
]
|
]
|
||||||
|
|
||||||
FASTQC ( input )
|
FASTQC ( input )
|
||||||
MULTIQC ( FASTQC.out.zip.collect { it[1] } )
|
MULTIQC ( FASTQC.out.zip.collect { it[1] }, [[],[]] )
|
||||||
|
}
|
||||||
|
|
||||||
|
workflow test_multiqc_fn_collision {
|
||||||
|
fqc_input = [
|
||||||
|
[ id: 'test', single_end: false ],
|
||||||
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
||||||
|
]
|
||||||
|
mqc_input = Channel.empty()
|
||||||
|
|
||||||
|
FASTQC ( fqc_input )
|
||||||
|
mqc_input = mqc_input.mix(FASTQC.out.zip.collect { it[1] })
|
||||||
|
|
||||||
|
FASTQC2 ( fqc_input )
|
||||||
|
mqc_input = mqc_input.mix(FASTQC2.out.zip.collect { it[1] })
|
||||||
|
|
||||||
|
MULTIQC ( mqc_input, [[],[]] )
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
process {
|
process {
|
||||||
|
|
||||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||||
|
withName: "FASTQC*" {
|
||||||
|
publishDir = [ enabled: false ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
- name: multiqc
|
- name: multiqc test_multiqc
|
||||||
command: nextflow run ./tests/modules/multiqc -entry test_multiqc -c ./tests/config/nextflow.config -c ./tests/modules/multiqc/nextflow.config
|
command: nextflow run ./tests/modules/multiqc -entry test_multiqc -c ./tests/config/nextflow.config -c ./tests/modules/multiqc/nextflow.config
|
||||||
|
tags:
|
||||||
|
- multiqc
|
||||||
|
files:
|
||||||
|
- path: output/multiqc/multiqc_report.html
|
||||||
|
|
||||||
|
- name: multiqc test_multiqc_fn_collision
|
||||||
|
command: nextflow run ./tests/modules/multiqc -entry test_multiqc_fn_collision -c ./tests/config/nextflow.config -c ./tests/modules/multiqc/nextflow.config
|
||||||
tags:
|
tags:
|
||||||
- multiqc
|
- multiqc
|
||||||
files:
|
files:
|
||||||
|
|
Loading…
Reference in a new issue