Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #228

Merged
merged 4 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,20 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
JDK_VERSION: ${{ matrix.jdk }}

strategy:
fail-fast: false
matrix:
os: [ windows-latest, macOS-latest, ubuntu-latest ]
jdk: [ 11 ]

steps:
- uses: actions/checkout@v2

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'

- name: Build with Maven
run: ./mvnw -B verify --file pom.xml
run: ./mvnw --batch-mode verify
14 changes: 10 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.10</version>
<version>3.0.5</version>
</parent>

<properties>
Expand All @@ -32,8 +32,9 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

<phenol.version>2.0.0-RC2</phenol.version>
<silent.genes.version>0.2.0</silent.genes.version>
<phenol.version>2.0.0</phenol.version>
<phenopacket-tools.version>1.0.0-RC2</phenopacket-tools.version>
<silent.genes.version>0.2.5</silent.genes.version>
<h2.version>1.4.200</h2.version>
</properties>

Expand Down Expand Up @@ -101,6 +102,11 @@
<artifactId>silent-genes-io</artifactId>
<version>${silent.genes.version}</version>
</dependency>
<dependency>
<groupId>org.phenopackets.phenopackettools</groupId>
<artifactId>phenopacket-tools-io</artifactId>
<version>${phenopacket-tools.version}</version>
</dependency>

<dependency>
<groupId>org.phenopackets</groupId>
Expand All @@ -125,7 +131,7 @@
<dependency>
<groupId>com.github.samtools</groupId>
<artifactId>htsjdk</artifactId>
<version>2.23.0</version>
<version>3.0.5</version>
<exclusions>
<exclusion>
<groupId>org.tukaani</groupId>
Expand Down
42 changes: 5 additions & 37 deletions svanna-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<artifactId>svanna-configuration</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.phenopackets.phenopackettools</groupId>
<artifactId>phenopacket-tools-io</artifactId>
</dependency>
<dependency>
<groupId>info.picocli</groupId>
<artifactId>picocli</artifactId>
Expand All @@ -27,21 +31,11 @@
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
</dependency>

<dependency>
<groupId>org.phenopackets</groupId>
<artifactId>phenopacket-schema</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
</dependency>

<!-- TESTS -->
<dependency>
<groupId>org.monarchinitiative.svanna</groupId>
Expand All @@ -63,33 +57,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/assembly-resources</outputDirectory>
<resources>
<resource>
<directory>src/examples</directory>
<filtering>true</filtering>
<includes>
<include>example.csv</include>
<include>example.vcf</include>
<include>run_examples.sh</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions svanna-cli/src/assemble/distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
<include>svanna-cli-${version}.jar</include>
</includes>
</fileSet>
<!-- Include example data -->
<fileSet>
<directory>${project.build.directory}/assembly-resources</directory>
<directory>${project.basedir}/src/examples</directory>
<outputDirectory>./examples</outputDirectory>
<includes>
<include>example.vcf</include>
<include>run_examples.sh</include>
<include>**/**</include>
</includes>
</fileSet>
</fileSets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "example",
"id": "example-phenopacket",
"subject": {
"id": "example",
"id": "Sample",
"ageAtCollection": {
"age": "P2Y"
}
Expand All @@ -12,11 +12,6 @@
"label": "Reduced von Willebrand factor activity"
}
}],
"htsFiles": [{
"uri": "file:///***/***/example.vcf",
"htsFormat": "VCF",
"genomeAssembly": "hg38"
}],
"metaData": {
"created": "2021-07-13T15:08:53.846Z",
"createdBy": "ExampleOrg:ExampleCurator",
Expand Down
30 changes: 30 additions & 0 deletions svanna-cli/src/examples/example-phenopacket.v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"id": "example-phenopacket",
"subject": {
"id": "Sample",
"timeAtLastEncounter": {
"age": {
"iso8601duration": "P2Y"
}
}
},
"phenotypicFeatures": [{
"type": {
"id": "HP:0008330",
"label": "Reduced von Willebrand factor activity"
}
}],
"metaData": {
"created": "2021-07-13T15:08:53.846Z",
"createdBy": "ExampleOrg:ExampleCurator",
"resources": [{
"id": "hp",
"name": "human phenotype ontology",
"url": "http://purl.obolibrary.org/obo/hp.owl",
"version": "unknown HPO version",
"namespacePrefix": "HP",
"iriPrefix": "http://purl.obolibrary.org/obo/HP_"
}],
"phenopacketSchemaVersion": "2.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package org.monarchinitiative.svanna.cli.cmd;

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

import java.nio.file.Path;
import java.util.List;
import java.util.Objects;

/**
* SvAnna requires these inputs for the analysis.
*/
class AnalysisData {

private final List<TermId> phenotypeTerms;
private final Path vcf;

AnalysisData(List<TermId> phenotypeTerms, Path vcf) {
this.phenotypeTerms = phenotypeTerms;
this.vcf = vcf;
}

List<TermId> phenotypeTerms() {
return phenotypeTerms;
}

Path vcf() {
return vcf;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AnalysisData that = (AnalysisData) o;
return Objects.equals(phenotypeTerms, that.phenotypeTerms) && Objects.equals(vcf, that.vcf);
}

@Override
public int hashCode() {
return Objects.hash(phenotypeTerms, vcf);
}

@Override
public String toString() {
return "AnalysisData{" +
"phenotypeTerms=" + phenotypeTerms +
", vcf=" + vcf +
'}';
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package org.monarchinitiative.svanna.cli.cmd;

import org.monarchinitiative.svanna.core.SvAnnaRuntimeException;

/**
* An exception thrown if inputs for the analysis are incomplete or otherwise invalid.
*/
class AnalysisInputException extends SvAnnaRuntimeException {
AnalysisInputException() {
super();
}

AnalysisInputException(String message) {
super(message);
}

AnalysisInputException(String message, Throwable cause) {
super(message, cause);
}

AnalysisInputException(Throwable cause) {
super(cause);
}

AnalysisInputException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
Loading