Skip to content

Commit 05c2487

Browse files
committed
strip problematic domain from is_allele_of
1 parent 17daea9 commit 05c2487

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎process.sh‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,24 @@ done
311311
wait
312312
check_robot_errors "module extraction"
313313

314+
# VFB uses 'is allele of' (GENO:0000408) more broadly than GENO's asserted domain
315+
# (GENO:0000481 'genomic feature') allows, so strip that ObjectPropertyDomain axiom from
316+
# the GENO module before it is loaded. Leaves the property declaration and all other axioms
317+
# intact; a no-op if the module doesn't contain the axiom.
318+
GENO_MODULE=geno.owl_module.owl
319+
if [ -f "$GENO_MODULE" ]; then
320+
echo "Removing 'is allele of' (GENO:0000408) domain assertion from $GENO_MODULE"
321+
run_robot remove --input "$GENO_MODULE" \
322+
--term http://purl.obolibrary.org/obo/GENO_0000408 \
323+
--axioms ObjectPropertyDomain \
324+
--preserve-structure false \
325+
-o "$GENO_MODULE.tmp.owl" \
326+
&& mv -v "$GENO_MODULE.tmp.owl" "$GENO_MODULE" \
327+
&& cp "$GENO_MODULE" $VFB_FINAL \
328+
&& cp "$GENO_MODULE" $VFB_DEBUG_DIR
329+
check_robot_errors "geno domain removal"
330+
fi
331+
314332
echo "VFBTIME:"
315333
date
316334

0 commit comments

Comments
 (0)