2021-12-02 14:27:20 +00:00
|
|
|
process CELLRANGER_MKGTF {
|
|
|
|
tag "$gtf"
|
|
|
|
label 'process_low'
|
|
|
|
|
|
|
|
if (params.enable_conda) {
|
|
|
|
exit 1, "Conda environments cannot be used when using the Cell Ranger tool. Please use docker or singularity containers."
|
|
|
|
}
|
2022-01-25 18:58:22 +00:00
|
|
|
container "nfcore/cellranger:6.1.2"
|
2021-12-02 14:27:20 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
path gtf
|
|
|
|
|
|
|
|
output:
|
|
|
|
path "*.filtered.gtf", emit: gtf
|
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2021-12-02 14:27:20 +00:00
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
"""
|
|
|
|
cellranger \\
|
|
|
|
mkgtf \\
|
|
|
|
$gtf \\
|
|
|
|
${gtf.baseName}.filtered.gtf \\
|
|
|
|
$args
|
|
|
|
|
|
|
|
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
|
|
|
|
"""
|
|
|
|
}
|