Commit 7a84b8b1 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unknown transition is exported as conversion in GPML

parent 315bbe96
Pipeline #28986 passed with stage
in 11 minutes and 47 seconds
......@@ -15,6 +15,8 @@ minerva (15.1.0) unstable; urgency=medium
* Small improvement: API allows to remove plugin data entry (#1298)
* Small improvement: transport/translation/transcription reactions are
exported to SBGN PD (#1302)
* Small improvement: Unknown Transition Reaction is exported to GPML as
CONVERSION (#1300)
* Bug fix: export to image from selected polygon contained all elements
inside rectangle bounded by the polygon coordinates (#1096)
* Bug fix: continuous refreshing list of project when uploading/removing
......
......@@ -170,7 +170,6 @@ public enum InteractionMapping {
Modulation.class, true,
Product.class, true),
/**
* Inhibition.
*/
......@@ -513,7 +512,7 @@ public enum InteractionMapping {
}
return result;
}
public static GpmlInteractionType getGpmlInteractionTypeForMinervaReactionClass(Class<? extends Reaction> clazz) {
GpmlInteractionType result = GpmlInteractionType.CONVERSION;
for (InteractionMapping mapping : InteractionMapping.values()) {
......@@ -525,6 +524,10 @@ public enum InteractionMapping {
}
}
}
if (clazz.isAssignableFrom(UnknownTransitionReaction.class)) {
result = GpmlInteractionType.CONVERSION;
}
return result;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment