-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflows to add to or create library and sample tables based on …
…demultiplexing output (#507) This PR adds one new workflows: populate_library_and_sample_tables_from_flowcell populate library and sample tables with per-library-lane and per-sample (i.e. named references to one or more libraries) using existing demultiplexing output It also adds the same functionality of the above workflow as an optional step executed after demux by the existing demux_deplete workflow, if the input insert_demux_outputs_into_terra_tables=true, using outputs passed directly from demultiplexing rather than live table data These workflows rely on a new task, also added by this PR: tasks_terra.wdl::create_or_update_sample_tables
- Loading branch information
Showing
7 changed files
with
357 additions
and
37 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
pipes/WDL/workflows/populate_library_and_sample_tables_from_flowcell.wdl
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 | ||
|
||
import "../tasks/tasks_terra.wdl" as terra | ||
|
||
workflow populate_library_and_sample_tables_from_flowcell { | ||
meta { | ||
description: "Terra only: Populate per-library-lane and per-sample tables from existing demultiplexed flowcell output" | ||
author: "Broad Viral Genomics" | ||
email: "viral-ngs@broadinstitute.org" | ||
allowNestedInputs: true | ||
} | ||
|
||
input { | ||
String flowcell_run_id | ||
} | ||
|
||
# obtain runtime workspace info necessary to read or change data in | ||
# Terra tables of the workspace associated with a job | ||
call terra.check_terra_env | ||
|
||
if(check_terra_env.is_running_on_terra) { | ||
call terra.create_or_update_sample_tables { | ||
input: | ||
flowcell_run_id = flowcell_run_id, | ||
workspace_name = check_terra_env.workspace_name, | ||
workspace_namespace = check_terra_env.workspace_namespace, | ||
workspace_bucket = check_terra_env.workspace_bucket_path | ||
} | ||
} | ||
} |