Closed GoogleCodeExporter closed 9 years ago
Modified the Paxtools' SimpleMerger; so using it with a filter, like
// SimpleMerger and a special Filter<BioPAXElement>
SimpleMerger merger = new SimpleMerger(SimpleEditorMap.L3, new Filter<BioPAXElement>() {
public boolean filter(BioPAXElement object) {
return object instanceof Pathway;
}
});
helped close this issue (I've updated KeggHsaCleanerImplTest.java and Merger.java to test/use this new feature).
Last note, a follow-up. When a KEGG pathway with ID, e.g., hsa00010 is defined in its main biopax file (hsa_00010.owl), it has absolute URI like "path:hsa00010"; but when the same pathway is referenced from other files, e.g., hsa_00562.owl, its simplified/dummy version has a different URI "#pathhsa00010" (i.e,, "http://www.ra.cs.uni-tuebingen.de/software/KEGGtranslator/pathhsa00010") and the property looks like
<bp:pathwayComponent rdf:resource="#pathhsa00010" />
URIs of the same pathways must be exactly the same in all files, and be like "http://identifiers.org/kegg.pathway/hsa00010" instead.
Original issue reported on code.google.com by
rod...@gmail.com
on 12 Mar 2015 at 9:42