-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into vh-integrate-lof-data
- Loading branch information
Showing
27 changed files
with
865 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"fields": [ | ||
{ | ||
"metadata": {}, | ||
"name": "uniprotAccession", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "aminoAcidChange", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "inSilicoPredictors", | ||
"nullable": true, | ||
"type": { | ||
"containsNull": true, | ||
"elementType": { | ||
"fields": [ | ||
{ | ||
"metadata": {}, | ||
"name": "method", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "assessment", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "score", | ||
"nullable": true, | ||
"type": "float" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "assessmentFlag", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "targetId", | ||
"nullable": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"metadata": {}, | ||
"name": "normalisedScore", | ||
"nullable": true, | ||
"type": "double" | ||
} | ||
], | ||
"type": "struct" | ||
}, | ||
"type": "array" | ||
} | ||
} | ||
], | ||
"type": "struct" | ||
} |
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,26 @@ | ||
"""Dataset representing consequence of amino-acid changes in protein.""" | ||
|
||
from __future__ import annotations | ||
|
||
from dataclasses import dataclass | ||
from typing import TYPE_CHECKING | ||
|
||
from gentropy.common.schemas import parse_spark_schema | ||
from gentropy.dataset.dataset import Dataset | ||
|
||
if TYPE_CHECKING: | ||
from pyspark.sql.types import StructType | ||
|
||
|
||
@dataclass | ||
class AminoAcidVariants(Dataset): | ||
"""Dataset representing consequence of amino-acid changes in protein.""" | ||
|
||
@classmethod | ||
def get_schema(cls: type[AminoAcidVariants]) -> StructType: | ||
"""Provides the schema for the AminoAcidVariants dataset. | ||
Returns: | ||
StructType: Schema for the AminoAcidVariants dataset | ||
""" | ||
return parse_spark_schema("amino_acid_variants.json") |
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
Oops, something went wrong.