mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 14:13:09 +00:00
a0443e2c54
* Update main.nf * Update meta.yml * Re-add logos as not staged in a way that works with MultiQC config files * Update main.nf * Remove now unnecessary input channel * Remove unused channel from tests * Update hAMRonization to 1.1.1 and add hAMRonization farGene * Fix hamronizatio ntests * Prettier * Fix fargene linting * Correct file * Fix fargene output * Apply suggestions from code review Co-authored-by: Jasmin F <73216762+jasmezz@users.noreply.github.com> * Fix summarise tests * Prettier * Fix incorrect quotes in tags Co-authored-by: Jasmin F <73216762+jasmezz@users.noreply.github.com>
36 lines
882 B
Text
36 lines
882 B
Text
process CELLRANGER_MKREF {
|
|
tag "$fasta"
|
|
label 'process_high'
|
|
|
|
if (params.enable_conda) {
|
|
exit 1, "Conda environments cannot be used when using the Cell Ranger tool. Please use docker or singularity containers."
|
|
}
|
|
container "nfcore/cellranger:7.0.0"
|
|
|
|
input:
|
|
path fasta
|
|
path gtf
|
|
val reference_name
|
|
|
|
output:
|
|
path "${reference_name}", emit: reference
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
"""
|
|
cellranger \\
|
|
mkref \\
|
|
--genome=$reference_name \\
|
|
--fasta=$fasta \\
|
|
--genes=$gtf
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
cellranger: \$(echo \$( cellranger --version 2>&1) | sed 's/^.*[^0-9]\\([0-9]*\\.[0-9]*\\.[0-9]*\\).*\$/\\1/' )
|
|
END_VERSIONS
|
|
"""
|
|
}
|