-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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
src/beignet/datasets/_therapeutic_antibody_profiler_dataset.py
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 @@ | ||
from pathlib import Path | ||
from typing import Callable | ||
|
||
from beignet.transforms import Transform | ||
|
||
from ._tdc_dataset import TDCDataset | ||
|
||
|
||
class TherapeuticAntibodyProfilerDataset(TDCDataset): | ||
def __init__( | ||
self, | ||
root: str | Path, | ||
*, | ||
download: bool = False, | ||
transform: Callable | Transform | None = None, | ||
target_transform: Callable | Transform | None = None, | ||
): | ||
r""" | ||
Parameters | ||
---------- | ||
root : str | Path | ||
Root directory of dataset. | ||
download: bool | ||
If `True`, downloads the dataset to the root directory. If dataset | ||
already exists, it is not redownloaded. Default, `False`. | ||
transform : Callable | Transform | None | ||
Transforms the input. | ||
target_transform : Callable | Transform | None | ||
Transforms the target. | ||
""" | ||
super().__init__( | ||
root=root, | ||
download=download, | ||
identifier=4167113, | ||
suffix="tsv", | ||
checksum="md5:567e3550e984bc73e0391b3b8ee5b231", | ||
x_keys=["X"], | ||
y_keys=[ | ||
"CDR_Length", | ||
"PNC", | ||
"PPC", | ||
"PSH", | ||
"SFvCSP", | ||
], | ||
transform=transform, | ||
target_transform=target_transform, | ||
) |