Skip to content

Commit

Permalink
rewrite gpi path to use provide GPI if provided, and create if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Sep 13, 2024
1 parent a0e6947 commit 840a195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 840a195

Please sign in to comment.