-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #522 from genomic-medicine-sweden/smncopynumber-up…
…date Fix samplenames in smncopynumbercaller
- Loading branch information
Showing
2 changed files
with
46 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
process RENAME_ALIGN_FILES { | ||
tag "$meta.id" | ||
label 'process_single' | ||
|
||
conda "conda-forge::coreutils=8.31" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/gnu-wget:1.18--0' : | ||
'biocontainers/gnu-wget:1.18--0' }" | ||
|
||
input: | ||
tuple val(meta), path(input) | ||
val(extension) | ||
|
||
output: | ||
path("*.{bam,bai}"), emit: output | ||
path "versions.yml", emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
""" | ||
ln -s $input ${meta.sample}.${extension} | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
ln: \$(echo \$(ln --version 2>&1 | head -n 1 | cut -d ' ' -f4)) | ||
END_VERSIONS | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters