Skip to content

Commit

Permalink
bump STAR image
Browse files Browse the repository at this point in the history
  • Loading branch information
hpratt committed May 25, 2020
1 parent 7b2cc54 commit 88e3c48
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion workflow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "com.genomealmanac.rnaseq"
version = "1.1.5"
version = "1.1.6"
val artifactID = "rnaseq-workflow"

repositories {
Expand Down
7 changes: 4 additions & 3 deletions workflow/src/main/kotlin/workflow/task/Aligner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ data class AlignerParams (
val index: File,
val cores: Int = 1,
val ramGb: Int = 16,
val indexTarPrefix: String? = null
val indexTarPrefix: String? = null,
val minReadLength: Int = 20
)

data class AlignerInput (
Expand All @@ -34,7 +35,7 @@ fun WorkflowBuilder.alignTask(name: String, i: Publisher<AlignerInput>)
= this.task<AlignerInput, AlignerOutput>(name, i) {

val params = taskParams<AlignerParams>()
dockerImage = "genomealmanac/rnaseq-star:1.0.6"
dockerImage = "genomealmanac/rnaseq-star:1.1.1"
val prefix = "${input.name}"

output = AlignerOutput(
Expand All @@ -52,11 +53,11 @@ fun WorkflowBuilder.alignTask(name: String, i: Publisher<AlignerInput>)
-jar /app/star.jar \
--index ${params.index.dockerPath} \
--output-directory ${outputsDir} \
--ram-gb 16 \
--output-prefix ${input.name} \
--r1 ${input.repFile1.dockerPath} \
--cores ${params.cores} \
--ram-gb ${params.ramGb} \
--min-read-length ${params.minReadLength} \
${ if (params.indexTarPrefix !== null) "--index-tar-prefix ${params.indexTarPrefix}" else "" } \
${ if (input.pairedEnd) "--r2 ${input.repFile2!!.dockerPath}" else "" }
"""
Expand Down
6 changes: 4 additions & 2 deletions workflow/src/main/kotlin/workflow/task/Rsemquant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ data class RsemQuantParams(
val seed: Int? = null,
val cores: Int = 1,
val ramGb: Int = 16,
val indexTarPrefix: String? = null
val indexTarPrefix: String? = null,
val indexNamePrefix: String? = null
)

data class RsemQuantInput(
Expand All @@ -32,7 +33,7 @@ fun WorkflowBuilder.rsemquantTask(name: String, i: Publisher< RsemQuantInput>)
= this.task<RsemQuantInput, RsemQuantOutput>(name, i) {

val params = taskParams<RsemQuantParams>()
dockerImage = "genomealmanac/rnaseq-rsem:1.0.5"
dockerImage = "genomealmanac/rnaseq-rsem:1.0.6"
val prefix = "${input.repName}"

output = RsemQuantOutput(
Expand All @@ -52,6 +53,7 @@ fun WorkflowBuilder.rsemquantTask(name: String, i: Publisher< RsemQuantInput>)
--cores ${params.cores} \
--ram-gb ${params.ramGb} \
${ if (params.indexTarPrefix !== null) "--index-tar-prefix ${params.indexTarPrefix}" else "" } \
${ if (params.indexNamePrefix !== null) "--index-name-prefix ${params.indexNamePrefix}" else "" } \
${ if (params.seed !== null) "--seed ${params.seed}" else "" } \
${ if (input.pairedEnd) "--paired-end" else "" }
"""
Expand Down
2 changes: 1 addition & 1 deletion workflow/src/test/kotlin/workflow/AppTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class AppTests {
/* STAR task */
assertMD5(outputsDir.resolve("testrep1_anno.bam"), "1644cde899e6e71de60b669855e315bc")
assertMD5(outputsDir.resolve("testrep1_anno_flagstat.txt"), "87c78efa9ad0a76dec66ab5c8e8e7754")
assertMD5(outputsDir.resolve("testrep1_genome.bam"), "d4ad88115de000f4836e175b37287521")
assertThat(outputsDir.resolve("testrep1_genome.bam")).exists()
assertMD5(outputsDir.resolve("testrep1_genome_flagstat.txt"), "a96d66f579ad1d88239764e059fc2554")

/* signal generation task starting from FASTQs */
Expand Down

0 comments on commit 88e3c48

Please sign in to comment.