EC2 Default User
commited on
Commit
·
3a4a990
1
Parent(s):
6c1102a
Add label array
Browse files- README.md +16 -1
- deeploc-test.parquet +2 -2
- deeploc-train.parquet +2 -2
- deploc-val.parquet +2 -2
- prep.py +3 -1
README.md
CHANGED
|
@@ -13,7 +13,9 @@ Data downloaded and processed using the following Python script:
|
|
| 13 |
import pandas as pd
|
| 14 |
|
| 15 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
| 16 |
-
df = df
|
|
|
|
|
|
|
| 17 |
|
| 18 |
train = df.sample(frac=0.8)
|
| 19 |
df = df.drop(train.index)
|
|
@@ -29,6 +31,19 @@ val.to_parquet('deploc-val.parquet', index=False)
|
|
| 29 |
test.to_parquet('deeploc-test.parquet', index=False)
|
| 30 |
```
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Citation
|
| 33 |
|
| 34 |
**DeepLoc-2.0:**
|
|
|
|
| 13 |
import pandas as pd
|
| 14 |
|
| 15 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
| 16 |
+
df['labels'] = df[['Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']].astype('int8').values.tolist()
|
| 17 |
+
df['Membrane'] = df['Membrane'].astype('int8')
|
| 18 |
+
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
| 19 |
|
| 20 |
train = df.sample(frac=0.8)
|
| 21 |
df = df.drop(train.index)
|
|
|
|
| 31 |
test.to_parquet('deeploc-test.parquet', index=False)
|
| 32 |
```
|
| 33 |
|
| 34 |
+
## Labels
|
| 35 |
+
|
| 36 |
+
{'Cell membrane': 0,
|
| 37 |
+
'Cytoplasm': 1,
|
| 38 |
+
'Endoplasmic reticulum': 2,
|
| 39 |
+
'Extracellular': 3,
|
| 40 |
+
'Golgi apparatus': 4,
|
| 41 |
+
'Lysosome/Vacuole': 5,
|
| 42 |
+
'Mitochondrion': 6,
|
| 43 |
+
'Nucleus': 7,
|
| 44 |
+
'Peroxisome': 8,
|
| 45 |
+
'Plastid': 9}
|
| 46 |
+
|
| 47 |
## Citation
|
| 48 |
|
| 49 |
**DeepLoc-2.0:**
|
deeploc-test.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15a8ad44a8ccf204be9f5e423adec792138360885dead352282ceab007460254
|
| 3 |
+
size 1635356
|
deeploc-train.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:635c8ca79d28616b449bd91a8a8c0b00916dd4c6b304a14a1870107ff6b9504e
|
| 3 |
+
size 12854801
|
deploc-val.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd20e1ce78f568ea3255ebfcb915b275355aaea7c91db737f298ad30f279ce0f
|
| 3 |
+
size 1630148
|
prep.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
|
| 3 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
| 4 |
-
df = df
|
|
|
|
|
|
|
| 5 |
|
| 6 |
train = df.sample(frac=0.8)
|
| 7 |
df = df.drop(train.index)
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
|
| 3 |
df = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)
|
| 4 |
+
df['labels'] = df[['Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']].astype('int8').values.tolist()
|
| 5 |
+
df['Membrane'] = df['Membrane'].astype('int8')
|
| 6 |
+
df = df[['Kingdom', 'ACC', 'Sequence','Membrane','labels']]
|
| 7 |
|
| 8 |
train = df.sample(frac=0.8)
|
| 9 |
df = df.drop(train.index)
|