EC2 Default User commited on
Commit ·
6c1102a
1
Parent(s): 7a718ee
Remove protein atlas data and add additional metadata
Browse filesFiles changed (5)
- README.md+14-20
- deeploc-test.parquet+2-2
- deeploc-train.parquet+2-2
- deploc-val.parquet+2-2
- prep.py+12-12
123455 unmodified lines111213141516171819202122232425262728293031324 unmodified lines373839404142432 unmodified lines464748495051525354---license: cc-by-sa-3.0---# DeepLoc-2.0 Training Data5 unmodified lines```pythonimport pandas as pdfrom sklearn.model_selection import train_test_splittrain = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv')train = train.loc[:,['Sequence','Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']]train = train.melt('Sequence', var_name='Location').query('value == 1.0').drop(labels='value', axis=1)train, val = train_test_split(train)val = val.reset_index(drop=True)test = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/hpa_testset.csv')test = test.loc[:,['fasta','Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome']].rename(columns={'fasta':'Sequence'})test = test.melt('Sequence', var_name='Location').query('value == 1.0').drop(labels='value', axis=1).sample(frac=1).reset_index(drop=True)train.to_parquet('data/deeploc/deeploc-train.parquet', index=False)val.to_parquet('data/deeploc/deploc-val.parquet', index=False)test.to_parquet('data/deeploc/deeploc-test.parquet', index=False)```## Citation4 unmodified linesVineet Thumuluri and others, DeepLoc 2.0: multi-label subcellular localization prediction using protein language models, Nucleic Acids Research, Volume 50, Issue W1, 5 July 2022, Pages W228–W234, https://doi.org/10.1093/nar/gkac278```The DeepLoc data is a derivative of the following datasets:**UniProt**2 unmodified linesUniProt: the Universal Protein Knowledgebase in 2023Nucleic Acids Res. 51:D523–D531 (2023)```**The Human Protein Atlas**```Mathias Uhlén et al.,Tissue-based map of the human proteome.Science347,1260419(2015).DOI:10.1126/science.1260419```123455 unmodified lines111213141516171819202122232425262728293031324 unmodified lines373839404142432 unmodified lines464748---license: cc-by-4.0---# DeepLoc-2.0 Training Data5 unmodified lines```pythonimport pandas as pddf = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)df = df.melt(['Kingdom', 'ACC', 'Sequence','Membrane'], var_name='Location').query('value == 1.0').drop(labels='value', axis=1).astype({'Membrane': 'int8'})train = df.sample(frac=0.8)df = df.drop(train.index)val = df.sample(frac=0.5)test = df.drop(val.index)train = train.reset_index(drop=True)val = val.reset_index(drop=True)test = test.reset_index(drop=True)train.to_parquet('deeploc-train.parquet', index=False)val.to_parquet('deploc-val.parquet', index=False)test.to_parquet('deeploc-test.parquet', index=False)```## Citation4 unmodified linesVineet Thumuluri and others, DeepLoc 2.0: multi-label subcellular localization prediction using protein language models, Nucleic Acids Research, Volume 50, Issue W1, 5 July 2022, Pages W228–W234, https://doi.org/10.1093/nar/gkac278```The DeepLoc data is a derivative of the UniProt dataset:**UniProt**2 unmodified linesUniProt: the Universal Protein Knowledgebase in 2023Nucleic Acids Res. 51:D523–D531 (2023)```
123version https://git-lfs.github.com/spec/v1oid sha256:9c3ba63829261f73c3f898b243151afb15bd7acb8764625cc6880869ccc90724size 505764123version https://git-lfs.github.com/spec/v1oid sha256:a1e282132ec5d2681ca04ba6f131a4d13cf231b61c47186e3a53691791dcc036size 2016514
123version https://git-lfs.github.com/spec/v1oid sha256:ab860ba3bb4b0f5cccd607d8b8f327b823cb115efb5687d0d6155f9b18dc20ccsize 15201778123version https://git-lfs.github.com/spec/v1oid sha256:4e60d7303b0cac6bfc2bb37d6671304b19f0846a197e58dc125143d3cacfc6eesize 16422156
123version https://git-lfs.github.com/spec/v1oid sha256:42f78d31d98b7c8c645ec45e86fc34f6ad627d475994982891b3080229fc4b1fsize 5031310123version https://git-lfs.github.com/spec/v1oid sha256:3d0a708c9338df6177c58fa5ee70c02f1e4fe1b47f79a5a36ec7ed9ad1ca8d0asize 2045512
1234567891011121314151617import pandas as pdfrom sklearn.model_selection import train_test_splittrain = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv')train = train.loc[:,['Sequence','Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Extracellular', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome', 'Plastid']]train = train.melt('Sequence', var_name='Location').query('value == 1.0').drop(labels='value', axis=1)train, val = train_test_split(train)val = val.reset_index(drop=True)test = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/hpa_testset.csv')test = test.loc[:,['fasta','Cell membrane', 'Cytoplasm','Endoplasmic reticulum', 'Golgi apparatus', 'Lysosome/Vacuole', 'Mitochondrion', 'Nucleus', 'Peroxisome']].rename(columns={'fasta':'Sequence'})test = test.melt('Sequence', var_name='Location').query('value == 1.0').drop(labels='value', axis=1).sample(frac=1).reset_index(drop=True)train.to_parquet('data/deeploc/deeploc-train.parquet', index=False)val.to_parquet('data/deeploc/deploc-val.parquet', index=False)test.to_parquet('data/deeploc/deeploc-test.parquet', index=False)1234567891011121314151617import pandas as pddf = pd.read_csv('https://services.healthtech.dtu.dk/services/DeepLoc-2.0/data/Swissprot_Train_Validation_dataset.csv').drop(['Unnamed: 0', 'Partition'], axis=1)df = df.melt(['Kingdom', 'ACC', 'Sequence','Membrane'], var_name='Location').query('value == 1.0').drop(labels='value', axis=1).astype({'Membrane': 'int8'})train = df.sample(frac=0.8)df = df.drop(train.index)val = df.sample(frac=0.5)test = df.drop(val.index)train = train.reset_index(drop=True)val = val.reset_index(drop=True)test = test.reset_index(drop=True)train.to_parquet('deeploc-train.parquet', index=False)val.to_parquet('deploc-val.parquet', index=False)test.to_parquet('deeploc-test.parquet', index=False)
README.md+14-20
deeploc-test.parquet+2-2
deeploc-train.parquet+2-2
deploc-val.parquet+2-2
prep.py+12-12