Commit 349f410e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '1476-complex-state' into 'devel_15.1.x'

structural state is available for complexes

See merge request !1305
parents a5f26f1e 0e9498da
Pipeline #40784 failed with stage
in 21 minutes and 12 seconds
minerva (15.1.4) stable; urgency=medium
* Bug fix: structural state information data was not available for complexes
(#1476)
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 30 Apr 2021 17:00:00 +0200
minerva (15.1.3) stable; urgency=medium
* Bug fix: modifier reactions to phenotype were incorrectly translated to
Process Description reactions when exporting to SBGN-ML (#1445)
......
......@@ -254,7 +254,6 @@ public class ElementsRestImpl extends BaseRestImpl {
if (element instanceof Protein) {
Protein protein = ((Protein) element);
modifications = getModifications(protein.getModificationResidues());
structuralState = protein.getStructuralState();
} else if (element instanceof Rna) {
Rna rna = ((Rna) element);
modifications = getModifications(rna.getRegions());
......@@ -266,7 +265,9 @@ public class ElementsRestImpl extends BaseRestImpl {
modifications = getModifications(gene.getModificationResidues());
}
if (element instanceof Species) {
structures = getStructures(((Species) element).getUniprots());
Species species= (Species) element;
structures = getStructures(species.getUniprots());
structuralState = species.getStructuralState();
}
result.put("modifications", modifications);
if (structuralState != null) {
......
Markdown is supported
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