Skip to content
Snippets Groups Projects
Commit f22018df authored by Cats's avatar Cats
Browse files

link instead of merge if one bam file

parent e1a70e6e
No related branches found
No related tags found
1 merge request!8Run time settings and additional adjustments
......@@ -102,4 +102,17 @@ task appendToStringArray {
runtime {
memory: 1
}
}
task createLink {
File inputFile
String outputPath
command {
ln -sf ${inputFile} ${outputPath}
}
output {
File link = outputPath
}
}
\ No newline at end of file
......@@ -21,7 +21,12 @@ task Merge {
command {
set -e -o pipefail
${preCommand}
samtools merge ${outputBamPath} ${sep=' ' bamFiles}
if [ ${length(bamFiles)} -gt 1 ]
then
samtools merge ${outputBamPath} ${sep=' ' bamFiles}
else
ln -sf ${bamFiles} ${outputBamPath}
fi
}
output {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment