Skip to content

Commit 22aac92

Browse files
committed
Merge branch 'release-2.3.x'
2 parents 55773a3 + 5ca25ee commit 22aac92

File tree

13 files changed

+289
-45
lines changed

13 files changed

+289
-45
lines changed

.github/workflows/develop.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ jobs:
2626
- uses: actions/checkout@v2
2727
with:
2828
fetch-depth: '10'
29-
- name: Set up JDK 1.8
29+
- name: Set up JDK 8
3030
uses: actions/setup-java@v2
3131
with:
32-
distribution: 'zulu'
32+
distribution: 'temurin'
3333
java-version: '8'
34-
- name: Setup Maven Action
35-
36-
with:
37-
java-version: 8
38-
maven-version: 3.6.3
34+
cache: 'maven'
3935
- name: Cache Maven packages
4036
uses: actions/cache@v2
4137
with:

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,12 @@ jobs:
2828
- uses: actions/checkout@v2
2929
with:
3030
fetch-depth: '10'
31-
- name: Set up JDK 1.8
31+
- name: Set up JDK 8
3232
uses: actions/setup-java@v2
3333
with:
34-
distribution: 'zulu'
34+
distribution: 'temurin'
3535
java-version: '8'
36-
- name: Setup Maven Action
37-
38-
with:
39-
java-version: 8
40-
maven-version: 3.6.3
36+
cache: 'maven'
4137
- name: Cache Maven packages
4238
uses: actions/cache@v2
4339
with:

.github/workflows/task.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Push biodata develop
2+
3+
on:
4+
push:
5+
branches:
6+
- TASK-*
7+
8+
jobs:
9+
build:
10+
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop
11+
12+
sonar:
13+
uses: opencb/java-common-libs/.github/workflows/sonar-analysis-workflow.yml@develop
14+
needs: build
15+
with:
16+
sonarProjectKey: opencb_biodata
17+
secrets:
18+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
19+
20+
test:
21+
name: Test biodata
22+
runs-on: ubuntu-20.04
23+
needs: build
24+
steps:
25+
- uses: actions/checkout@v2
26+
with:
27+
fetch-depth: '10'
28+
- name: Set up JDK 8
29+
uses: actions/setup-java@v2
30+
with:
31+
distribution: 'temurin'
32+
java-version: '8'
33+
cache: 'maven'
34+
- name: Cache Maven packages
35+
uses: actions/cache@v2
36+
with:
37+
path: ~/.m2/repository
38+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: ${{ runner.os }}-maven
40+
- name: Install Samtools
41+
run: sudo apt-get install samtools
42+
- name: Run tests with Maven
43+
run: mvn -T 2 clean install

biodata-external/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>biodata</artifactId>
88
<groupId>org.opencb.biodata</groupId>
9-
<version>2.2.2</version>
9+
<version>2.3.0</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212

biodata-formats/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.opencb.biodata</groupId>
2424
<artifactId>biodata</artifactId>
25-
<version>2.2.2</version>
25+
<version>2.3.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828

biodata-models/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.opencb.biodata</groupId>
2424
<artifactId>biodata</artifactId>
25-
<version>2.2.2</version>
25+
<version>2.3.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828

biodata-models/src/main/avro/variantAnnotation.avdl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ protocol VariantAnnotations {
110110
union { null, float } percentage;
111111
}
112112

113+
record SpliceScores {
114+
string source;
115+
map<double> scores;
116+
}
113117
record ConsequenceType {
114118
union { null, string } geneId;
115119
union { null, string } geneName;
@@ -127,6 +131,8 @@ protocol VariantAnnotations {
127131
union { null, string } source;
128132
union { null, array<ExonOverlap> } exonOverlap;
129133

134+
union { null, array<SpliceScores> } spliceScores;
135+
130136
// DEPRECATED: replaced by transcriptFlags
131137
//@javaAnnotation("Deprecated")
132138
//union { null, array<string> } transcriptAnnotationFlags;

biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/ClinicalVariant.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public enum Status {
4545
REVIEW_REQUESTED,
4646
REVIEWED,
4747
DISCARDED,
48-
REPORTED
48+
REPORTED,
49+
ARTIFACT
4950
}
5051

5152
public ClinicalVariant() {

biodata-models/src/main/java/org/opencb/biodata/models/clinical/interpretation/Interpretation.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class Interpretation {
4646

4747
private InterpretationStats stats;
4848

49+
private boolean locked;
4950
private Status status;
5051
private String creationDate;
5152
private String modificationDate;
@@ -63,7 +64,7 @@ public Interpretation() {
6364
public Interpretation(String id, String uuid, String description, String clinicalAnalysisId, ClinicalAnalyst analyst,
6465
InterpretationMethod method, List<ClinicalVariant> primaryFindings, List<ClinicalVariant> secondaryFindings,
6566
List<ClinicalComment> comments, InterpretationStats stats, Status status, String creationDate,
66-
String modificationDate, int version, Map<String, Object> attributes) {
67+
String modificationDate, boolean locked, int version, Map<String, Object> attributes) {
6768
this.id = id;
6869
this.uuid = uuid;
6970
this.description = description;
@@ -77,6 +78,7 @@ public Interpretation(String id, String uuid, String description, String clinica
7778
this.status = status;
7879
this.creationDate = creationDate;
7980
this.modificationDate = modificationDate;
81+
this.locked = locked;
8082
this.version = version;
8183
this.attributes = attributes;
8284
}
@@ -97,6 +99,7 @@ public String toString() {
9799
sb.append(", status=").append(status);
98100
sb.append(", creationDate='").append(creationDate).append('\'');
99101
sb.append(", modificationDate='").append(modificationDate).append('\'');
102+
sb.append(", locked='").append(locked).append('\'');
100103
sb.append(", version=").append(version);
101104
sb.append(", attributes=").append(attributes);
102105
sb.append('}');
@@ -220,6 +223,15 @@ public Interpretation setModificationDate(String modificationDate) {
220223
return this;
221224
}
222225

226+
public boolean isLocked() {
227+
return locked;
228+
}
229+
230+
public Interpretation setLocked(boolean locked) {
231+
this.locked = locked;
232+
return this;
233+
}
234+
223235
public int getVersion() {
224236
return version;
225237
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
package org.opencb.biodata.models.core;
2+
3+
import java.util.ArrayList;
4+
import java.util.List;
5+
6+
public class SpliceScore {
7+
private String chromosome;
8+
private int position;
9+
private String refAllele;
10+
private String geneId;
11+
private String geneName;
12+
private String transcriptId;
13+
private String exonId;
14+
private int exonNumber;
15+
private String source;
16+
private List<SpliceScoreAlternate> alternates;
17+
18+
public SpliceScore() {
19+
this.alternates = new ArrayList<>();
20+
}
21+
22+
public SpliceScore(String chromosome, int position, String refAllele, String geneId, String geneName, String transcriptId,
23+
String exonId, int exonNumber, String source, List<SpliceScoreAlternate> alternates) {
24+
this.chromosome = chromosome;
25+
this.position = position;
26+
this.refAllele = refAllele;
27+
this.geneId = geneId;
28+
this.geneName = geneName;
29+
this.transcriptId = transcriptId;
30+
this.exonId = exonId;
31+
this.exonNumber = exonNumber;
32+
this.source = source;
33+
this.alternates = alternates;
34+
}
35+
36+
@Override
37+
public String toString() {
38+
final StringBuilder sb = new StringBuilder("SpliceScore{");
39+
sb.append("chromosome='").append(chromosome).append('\'');
40+
sb.append(", position=").append(position);
41+
sb.append(", refAllele='").append(refAllele).append('\'');
42+
sb.append(", geneId='").append(geneId).append('\'');
43+
sb.append(", geneName='").append(geneName).append('\'');
44+
sb.append(", transcriptId='").append(transcriptId).append('\'');
45+
sb.append(", exonId='").append(exonId).append('\'');
46+
sb.append(", exonNumber=").append(exonNumber);
47+
sb.append(", source='").append(source).append('\'');
48+
sb.append(", alternates=").append(alternates);
49+
sb.append('}');
50+
return sb.toString();
51+
}
52+
53+
public String getChromosome() {
54+
return chromosome;
55+
}
56+
57+
public SpliceScore setChromosome(String chromosome) {
58+
this.chromosome = chromosome;
59+
return this;
60+
}
61+
62+
public int getPosition() {
63+
return position;
64+
}
65+
66+
public SpliceScore setPosition(int position) {
67+
this.position = position;
68+
return this;
69+
}
70+
71+
public String getRefAllele() {
72+
return refAllele;
73+
}
74+
75+
public SpliceScore setRefAllele(String refAllele) {
76+
this.refAllele = refAllele;
77+
return this;
78+
}
79+
80+
public String getGeneId() {
81+
return geneId;
82+
}
83+
84+
public SpliceScore setGeneId(String geneId) {
85+
this.geneId = geneId;
86+
return this;
87+
}
88+
89+
public String getGeneName() {
90+
return geneName;
91+
}
92+
93+
public SpliceScore setGeneName(String geneName) {
94+
this.geneName = geneName;
95+
return this;
96+
}
97+
98+
public String getTranscriptId() {
99+
return transcriptId;
100+
}
101+
102+
public SpliceScore setTranscriptId(String transcriptId) {
103+
this.transcriptId = transcriptId;
104+
return this;
105+
}
106+
107+
public String getExonId() {
108+
return exonId;
109+
}
110+
111+
public SpliceScore setExonId(String exonId) {
112+
this.exonId = exonId;
113+
return this;
114+
}
115+
116+
public int getExonNumber() {
117+
return exonNumber;
118+
}
119+
120+
public SpliceScore setExonNumber(int exonNumber) {
121+
this.exonNumber = exonNumber;
122+
return this;
123+
}
124+
125+
public String getSource() {
126+
return source;
127+
}
128+
129+
public SpliceScore setSource(String source) {
130+
this.source = source;
131+
return this;
132+
}
133+
134+
public List<SpliceScoreAlternate> getAlternates() {
135+
return alternates;
136+
}
137+
138+
public SpliceScore setAlternates(List<SpliceScoreAlternate> alternates) {
139+
this.alternates = alternates;
140+
return this;
141+
}
142+
}

0 commit comments

Comments
 (0)