Skip to content
Snippets Groups Projects
Commit 6eaf2144 authored by van den Berg's avatar van den Berg
Browse files

Ensure that the index and bamfiles are in the same folder

parent afac85df
No related branches found
No related tags found
No related merge requests found
...@@ -91,12 +91,25 @@ task Bam2Fastq { ...@@ -91,12 +91,25 @@ task Bam2Fastq {
command { command {
set -e set -e
mkdir -p "$(dirname ~{outputPrefix})" mkdir -p "$(dirname ~{outputPrefix})"
# Localise the bam and pbi files so they are next to each other in the
# current folder
bamfiles=""
for bamfile in ~{sep=" " bam};do
ln $bamfile .
bamfiles=$bamfiles" $(basename $bamfile)"
done
for bamindex in ~{sep=" " bamIndex}; do
ln $bamindex .
done
bam2fastq \ bam2fastq \
--output ~{outputPrefix} \ --output ~{outputPrefix} \
-c ~{compressionLevel} \ -c ~{compressionLevel} \
~{true="--split-barcodes" false="" splitByBarcode} \ ~{true="--split-barcodes" false="" splitByBarcode} \
~{"--seqid-prefix " + seqIdPrefix} \ ~{"--seqid-prefix " + seqIdPrefix} \
~{sep=" " bam} $bamfiles
} }
output { 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