haneulpark commited on
Commit
7be87d5
·
verified ·
1 Parent(s): dfe3157

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md CHANGED
@@ -37,6 +37,49 @@ This Hugging Face dataset repository provides PTMint-derived tables including a
37
  - Benchmarking models that predict PTM-dependent PPI regulation (enhance/inhibit)
38
  - PTM sites mapped to structural interfaces
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  ## Citation
41
 
42
  When referring to **PTMint**, please cite:
 
37
  - Benchmarking models that predict PTM-dependent PPI regulation (enhance/inhibit)
38
  - PTM sites mapped to structural interfaces
39
 
40
+ ## Quickstart Usage
41
+ ### Install HuggingFace Datasets package
42
+ Each subset can be loaded into python using the Huggingface [datasets](https://huggingface.co/docs/datasets/index) library.
43
+ First, from the command line install the `datasets` library
44
+
45
+ $ pip install datasets
46
+
47
+ then, from within python load the datasets library
48
+
49
+ >>> import datasets
50
+
51
+ ### Load Dataset
52
+
53
+ Load PTMint dataset.
54
+
55
+ >>> ptmint = datasets.load_dataset('RosettaCommons/PTMint')
56
+ Downloading readme: 4.83kB [00:00, 9.11MB/s]
57
+ Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 17.9M/17.9M [00:01<00:00, 17.4MB/s]
58
+ Downloading data: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 2.17M/2.17M [00:00<00:00, 6.04MB/s]
59
+ Generating ptmint_general split: 100%|█████████████████████████████████████████████████████████████████████████| 5156/5156 [00:00<00:00, 32354.87 examples/s]
60
+ Generating ptmint_phospho_interfaces split: 100%|████████████████████████████████████████████████████████████████| 639/639 [00:00<00:00, 33504.52 examples/s]
61
+
62
+ and the dataset is loaded as a `datasets.arrow_dataset.Dataset`
63
+
64
+ >>> ptmint
65
+ DatasetDict({
66
+ ptmint_general: Dataset({
67
+ features: ['Organism', 'Gene', 'Uniprot', 'PTM', 'Site', 'AA', 'SequenceWindow', 'Int_uniprot', 'Int_gene', 'Effect', 'Method', 'Disease', 'Co-localized', 'PMID', 'Co_localized', 'Complex', 'Origin', 'Confidence', 'PDBRES', 'Score', 'Interface', 'Domain', 'interface_sites_num', 'interface_sequence_dict', 'hf_complex_path', 'Gene_sequence', 'Int_gene_sequence', 'Interactor_chain_1_from_complex', 'Interactor_1_seq_from_complex', 'Interactor_chain_2_from_complex', 'Interactor_2_seq_from_complex', 'Alternative_Complex', 'site_in_interface', 'cluster_ID', 'split'],
68
+ num_rows: 5156
69
+ })
70
+ ptmint_phospho_interfaces: Dataset({
71
+ features: ['Organism', 'Gene', 'Uniprot', 'PTM', 'Site', 'AA', 'SequenceWindow', 'Int_uniprot', 'Int_gene', 'Effect', 'Method', 'Disease', 'Co-localized', 'PMID', 'Co_localized', 'Complex', 'Origin', 'Confidence', 'PDBRES', 'Score', 'Interface', 'Domain', 'interface_sites_num', 'interface_sequence_dict', 'hf_complex_path', 'Gene_sequence', 'Int_gene_sequence', 'Interactor_chain_1_from_complex', 'Interactor_1_seq_from_complex', 'Interactor_chain_2_from_complex', 'Interactor_2_seq_from_complex', 'Alternative_Complex', 'site_in_interface', 'cluster_ID', 'split'],
72
+ num_rows: 639
73
+ })
74
+ })
75
+
76
+ which is a column oriented format that can be accessed directly, converted in to a `pandas.DataFrame`, or `parquet` format, e.g.
77
+
78
+ >>> ptmint.data.column('Gene')
79
+ >>> ptmint.to_pandas()
80
+ >>> ptmint.to_parquet("dataset.parquet")
81
+
82
+
83
  ## Citation
84
 
85
  When referring to **PTMint**, please cite: