From 840a19564ac93f105bc905a0990749a052f9e16c Mon Sep 17 00:00:00 2001 From: Sierra Taylor Moxon Date: Fri, 13 Sep 2024 16:45:50 -0700 Subject: [PATCH] rewrite gpi path to use provide GPI if provided, and create if needed --- bin/validate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/validate.py b/bin/validate.py index abb479fc..9248870f 100755 --- a/bin/validate.py +++ b/bin/validate.py @@ -774,7 +774,9 @@ def produce(ctx, group, metadata_dir, gpad, gpad_gpi_output_version, ttl, target click.echo("temp_output_gaf_path: {}".format(temp_output_gaf_path)) click.echo("matching_gpi_path: {}".format(gpi)) - isoform_fixed_gaf = fix_pro_isoforms_in_gaf(end_gaf, gpi, ontology_graph, temp_output_gaf_path) + if matching_gpi_path is None: + matching_gpi_path = gpi + isoform_fixed_gaf = fix_pro_isoforms_in_gaf(end_gaf, matching_gpi_path, ontology_graph, temp_output_gaf_path) click.echo("isoform_fixed_gaf: {}".format(isoform_fixed_gaf)) final_output_gaf_path = os.path.join(os.path.split(end_gaf)[0], "{}.gaf".format(dataset))