88# https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/docs/keywlist.txt
99# https://www.uniprot.org/uniprotkb
1010
11- __all__ = ["GoUniProtOver250 " , "GoUniProtOver50 " ]
11+ __all__ = ["GOUniProtOver250 " , "GOUniProtOver50 " ]
1212
1313import gzip
1414import os
2929from chebai .preprocessing .datasets .base import _DynamicDataset
3030
3131
32- class _GOUniprotDataExtractor (_DynamicDataset , ABC ):
32+ class _GOUniProtDataExtractor (_DynamicDataset , ABC ):
3333 """
3434 A class for extracting and processing data from the Gene Ontology (GO) dataset and the Swiss UniProt dataset.
3535
@@ -72,7 +72,7 @@ class _GOUniprotDataExtractor(_DynamicDataset, ABC):
7272
7373 def __init__ (self , ** kwargs ):
7474 self .go_branch : str = self ._get_go_branch (** kwargs )
75- super (_GOUniprotDataExtractor , self ).__init__ (** kwargs )
75+ super (_GOUniProtDataExtractor , self ).__init__ (** kwargs )
7676
7777 @classmethod
7878 def _get_go_branch (cls , ** kwargs ) -> str :
@@ -547,7 +547,7 @@ def raw_file_names_dict(self) -> dict:
547547 return {"GO" : "go-basic.obo" , "SwissUniProt" : "uniprot_sprot.dat" }
548548
549549
550- class _GoUniProtOverX ( _GOUniprotDataExtractor , ABC ):
550+ class _GOUniProtOverX ( _GOUniProtDataExtractor , ABC ):
551551 """
552552 A class for extracting data from the Gene Ontology (GO) dataset with a threshold for selecting classes based on
553553 the number of subclasses.
@@ -666,11 +666,11 @@ def select_classes(
666666 return selected_nodes
667667
668668
669- class GoUniProtOver250 ( _GoUniProtOverX ):
669+ class GOUniProtOver250 ( _GOUniProtOverX ):
670670 """
671671 A class for extracting data from the Gene Ontology (GO) dataset with a threshold of 250 for selecting classes.
672672
673- Inherits from `_GoUniProtOverX ` and sets the threshold for selecting classes to 250.
673+ Inherits from `_GOUniProtOverX ` and sets the threshold for selecting classes to 250.
674674
675675 Attributes:
676676 THRESHOLD (int): The threshold for selecting classes (250).
@@ -690,11 +690,11 @@ def label_number(self) -> int:
690690 return 854
691691
692692
693- class GoUniProtOver50 ( _GoUniProtOverX ):
693+ class GOUniProtOver50 ( _GOUniProtOverX ):
694694 """
695695 A class for extracting data from the Gene Ontology (GO) dataset with a threshold of 50 for selecting classes.
696696
697- Inherits from `_GoUniProtOverX ` and sets the threshold for selecting classes to 50.
697+ Inherits from `_GOUniProtOverX ` and sets the threshold for selecting classes to 50.
698698
699699 Attributes:
700700 THRESHOLD (int): The threshold for selecting classes (50).
0 commit comments