-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f60fa59
commit 375bc7e
Showing
8 changed files
with
221 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version 1.0 | ||
|
||
|
||
task cat { | ||
input { | ||
Array[File] files | ||
String output_filename = "concatenated" | ||
Int ncpus | ||
Int ramGB | ||
String disks | ||
} | ||
|
||
command { | ||
cat \ | ||
~{sep=" " files} \ | ||
> ~{output_filename} | ||
} | ||
|
||
output { | ||
File concatenated = output_filename | ||
} | ||
|
||
runtime { | ||
cpu: ncpus | ||
memory: "~{ramGB} GB" | ||
disks: disks | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version 1.0 | ||
|
||
|
||
task decompress { | ||
input { | ||
File input_file | ||
String output_filename = "out" | ||
Int ncpus | ||
Int ramGB | ||
String disks | ||
} | ||
|
||
command { | ||
gzip \ | ||
-d \ | ||
-c \ | ||
~{input_file} \ | ||
> ~{output_filename} | ||
} | ||
|
||
output { | ||
File out = output_filename | ||
} | ||
|
||
runtime { | ||
cpu: ncpus | ||
memory: "~{ramGB} GB" | ||
disks: disks | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
version 1.0 | ||
|
||
|
||
task make_genome_pbam { | ||
input { | ||
File bam | ||
File reference_genome | ||
Int ncpus | ||
Int ramGB | ||
String disks | ||
} | ||
|
||
String bam_base = basename(bam, ".bam") | ||
|
||
command { | ||
makepBAM_genome.sh \ | ||
~{bam} \ | ||
~{reference_genome} | ||
} | ||
|
||
output { | ||
File out = "~{bam_base}.sorted.p.bam" | ||
} | ||
|
||
runtime { | ||
cpu: ncpus | ||
memory: "~{ramGB} GB" | ||
disks: disks | ||
} | ||
} | ||
|
||
task make_transcriptome_pbam { | ||
input { | ||
File bam | ||
File reference_genome | ||
File reference_transcriptome | ||
File reference_annotation | ||
Int ncpus | ||
Int ramGB | ||
String disks | ||
} | ||
|
||
String bam_base = basename(bam, ".bam") | ||
|
||
command { | ||
makepBAM_transcriptome.sh \ | ||
~{bam} \ | ||
~{reference_genome} \ | ||
~{reference_transcriptome} \ | ||
~{reference_annotation} | ||
} | ||
|
||
output { | ||
File out = "~{bam_base}.p.bam" | ||
} | ||
|
||
runtime { | ||
cpu: ncpus | ||
memory: "~{ramGB} GB" | ||
disks: disks | ||
} | ||
} |