Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tasks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
biowdl
tasks
Commits
af929db9
Commit
af929db9
authored
2 years ago
by
Ruben Vorderman
Browse files
Options
Downloads
Patches
Plain Diff
Use the basename of the input file for index names
parent
4431b259
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biowdl.wdl
+5
-6
5 additions, 6 deletions
biowdl.wdl
bwa.wdl
+1
-1
1 addition, 1 deletion
bwa.wdl
with
6 additions
and
7 deletions
biowdl.wdl
+
5
−
6
View file @
af929db9
...
...
@@ -77,27 +77,27 @@ task InputConverter {
task IndexFastaFile {
input {
File inputFile
String outputDir = "."
String javaXmx = "2G"
String memory = "3GiB"
}
String outputFile = outputDir + "/" + basename(inputFile)
String outputFile = basename(inputFile)
# Capture .fa¸ .fna and .fasta
String outputDict = sub(outputFile, "\.fn?as?t?a?$", "") + ".dict"
# This executes both picard and samtools, so indexes are co-located in the same folder.
command <<<
set -e
mkdir -p ~{outputDir}
cp ~{inputFile} ~{outputFile}
picard -Xmx~{javaXmx} \
-XX:ParallelGCThreads=1 \
CreateSequenceDictionary \
REFERENCE=~{inputFile} \
OUTPUT="~{output
File}.d
ict"
OUTPUT="~{output
D
ict
}
"
samtools faidx ~{outputFile} --fai-idx ~{outputFile}.fai
>>>
output {
File outputFasta = outputFile
File outputFastaDict = output
File + ".d
ict
"
File outputFastaDict = output
D
ict
File outputFastaFai = outputFile + ".fai"
}
...
...
@@ -110,7 +110,6 @@ task IndexFastaFile {
parameter_meta {
# inputs
inputFile: {description: "The input fasta file.", category: "required"}
outputDir: {description: "Output directory path.", category: "advanced"}
javaXmx: {description: "The maximum memory available to the program. Should be lower than `memory` to accommodate JVM overhead.", category: "advanced"}
memory: {description: "The amount of memory available to the job.", category: "advanced"}
# outputs
...
...
This diff is collapsed.
Click to expand it.
bwa.wdl
+
1
−
1
View file @
af929db9
...
...
@@ -119,7 +119,7 @@ task Index {
input {
File fasta
}
String indexedFile =
"reference.
fasta
"
String indexedFile =
basename(
fasta
)
command {
set -e
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment