owlcollab / owltools

OWLTools
BSD 3-Clause "New" or "Revised" License
108 stars 33 forks source link

Fixed the null exception error in GetIdentifier #249

Closed yy20716 closed 6 years ago

yy20716 commented 6 years ago

This patch fixes the null exception error occured at GetIdentifier of the class OWLGraphWrapperExtended. It also included the codes for handling additional testcases discussed in this post. I also confirmed with the actual data used in the GO pipeline, where the initial exception error was occured.

owltools --log-warning  target/go-gaf.owl \
 --gaf target/groups/goa_cow_rna/goa_cow_rna.gaf \
 --createReport \
 --gaf-report-file target/groups/goa_cow_rna/goa_cow_rna-owltools-check.txt \
 --gaf-report-summary-file target/groups/goa_cow_rna/goa_cow_rna-summary.txt \
 --gaf-prediction-file target/groups/goa_cow_rna/goa_cow_rna-prediction.gaf \
 --gaf-prediction-report-file target/groups/goa_cow_rna/goa_cow_rna-prediction-report.txt \
 --gaf-validation-unsatisfiable-module target/groups/goa_cow_rna/goa_cow_rna-incoherent.owl \
 --experimental-gaf-prediction-file target/groups/goa_cow_rna/goa_cow_rna-prediction-experimental.gaf \
 --experimental-gaf-prediction-report-file target/groups/goa_cow_rna/goa_cow_rna-prediction-experimental-report.txt \
 --gaf-run-checks || echo 'errors found'