Skip to content

Commit ec234ae

Browse files
authored
Switch PRS wrapper "risk" output to HIGH/NOT_HIGH string instead of boolean (#85)
1 parent 58c5b07 commit ec234ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ImputationPipeline/PRSWrapper.wdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ task SelectValuesOfInterest {
110110
adjusted_score <- (score %>% pull(adjusted_score))[[1]]
111111
percentile <- (score %>% pull(percentile))[[1]]
112112
113-
result <- tibble(sample_id = "~{sample_id}", ~{condition_name}_raw = raw_score, ~{condition_name}_adjusted = adjusted_score, ~{condition_name}_high = (percentile > ~{threshold}), ~{condition_name}_percentile = percentile)
113+
result <- tibble(sample_id = "~{sample_id}", ~{condition_name}_raw = raw_score, ~{condition_name}_adjusted = adjusted_score, ~{condition_name}_percentile = percentile, ~{condition_name}_risk = ifelse(percentile > ~{threshold}, "HIGH", "NOT_HIGH"))
114114
write_csv(result, "results.csv")
115115
116116
EOF
@@ -134,7 +134,7 @@ task CreateUnscoredResult {
134134
}
135135
136136
command <<<
137-
echo "sample_id, ~{condition_name}_raw, ~{condition_name}_adjusted, ~{condition_name}_high, ~{condition_name}_percentile" > results.csv
137+
echo "sample_id, ~{condition_name}_raw, ~{condition_name}_adjusted, ~{condition_name}_percentile", ~{condition_name}_risk > results.csv
138138
echo "~{sample_id}, NA, NA, NA, NA" >> results.csv
139139
>>>
140140

0 commit comments

Comments
 (0)