Skip to content

Commit

Permalink
Merge pull request #6 from monarch-initiative/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pnrobinson authored Jul 13, 2024
2 parents 4fd643b + 642a047 commit 1754fb2
Show file tree
Hide file tree
Showing 15 changed files with 443 additions and 295 deletions.
20 changes: 12 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.monarchinitiative.hpotools</groupId>
<artifactId>hpotools</artifactId>
<version>0.0.3</version>
<version>0.0.7</version>
<packaging>jar</packaging>
<name>hpotools</name>

Expand Down Expand Up @@ -156,7 +156,12 @@
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.0</version> <!-- Use the latest version available -->
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -178,11 +183,6 @@
<!-- <release>1.8</release> -->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -215,7 +215,11 @@
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version> <!-- Use the latest version -->
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void checkEncoding() {
}
}

public static void checkLine(String line, int lineno, String previous) throws UnsupportedEncodingException {
public static void checkLine(String line, int lineno, String previous) {
byte[] bytes = line.getBytes(StandardCharsets.ISO_8859_1);
String decodedLine = new String(bytes);
if (! line.equals(decodedLine)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

import org.monarchinitiative.phenol.ontology.data.TermId;

/**
* POJO for dealing with HPO and MONDO terms
* @param id
* @param label
*/
public record OntologyTerm(
TermId id,
String label) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,28 @@
import java.io.File;
import java.util.List;

/**
* An item that represents a Mondo disease together with its narrow and broad parents
* This is intended for use to similate data for ClintLR.
* @param omimId
* @param mondoId
* @param mondoLabel
* @param narrowId
* @param narrowLabel
* @param broadId
* @param broadLabel
* @param cohort
* @param ppktFile
*/
public record MondoClintlrItem(TermId omimId,
TermId mondoId,
String mondoLabel,
String mondoLabel,
TermId narrowId,
String narrowLabel,
TermId broadId,
String broadLabel,
String cohort,
File ppktFile) {
String broadLabel,
String cohort,
File ppktFile) {

public String getTsvLine() {
List<String> fields = List.of(omimId.getValue(),
Expand Down
Loading

0 comments on commit 1754fb2

Please sign in to comment.