Skip to content
Snippets Groups Projects
Unverified Commit cdcb3c06 authored by Jasper's avatar Jasper Committed by GitHub
Browse files

Merge pull request #239 from biowdl/BIOWDL-487

BIOWDL-487: Add pacbio bam2fastx tool.
parents d1922724 adac77e5
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,10 @@ This document is user facing. Please word the changes in such a way
that users understand how the changes affect the new version.
-->
version 5.0.0-dev
---------------------------
+ Add wdl file for pacbio's bam2fastx tool.
version 4.0.0
---------------------------
+ Picard MergeVcf now uses compression level 1 by default.
......
version 1.0
# Copyright (c) 2020 Sequencing Analysis Support Core - Leiden University Medical Center
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
task Bam2Fasta {
input {
File inputFile
File bamIndex
String outputPrefix
Int compressionLevel = 1
Boolean splitByBarcode = false
String? seqIdPrefix
String memory = "2G"
Int timeMinutes = 15
String dockerImage = "quay.io/biocontainers/bam2fastx:1.3.0--he1c1bb9_8"
}
command {
set -e
mkdir -p "$(dirname ~{outputPrefix})"
bam2fasta \
--output ~{outputPrefix} \
-c ~{compressionLevel} \
~{true="--split-barcodes" false="" splitByBarcode} \
~{"--seqid-prefix " + seqIdPrefix} \
~{inputFile}
}
output {
File fastaFile = outputPrefix + ".fasta.gz"
}
runtime {
memory: memory
time_minutes: timeMinutes
docker: dockerImage
}
parameter_meta {
# inputs
inputFile: {description: "The input pacbio bam file.", category: "required"}
bamIndex: {description: "The .pbi index for the input file.", category: "required"}
outputPrefix: {description: "Output directory path + output file prefix.", category: "required"}
compressionLevel: {description: "Gzip compression level [1-9]", category: "advanced"}
splitByBarcode: {description: "Split output into multiple fasta files, by barcode pairs.", category: "advanced"}
seqIdPrefix: {description: "Prefix for sequence IDs in headers.", category: "advanced"}
memory: {description: "The amount of memory available to the job.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
# outputs
fastaFile: {description: "The fasta output file."}
}
}
task Bam2Fastq {
input {
File inputFile
File bamIndex
String outputPrefix
Int compressionLevel = 1
Boolean splitByBarcode = false
String? seqIdPrefix
String memory = "2G"
Int timeMinutes = 15
String dockerImage = "quay.io/biocontainers/bam2fastx:1.3.0--he1c1bb9_8"
}
command {
set -e
mkdir -p "$(dirname ~{outputPrefix})"
bam2fastq \
--output ~{outputPrefix} \
-c ~{compressionLevel} \
~{true="--split-barcodes" false="" splitByBarcode} \
~{"--seqid-prefix " + seqIdPrefix} \
~{inputFile}
}
output {
File fastqFile = outputPrefix + ".fastq.gz"
}
runtime {
memory: memory
time_minutes: timeMinutes
docker: dockerImage
}
parameter_meta {
# inputs
inputFile: {description: "The input pacbio bam file.", category: "required"}
bamIndex: {description: "The .pbi index for the input file.", category: "required"}
outputPrefix: {description: "Output directory path + output file prefix.", category: "required"}
compressionLevel: {description: "Gzip compression level [1-9]", category: "advanced"}
splitByBarcode: {description: "Split output into multiple fastq files, by barcode pairs.", category: "advanced"}
seqIdPrefix: {description: "Prefix for sequence IDs in headers.", category: "advanced"}
memory: {description: "The amount of memory available to the job.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
# outputs
fastqFile: {description: "The fastq output file."}
}
}
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