Skip to content

Commit

Permalink
change schema_path to output_schema for pipestat config
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Nov 20, 2023
1 parent 0ca9bd1 commit 7d6cc5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions looper/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,13 @@ def _get_pipestat_configuration(self, sample_name=None, project_level=False):

for piface in pifaces:
# We must also obtain additional pipestat items from the pipeline author's piface
if "schema_path" in piface.data:
schema_path = expandpath(piface.data["schema_path"])
if "output_schema" in piface.data:
schema_path = expandpath(piface.data["output_schema"])
if not os.path.isabs(schema_path):
# Get path relative to the pipeline_interface
schema_path = os.path.join(
os.path.dirname(piface.pipe_iface_file), schema_path
)
pipestat_config_dict.update({"schema_path": schema_path})
if "pipeline_name" in piface.data:
pipestat_config_dict.update(
Expand Down
2 changes: 1 addition & 1 deletion tests/data/pipeline_interface1_sample_pipestat.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline_name: PIPELINE1
pipeline_type: sample
input_schema: https://schema.databio.org/pep/2.0.0.yaml
schema_path: pipestat_output_schema.yaml
output_schema: pipestat_output_schema.yaml
var_templates:
path: "{looper.piface_dir}/pipelines/pipeline1.py"
pre_submit:
Expand Down

0 comments on commit 7d6cc5f

Please sign in to comment.