Skip to content

Commit

Permalink
Merge pull request #75 from sundarvenkata-EBI/fix/eva2861_remediate_d…
Browse files Browse the repository at this point in the history
…uplicate_dbsnp_ss

EVA-2889 - SS_SPLIT event
  • Loading branch information
sundarvenkata-EBI authored Jun 20, 2022
2 parents 3b427cc + ff7559e commit 029409d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@ public enum EventType {
DEPRECATED,

// RS ID was back-propagated from a remapped assembly
RS_BACK_PROPAGATED
RS_BACK_PROPAGATED,

// Candidates for SS ID split
SS_SPLIT_CANDIDATES,

// new SS ID created because of SS split - as a result of processing SS_SPLIT_CANDIDATES
SS_SPLIT
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void fill(EventType eventType, ACCESSION accessionIdOrigin, ACCESSION acc
String reason, List<INACTIVE_DOCUMENT> inactiveObjects) {
this.eventType = eventType;
this.accession = accessionIdOrigin;
if(eventType==EventType.RS_SPLIT){
if(eventType==EventType.RS_SPLIT || eventType == EventType.SS_SPLIT) {
this.splitInto = accessionIdDestiny;
}else if(eventType==EventType.MERGED){
this.mergeInto = accessionIdDestiny;
Expand Down Expand Up @@ -133,6 +133,10 @@ public String getId() {
return id;
}

public void setId(String id) {
this.id = id;
}

@Override
public boolean isNew() {
return true;
Expand Down

0 comments on commit 029409d

Please sign in to comment.