Skip to content

Commit

Permalink
Re-activate user selection of normal samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ericblanc20 committed Dec 19, 2022
1 parent 4617d3d commit d593208
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions snappy_pipeline/workflows/panel_of_normals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@
panel_of_normals:
tools: ['mutect2'] # REQUIRED - available: 'mutect2'
path_ngs_mapping: ../ngs_mapping # REQUIRED
size: 10
shuffle_seed: 1234567
# Configuration for mutect2
mutect2:
path_normals_list: null # Optional file listing libraries to include in panel
germline_resource: REQUIRED
# Java options
java_options: ' -Xmx16g '
Expand Down Expand Up @@ -162,6 +161,11 @@ class Mutect2StepPart(PanelOfNormalsStepPart):

def __init__(self, parent):
super().__init__(parent)
if self.config["mutect2"]["path_normals_list"]:
self.normal_libraries = []
with open(self.config["mutect2"]["path_normals_list"], "rt") as f:
for line in f:
self.normal_libraries.append(line.strip())

def check_config(self):
if self.name not in self.config["tools"]:
Expand Down

0 comments on commit d593208

Please sign in to comment.