Skip to content

Commit

Permalink
reverting select_first
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiernan committed Sep 23, 2024
1 parent 80a07d6 commit f6b50b7
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tasks/skylab/H5adUtils.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ task OptimusH5adGeneration {
--counting_mode ~{counting_mode} \
--expected_cells ~{expected_cells}

if [[ -n "~{gex_nhash_id}" ]]; then
mv library_metrics.csv ~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv
else
mv library_metrics.csv ~{input_id}_gex_library_metrics.csv
fi
mv library_metrics.csv ~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv

>>>

Expand All @@ -120,7 +116,7 @@ task OptimusH5adGeneration {

output {
File h5ad_output = "~{input_id}.h5ad"
File library_metrics = select_first(["~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv", "~{input_id}_gex_library_metrics.csv"])
File library_metrics = "~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv"
}
}

Expand Down Expand Up @@ -210,11 +206,8 @@ task SingleNucleusOptimusH5adOutput {
--counting_mode ~{counting_mode} \
--expected_cells ~{expected_cells}

if [[ -n "~{gex_nhash_id}" ]]; then
mv library_metrics.csv ~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv
else
mv library_metrics.csv ~{input_id}_gex_library_metrics.csv
fi

mv library_metrics.csv ~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv

>>>
runtime {
Expand All @@ -228,7 +221,7 @@ task SingleNucleusOptimusH5adOutput {

output {
File h5ad_output = "~{input_id}.h5ad"
File library_metrics = select_first(["~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv", "~{input_id}_gex_library_metrics.csv"])
File library_metrics = "~{input_id}_~{gex_nhash_id}_gex_library_metrics.csv"
}
}

Expand Down

0 comments on commit f6b50b7

Please sign in to comment.