Skip to content

Commit

Permalink
Merge pull request #126 from KPMP/KPMP-5130_Adj_P_val
Browse files Browse the repository at this point in the history
Kpmp 5130 adj p val
  • Loading branch information
rlreamy authored Feb 29, 2024
2 parents 0d22891 + dab6ed1 commit 5ac6763
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/kpmp/geneExpression/RTExpressionData.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@ public interface RTExpressionData {
Integer getSampleCount();

void setSampleCount(Integer sampleCount);

Double getAdjPVal();

void setAdjPVal(Double adjPVal);

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class RTExpressionDataAllSegments implements RTExpressionData, Serializab
private Double pValLog10;
@Column(name = "tissue_type")
private String tissueType;
@Column(name = "adj_p_val")
private Double adjPVal;
@Column(name = "sample_count")
private Integer sampleCount;

Expand Down Expand Up @@ -133,4 +135,14 @@ public String getSegmentName() {
public void setSegmentName(String segmentName) {
this.segmentName = segmentName;
}

@Override
public Double getAdjPVal() {
return adjPVal;
}

@Override
public void setAdjPVal(Double adjPVal) {
this.adjPVal = adjPVal;
}
}
12 changes: 12 additions & 0 deletions src/main/java/org/kpmp/geneExpression/RTExpressionDataGTI.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public class RTExpressionDataGTI implements RTExpressionData, Serializable {
private Double pValLog10;
@Column(name = "tissue_type")
private String tissueType;
@Column(name = "adj_p_val")
private Double adjPVal;
@Column(name = "sample_count")
private Integer sampleCount;

Expand Down Expand Up @@ -133,4 +135,14 @@ public String getSegmentName() {
public void setSegmentName(String segmentName) {
this.segmentName = segmentName;
}

@Override
public Double getAdjPVal() {
return adjPVal;
}

@Override
public void setAdjPVal(Double adjPVal) {
this.adjPVal = adjPVal;
}
}
1 change: 1 addition & 0 deletions src/main/resources/knowledge_environment.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ type RTGeneExpression {
pValLog10: Float
tissueType: String
sampleCount: Int
adjPVal: Float
}

type RTGeneExpressionByTissue {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ void setSegmentName() {
assertEquals("segmentName", rtExpressionDataAllSegments.getSegmentName());
}

@Test
void setAdjPVal() {
rtExpressionDataAllSegments.setAdjPVal(123.456);
assertEquals(123.456, rtExpressionDataAllSegments.getAdjPVal(), 0.001);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.Assert;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -80,4 +81,12 @@ void setSegmentName() {
assertEquals("segmentName", rtExpressionDataGTI.getSegmentName());
}

@Test
void setAdjPVal() {
rtExpressionDataGTI.setAdjPVal(123.456);
Assert.assertEquals(123.456, rtExpressionDataGTI.getAdjPVal(), 0.001);
}



}

0 comments on commit 5ac6763

Please sign in to comment.