-
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
7 changed files
with
86 additions
and
4 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
File renamed without changes.
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,39 @@ | ||
from os import PathLike | ||
from typing import Callable | ||
|
||
from beignet.transforms import Transform | ||
|
||
from .__uniprot_dataset import _UniRefDataset | ||
|
||
|
||
class SwissProtDataset(_UniRefDataset): | ||
def __init__( | ||
self, | ||
root: str | PathLike | None = None, | ||
*, | ||
transform: Callable | Transform | None = None, | ||
target_transform: Callable | Transform | None = None, | ||
) -> None: | ||
""" | ||
Parameters | ||
---------- | ||
root : str | PathLike, optional | ||
Root directory where the dataset subdirectory exists or, if | ||
`download` is `True`, the directory where the dataset subdirectory | ||
will be created and the dataset downloaded. | ||
transform : Callable, optional | ||
A `Callable` or `Transform` that that maps a sequence to a | ||
transformed sequence (default: `None`). | ||
target_transform : Callable, optional | ||
A `Callable` or `Transform` that maps a target to a transformed | ||
target (default: `None`). | ||
""" | ||
super().__init__( | ||
"https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.fasta.gz", | ||
root, | ||
"md5:0766df3e5785fc5f1cfc496aa89e86ad", | ||
transform=transform, | ||
target_transform=target_transform, | ||
) |
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,39 @@ | ||
from os import PathLike | ||
from typing import Callable | ||
|
||
from beignet.transforms import Transform | ||
|
||
from .__uniprot_dataset import _UniRefDataset | ||
|
||
|
||
class TrEMBLDataset(_UniRefDataset): | ||
def __init__( | ||
self, | ||
root: str | PathLike | None = None, | ||
*, | ||
transform: Callable | Transform | None = None, | ||
target_transform: Callable | Transform | None = None, | ||
) -> None: | ||
""" | ||
Parameters | ||
---------- | ||
root : str | PathLike, optional | ||
Root directory where the dataset subdirectory exists or, if | ||
`download` is `True`, the directory where the dataset subdirectory | ||
will be created and the dataset downloaded. | ||
transform : Callable, optional | ||
A `Callable` or `Transform` that that maps a sequence to a | ||
transformed sequence (default: `None`). | ||
target_transform : Callable, optional | ||
A `Callable` or `Transform` that maps a target (a cluster | ||
identifier) to a transformed target (default: `None`). | ||
""" | ||
super().__init__( | ||
"https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_trembl.fasta.gz", | ||
root, | ||
"md5:56f0f20479a88d28fb51db7ef4df90ed", | ||
transform=transform, | ||
target_transform=target_transform, | ||
) |
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