mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
58134cb929
* Initialise chromap module * Revert "Initialise chromap module" This reverts commit 47c67ae231a6f221ef5b9b7b444b583b5406852b. * Remake chromap base files with new layout * Copy chromap * Copy index * Add compression * Update padding * Update container * Update chromap input test data * Add chromap chromap tests * Add padding * Update comment * update yaml file * Remove TODOs * Add fasta input to yaml * Update YAML * Remove comment, update container * Remove comments * Import Chromap index * Update test.yml * Fix read input * Update test.yml * Add bcftools/concat module. (#641) * draft for bcftools modules [ci skip] * initial test for bcftools concat * Update the params for testing * fix tests * Accomodate code review [ci skip] Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update the meta file and open PR for review * Update the keyword * Update the tags for module [ci skip[ * add threads Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * add module for dragonflye (#633) * add module for dragonflye * fix tests for dragonflye * Update test.yml * Update meta.yml * Update main.nf * Update main.nf * Update modules/dragonflye/meta.yml Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * update typos. change quote from ' to ". (#652) * Add bcftools/norm module (#655) * Initial draft [ci skip] * trigger first test * update output file path * Tests passing * finishing touches for meta.yml and update checksum * tweak checksum * add threads to the module * skip version info for matching test md5sum [ci skip] * Add ref fasta and finalize the module Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * Expansionhunter (#666) Please enter the commit message for your changes. Lines starting * adds expansionhunter module Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> * Update test.yml (#668) * Specify in guidelines one should split CPUs when module has n > 1 tool (#660) * Specify more guidelines on input channels * Linting * Updates based on code review * Update README.md * Fix broken sentence * Describe CPU splitting * Update README.md Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * More CPU examples Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * Add dsh-bio export-segments module (#631) Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * update: `BWA/ALN` (#653) * Specify more guidelines on input channels * Linting * Updates based on code review * Update README.md * Fix broken sentence * Remove reads from output channel following module guidelines. Should do a .join() based on $meta, to reassociate. Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> * Update seqwish reported version to match bioconda version. (#678) * Bbmap index (#683) BBMap index module * Initialise chromap module * Revert "Initialise chromap module" This reverts commit 47c67ae231a6f221ef5b9b7b444b583b5406852b. * Remove unnecessary files * Remove unnecessary files * Update modules/chromap/index/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update modules/chromap/index/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update modules/chromap/chromap/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update tests/modules/chromap/chromap/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update tests/modules/chromap/chromap/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update tests/modules/chromap/chromap/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Update modules/chromap/index/main.nf Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com> * Remove pytest_software.yml * Apply suggestions from code review Co-authored-by: Abhinav Sharma <abhi18av@users.noreply.github.com> Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: Robert A. Petit III <robbie.petit@gmail.com> Co-authored-by: Gregor Sturm <mail@gregor-sturm.de> Co-authored-by: JIANHONG OU <jianhong@users.noreply.github.com> Co-authored-by: Anders Jemt <jemten@users.noreply.github.com> Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Michael L Heuer <heuermh@acm.org> Co-authored-by: Daniel Lundin <daniel.lundin@lnu.se> Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
40 lines
1.4 KiB
Text
40 lines
1.4 KiB
Text
// Import generic module functions
|
|
include { initOptions; saveFiles; getSoftwareName } from './functions'
|
|
|
|
params.options = [:]
|
|
options = initOptions(params.options)
|
|
|
|
def VERSION = 0.1 // No version information printed
|
|
|
|
process CHROMAP_INDEX {
|
|
tag '$fasta'
|
|
label 'process_medium'
|
|
publishDir "${params.outdir}",
|
|
mode: params.publish_dir_mode,
|
|
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:[:], publish_by_meta:[]) }
|
|
|
|
conda (params.enable_conda ? "bioconda::chromap=0.1 bioconda::samtools=1.13" : null)
|
|
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
|
|
container "https://depot.galaxyproject.org/singularity/mulled-v2-1f09f39f20b1c4ee36581dc81cc323c70e661633:2cad7c5aa775241887eff8714259714a39baf016-0"
|
|
} else {
|
|
container "quay.io/biocontainers/mulled-v2-1f09f39f20b1c4ee36581dc81cc323c70e661633:2cad7c5aa775241887eff8714259714a39baf016-0"
|
|
}
|
|
|
|
input:
|
|
path fasta
|
|
|
|
output:
|
|
path "*.index" , emit: index
|
|
path "*.version.txt", emit: version
|
|
|
|
script:
|
|
def software = getSoftwareName(task.process)
|
|
def prefix = fasta.baseName
|
|
"""
|
|
chromap -i $options.args \\
|
|
-t $task.cpus \\
|
|
-r $fasta \\
|
|
-o ${prefix}.index
|
|
echo "$VERSION" > ${software}.version.txt
|
|
"""
|
|
}
|