Skip to content

Commit 22815fb

Browse files
committed
rename base folder to chebai_proteins
1 parent 83e3342 commit 22815fb

File tree

15 files changed

+9
-25
lines changed

15 files changed

+9
-25
lines changed

chebai/preprocessing/datasets/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

chebai/preprocessing/bin/protein_token/tokens.txt renamed to chebai_proteins/preprocessing/bin/protein_token/tokens.txt

File renamed without changes.

chebai/preprocessing/bin/protein_token_3_gram/tokens.txt renamed to chebai_proteins/preprocessing/bin/protein_token_3_gram/tokens.txt

File renamed without changes.
File renamed without changes.
File renamed without changes.

chebai/preprocessing/datasets/deepGO/go_uniprot.py renamed to chebai_proteins/preprocessing/datasets/deepGO/go_uniprot.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,18 @@
4242
import torch
4343
import tqdm
4444
from Bio import SwissProt
45-
4645
from chebai.preprocessing import reader as dr
4746
from chebai.preprocessing.datasets.base import _DynamicDataset
4847

48+
# fmt: off
4949
# https://github.com/bio-ontology-research-group/deepgo/blob/master/utils.py#L15
5050
EXPERIMENTAL_EVIDENCE_CODES = {
51-
"EXP",
52-
"IDA",
53-
"IPI",
54-
"IMP",
55-
"IGI",
56-
"IEP",
57-
"TAS",
58-
"IC",
51+
"EXP", "IDA", "IPI", "IMP", "IGI", "IEP", "TAS", "IC",
5952
# New evidence codes added in latest paper year 2024 Reference number 3
6053
# https://github.com/bio-ontology-research-group/deepgo2/blob/main/deepgo/utils.py#L24-L26
61-
"HTP",
62-
"HDA",
63-
"HMP",
64-
"HGI",
65-
"HEP",
54+
"HTP", "HDA", "HMP", "HGI", "HEP",
6655
}
56+
# fmt: on
6757

6858
# https://github.com/bio-ontology-research-group/deepgo/blob/d97447a05c108127fee97982fd2c57929b2cf7eb/aaindex.py#L8
6959
# https://github.com/bio-ontology-research-group/deepgo2/blob/main/deepgo/aminoacids.py#L10

chebai/preprocessing/datasets/deepGO/protein_pretraining.py renamed to chebai_proteins/preprocessing/datasets/deepGO/protein_pretraining.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
import pandas as pd
1010
import torch
1111
from Bio import SwissProt
12-
from sklearn.model_selection import train_test_split
13-
1412
from chebai.preprocessing.datasets.base import _DynamicDataset
1513
from chebai.preprocessing.datasets.deepGO.go_uniprot import (
1614
AMBIGUOUS_AMINO_ACIDS,
1715
EXPERIMENTAL_EVIDENCE_CODES,
1816
GOUniProtOver250,
1917
)
2018
from chebai.preprocessing.reader import ProteinDataReader
19+
from sklearn.model_selection import train_test_split
2120

2221

2322
class _ProteinPretrainingData(_DynamicDataset, ABC):
File renamed without changes.

chebai/preprocessing/datasets/scope/scope.py renamed to chebai_proteins/preprocessing/datasets/scope/scope.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import requests
2424
import torch
2525
from Bio import SeqIO
26-
2726
from chebai.preprocessing.datasets.base import _DynamicDataset
2827
from chebai.preprocessing.reader import ProteinDataReader
2928

0 commit comments

Comments
 (0)