Skip to content

Commit

Permalink
quick fix to make all basic unix commands submit to all.q
Browse files Browse the repository at this point in the history
  • Loading branch information
genomics-geek committed Oct 11, 2019
1 parent ed53cdb commit ccc27df
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
- Added task for tar
- Added support for slivar
- Increased default memory for FreeBayes
- Updated default queue for install command to all.q
- Updated default queue for basic unix commands to be all.q
134 changes: 134 additions & 0 deletions unix/commands.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ task wget {
input {
String url
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

String filename = basename(url)
Expand All @@ -19,12 +23,22 @@ task wget {
output {
File output_file = "~{filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task mkdir {
input {
String directory
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -34,13 +48,23 @@ task mkdir {
output {
String output_directory = "~{directory}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task mv {
input {
File input_file
String target
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -50,13 +74,23 @@ task mv {
output {
File output_file = "~{target}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task cp {
input {
File input_file
String target
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -66,6 +100,12 @@ task cp {
output {
File output_file = "~{target}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task Install {
Expand All @@ -74,7 +114,10 @@ task Install {
String mode = '755'
String target
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -87,6 +130,8 @@ task Install {

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

Expand All @@ -95,6 +140,10 @@ task UnZip {
File input_file
String ? userString
String output_filename = basename(input_file, ".gz")

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -104,6 +153,12 @@ task UnZip {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task BgZip {
Expand All @@ -114,6 +169,8 @@ task BgZip {
String output_filename = basename(input_file) + ".gz"

Array[String] modules = []

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}
Expand All @@ -135,6 +192,7 @@ task BgZip {
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
Expand All @@ -148,6 +206,8 @@ task Tabix {
String output_filename = input_file + ".tbi"

Array[String] modules = []

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}
Expand All @@ -169,6 +229,7 @@ task Tabix {
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
Expand All @@ -186,6 +247,8 @@ task CompressAndIndex {
String output_idx_filename = basename(input_file) + ".gz.tbi"

Array[String] modules = []

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}
Expand All @@ -212,6 +275,7 @@ task CompressAndIndex {
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
Expand All @@ -225,6 +289,10 @@ task cut {
String fields
String ? delimiter
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -234,6 +302,12 @@ task cut {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task sort {
Expand All @@ -242,6 +316,10 @@ task sort {
String output_filename

String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -251,6 +329,12 @@ task sort {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task cat {
Expand All @@ -260,6 +344,10 @@ task cat {

Array[String] ? input_files
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -269,13 +357,23 @@ task cat {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task sed {
input {
File input_file
String output_filename
String command

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -285,13 +383,23 @@ task sed {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task tar {
input {
Array[String] input_files
String output_filename
String userString = "-zcvf"

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -301,13 +409,23 @@ task tar {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task grep {
input {
File input_file
String output_filename
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -317,13 +435,23 @@ task grep {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

task zgrep {
input {
File input_file
String output_filename
String ? userString

String sge_queue = "all.q"
Float memory = 1
Int cpu = 1
}

command {
Expand All @@ -333,4 +461,10 @@ task zgrep {
output {
File output_file = "~{output_filename}"
}

runtime {
sge_queue: sge_queue
memory: memory + " GB"
cpu: cpu
}
}

0 comments on commit ccc27df

Please sign in to comment.