-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add StableLift as submodule * Add StableLift module * Update template to support stablelift * Allow StableLift as selectable pipeline * Update methods to handle StableLiftsSNV * Update StableLift name to StableLiftsSNV * Update name to StableLiftsSNV * Add StableLiftsSNV to pipeline selector * Update params to input StableLift rf models * Add stablelift version to log * Add calls to stablelift in metapipeline_DNA * Add default.config * Add module to create StableLift YAML * Update type for param * Add mode saving for StableLift * Rename StableLift workflow * Add StableLift process * Add workflow for StableLift * Add renaming to tool name * Simulate param expansion from StableLift for validation * Add exception to remove BCFtools-Intersect output from StableLift * Output additional params needed for Stablelift * Update params in Stablelift process * Add placeholder NFTest case * Update batch test to include StableLift * Update CHANGELOG * Remove release date from unreleased section * Remove commented code
- Loading branch information
1 parent
16035db
commit 668815f
Showing
17 changed files
with
414 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,6 @@ | |
[submodule "external/pipeline-call-SRC"] | ||
path = external/pipeline-call-SRC | ||
url = [email protected]:uclahs-cds/pipeline-call-SRC.git | ||
[submodule "external/pipeline-StableLift"] | ||
path = external/pipeline-StableLift | ||
url = [email protected]:uclahs-cds/pipeline-StableLift.git |
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
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
Submodule pipeline-StableLift
added at
407aaa
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,40 @@ | ||
import org.yaml.snakeyaml.Yaml | ||
import org.yaml.snakeyaml.Yaml | ||
/* | ||
* Create input YAML file for the StableLift pipeline. | ||
* | ||
* Input: | ||
* sample_info: A Map object containing sample information | ||
* | ||
* Output: | ||
* @return A tuple of 4 items, inlcuding the sample_id and input_yaml and rf model and tool | ||
*/ | ||
process create_YAML_StableLift { | ||
publishDir "${params.output_dir}/intermediate/${task.process.replace(':', '/')}-${params.patient}/${sample_id}", | ||
pattern: 'stablelift_input.yaml', | ||
mode: 'copy' | ||
|
||
input: | ||
val(sample_info) | ||
|
||
output: | ||
tuple val(sample_id), path(input_yaml), val(run_model), val(sample_info.tool), emit: stablelift_input | ||
|
||
exec: | ||
input_yaml = 'stablelift_input.yaml' | ||
|
||
sample_id = "${sample_info.sample}-${sample_info.tool}" as String | ||
|
||
input_map = [ | ||
'sample_id': sample_id, | ||
'input': [ | ||
'vcf': sample_info.path | ||
] | ||
] | ||
|
||
Map all_models = params["StableLift"].stablelift_models | ||
run_model = all_models[params["StableLift"].liftover_direction][sample_info.tool] | ||
|
||
Yaml yaml = new Yaml() | ||
yaml.dump(input_map, new FileWriter("${task.workDir}/${input_yaml}")) | ||
} |
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,14 @@ | ||
// EXECUTION SETTINGS AND GLOBAL DEFAULTS | ||
|
||
// External config files import. DO NOT MODIFY THESE LINES! | ||
includeConfig "${projectDir}/config/default.config" | ||
includeConfig "${projectDir}/config/methods.config" | ||
includeConfig "${projectDir}/nextflow.config" | ||
|
||
// Inputs/parameters of the pipeline | ||
params { | ||
|
||
} | ||
|
||
// Setup the pipeline config. DO NOT REMOVE THIS LINE! | ||
methods.setup() |
Oops, something went wrong.