Skip to content
Snippets Groups Projects
Commit 14de39c5 authored by cedrick's avatar cedrick
Browse files

removed bam.bai extension in samtools, changed in to just .bai

parent 5d2c1b22
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,7 @@ task FilterShortReadsBam {
input {
File bamFile
String outputPathBam
String outputPathBamIndex
String dockerImage = "quay.io/biocontainers/samtools:1.8--h46bd0b3_5"
}
......@@ -379,14 +380,13 @@ task FilterShortReadsBam {
mkdir -p "$(dirname ~{outputPathBam})"
samtools view -h ~{bamFile} | \
awk 'length($10) > 30 || $1 ~/^@/' | \
samtools view -bS -> ~{outputPathBam}
samtools index ~{outputPathBam}
samtools view -bS -> ~{outputPathBam}
samtools index ~{outputPathBam} ~{outputPathBamIndex}
}
output {
File filteredBam = outputPathBam
File filteredBamIndex = outputPathBam + ".bai"
File filteredBamIndex = outputPathBamIndex
}
runtime {
......
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