mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 12:43:09 +00:00
Add hifiasm version printing
This commit is contained in:
parent
390c835f9f
commit
b58233794b
2 changed files with 21 additions and 16 deletions
|
@ -4,33 +4,34 @@ include { initOptions; saveFiles; getSoftwareName } from './functions'
|
|||
params.options = [:]
|
||||
options = initOptions(params.options)
|
||||
|
||||
process FASTQC {
|
||||
tag "$meta.id"
|
||||
label 'process_medium'
|
||||
process HIFIASM {
|
||||
//tag "$meta.id"
|
||||
label 'process_high'
|
||||
publishDir "${params.outdir}",
|
||||
mode: params.publish_dir_mode,
|
||||
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) }
|
||||
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') } // publish_id:meta.id) }
|
||||
|
||||
conda (params.enable_conda ? "bioconda::fastqc=0.11.9" : null)
|
||||
conda (params.enable_conda ? "bioconda::hifiasm=0.14" : null)
|
||||
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
|
||||
container "https://depot.galaxyproject.org/singularity/fastqc:0.11.9--0"
|
||||
container "https://depot.galaxyproject.org/singularity/hifiasm:0.14--h8b12597_0"
|
||||
} else {
|
||||
container "quay.io/biocontainers/fastqc:0.11.9--0"
|
||||
container "quay.io/biocontainers/hifiasm:0.14--h8b12597_0"
|
||||
}
|
||||
|
||||
input:
|
||||
tuple val(meta), path(reads)
|
||||
/* input:
|
||||
tuple val(meta), path(reads) */
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.html"), emit: html
|
||||
tuple val(meta), path("*.zip") , emit: zip
|
||||
/* tuple val(meta), path("*.html"), emit: html
|
||||
tuple val(meta), path("*.zip") , emit: zip */
|
||||
path "*.version.txt" , emit: version
|
||||
|
||||
script:
|
||||
// Add soft-links to original FastQs for consistent naming in pipeline
|
||||
def software = getSoftwareName(task.process)
|
||||
def prefix = options.suffix ? "${meta.id}.${options.suffix}" : "${meta.id}"
|
||||
if (meta.single_end) {
|
||||
//def prefix = options.suffix ? "${meta.id}.${options.suffix}" : "${meta.id}"
|
||||
|
||||
/* if (meta.single_end) {
|
||||
"""
|
||||
[ ! -f ${prefix}.fastq.gz ] && ln -s $reads ${prefix}.fastq.gz
|
||||
fastqc $options.args --threads $task.cpus ${prefix}.fastq.gz
|
||||
|
@ -43,5 +44,9 @@ process FASTQC {
|
|||
fastqc $options.args --threads $task.cpus ${prefix}_1.fastq.gz ${prefix}_2.fastq.gz
|
||||
fastqc --version | sed -e "s/FastQC v//g" > ${software}.version.txt
|
||||
"""
|
||||
}
|
||||
} */
|
||||
|
||||
"""
|
||||
hifiasm --version > ${software}.version.txt || exit 0
|
||||
"""
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- name: hifiasm
|
||||
command: nextflow run ./tests/software/hifiasm/ -entry test_hifiasm_version -c tests/config/nextflow.config
|
||||
command: nextflow run ./tests/software/hifiasm -entry test_hifiasm_version -c tests/config/nextflow.config
|
||||
tags:
|
||||
- hifiasm
|
||||
- hifiasm_version
|
||||
files:
|
||||
- path: ./output/hifiasm/VERSION.txt
|
||||
- path: ./output/hifiasm/hifiasm.version.txt
|
||||
|
|
Loading…
Reference in a new issue