mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
36 lines
881 B
Text
36 lines
881 B
Text
process CELLRANGER_MKREF {
|
|
tag 'mkref'
|
|
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:6.1.2"
|
|
|
|
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
|
|
"""
|
|
}
|