Skip to content

Commit

Permalink
update pipestatmanager configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed Jan 25, 2021
1 parent 7257eca commit 4b66aa8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions pypiper/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,17 @@ def __init__(

# pipesatat setup
potential_namespace = getattr(self, "sample_name", self.name)

# don't force default pipestat_results_file value unless
# pipestat config not provided
if pipestat_config is None and pipestat_results_file is None:
pipestat_results_file = pipeline_filepath(
self, filename="pipestat_results.yaml")
self._pipestat_manager = PipestatManager(
namespace=pipestat_namespace or potential_namespace,
record_identifier=pipestat_record_id or potential_namespace,
schema_path=pipestat_schema,
results_file_path=pipestat_results_file or pipeline_filepath(
self, filename="pipestat_results.yaml"),
results_file_path=pipestat_results_file,
config=pipestat_config
)

Expand Down
2 changes: 1 addition & 1 deletion requirements/reqs-ngstk.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
pandas
pysam
yacman
yacman

0 comments on commit 4b66aa8

Please sign in to comment.