-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from TheJacksonLaboratory/release_v1.0.3
Release v1.0.3
- Loading branch information
Showing
35 changed files
with
473 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
svanna-cli/src/main/java/org/monarchinitiative/svanna/cli/cmd/AnalysisData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + | ||
'}'; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
svanna-cli/src/main/java/org/monarchinitiative/svanna/cli/cmd/AnalysisInputException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.