Skip to content

Commit

Permalink
Release progV3.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptzou committed Jan 6, 2025
1 parent c18e673 commit e0443f5
Show file tree
Hide file tree
Showing 12 changed files with 7,597 additions and 5,694 deletions.
2 changes: 1 addition & 1 deletion .latest-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20241110055209
20250106053346
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '3.5.2'
version = '3.5.3'

sourceCompatibility = 15
targetCompatibility = 15
Expand Down
2 changes: 1 addition & 1 deletion sierra-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'edu.stanford.hivdb'
version = '3.5.2'
version = '3.5.3'

description = """Sierra Unit Tests"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public void testGetTotalDrugScores() {
expected.put(hiv.getDrug("DOR"), 0.0);
expected.put(hiv.getDrug("NVP"), 0.0);
expected.put(hiv.getDrug("RPV"), 0.0);
expected.put(hiv.getDrug("DPV"), 0.0);
expected.put(hiv.getDrug("ETR"), 0.0);
expected.put(hiv.getDrug("EFV"), 0.0);
assertEquals(expected, geneDR.getTotalDrugScores());
Expand All @@ -243,6 +244,7 @@ public void testGetTotalDrugScores() {
expectedNNRTI.put(hiv.getDrug("DOR"), 0.0);
expectedNNRTI.put(hiv.getDrug("NVP"), 0.0);
expectedNNRTI.put(hiv.getDrug("RPV"), 0.0);
expectedNNRTI.put(hiv.getDrug("DPV"), 0.0);
expectedNNRTI.put(hiv.getDrug("ETR"), 0.0);
expectedNNRTI.put(hiv.getDrug("EFV"), 0.0);
assertEquals(
Expand Down Expand Up @@ -328,6 +330,12 @@ public void testDrugSuscGetPartialScores() {
mutScores.put(hiv.newMutationSet("RT100I"), 60.);
expected.put(hiv.getDrug("RPV"), mutScores);

mutScores = new TreeMap<>();
mutScores.put(hiv.newMutationSet("RT100I"), 60.);
mutScores.put(hiv.newMutationSet("RT101E"), 45.);
mutScores.put(hiv.newMutationSet("RT181C"), 60.);
expected.put(hiv.getDrug("DPV"), mutScores);

mutScores = new TreeMap<>();
mutScores.put(hiv.newMutationSet("RT181C"), 30.);
mutScores.put(hiv.newMutationSet("RT101E"), 10.);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void testGetSynonyms() {
@Test
public void testGetDrugs() {
DrugClass<HIV> drugClass = hiv.getDrugClass("NNRTI");
assertEquals(drugClass.getDrugs().size(), 5);
assertEquals(drugClass.getDrugs().size(), 6);
}

@Test
Expand Down Expand Up @@ -175,6 +175,7 @@ public void testGetDrugsFullDrugClass() {

List<Drug<HIV>> NNRTIDrugs = new ArrayList<>();
NNRTIDrugs.add(hiv.getDrug("DOR"));
NNRTIDrugs.add(hiv.getDrug("DPV"));
NNRTIDrugs.add(hiv.getDrug("EFV"));
NNRTIDrugs.add(hiv.getDrug("ETR"));
NNRTIDrugs.add(hiv.getDrug("NVP"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class DrugTest {
@Test
public void testLoadJSON() {
// WARNING: This test would fail each time new drug is added.
assertEquals(26, hiv.getDrugs().size());
assertEquals(hiv.getDrugs().size(), 27);
}

@Test
Expand Down Expand Up @@ -111,7 +111,7 @@ public void testCompareTo() {
public void testFullDrugs() {
// WARNING: This test would fail every time a drug is added.
// INFO: You should update all the fullDrugs test below adding new drug and also update this test.
assertEquals(26, hiv.getDrugs().size());
assertEquals(hiv.getDrugs().size(), 27);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void testGetDrugClass() {
@Test
public void testGetDrugs() {
assertNotNull(hiv.getDrugs());
assertEquals(26, hiv.getDrugs().size());
assertEquals(hiv.getDrugs().size(), 27);
}

@Test
Expand Down Expand Up @@ -229,8 +229,8 @@ public void testGetDrugSynonymMapWithException() {
@Test
public void testGetDrugResistAlgorithms() {
assertNotNull(hiv.getDrugResistAlgorithms());
// 20241109, 47 algorithms
assertEquals(47, hiv.getDrugResistAlgorithms().size());
// 20250105, 48 algorithms
assertEquals(48, hiv.getDrugResistAlgorithms().size());
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void testGetDrugClass() {
@Test
public void testGetDrugs() {
assertNotNull(hiv2.getDrugs());
assertEquals(26, hiv2.getDrugs().size());
assertEquals(hiv2.getDrugs().size(), 27);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ public void testExtractMutationGenesInvaid() {

@Test
public void testGetLatestDrugResistAlgorithm() {
assertEquals("9.7", hiv.getLatestDrugResistAlgorithm("HIVDB").getVersion());
assertEquals("9.8", hiv.getLatestDrugResistAlgorithm("HIVDB").getVersion());
assertEquals("34", hiv.getLatestDrugResistAlgorithm("ANRS").getVersion());
assertEquals("10.0", hiv.getLatestDrugResistAlgorithm("Rega").getVersion());
}

@Test
public void testGetDefaultDrugResistAlgorithm() {
assertEquals("9.7", hiv.getDefaultDrugResistAlgorithm().getVersion());
assertEquals("9.8", hiv.getDefaultDrugResistAlgorithm().getVersion());
}
}
Loading

0 comments on commit e0443f5

Please sign in to comment.