Skip to content

Commit

Permalink
Fixed a bug (was setting organism multiple times...)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorRodchenkov committed Mar 10, 2024
1 parent a1b44d2 commit 2af8b21
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,10 @@ private SimplePhysicalEntity createSPEFromActor(ActorType actor, String state, L
spe = createEntityFromActor(actor, eClass, refClass, state);
//add organism if it makes sense
if(spe.getEntityReference() instanceof SequenceEntityReference) {
BioSource organism = bioSource(taxonTypes);
((SequenceEntityReference) spe.getEntityReference()).setOrganism(organism);
SequenceEntityReference ser = (SequenceEntityReference) spe.getEntityReference();
if(ser.getOrganism() == null) {
ser.setOrganism(bioSource(taxonTypes));
}
}
break;
case IXN:
Expand Down

0 comments on commit 2af8b21

Please sign in to comment.