Tonic commited on
Commit
9a73104
·
verified ·
1 Parent(s): 9bb8e2b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +127 -1
README.md CHANGED
@@ -53,4 +53,130 @@ tags:
53
  pretty_name: 'GeneReviews '
54
  size_categories:
55
  - n<1K
56
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  pretty_name: 'GeneReviews '
54
  size_categories:
55
  - n<1K
56
+ task_categories:
57
+ - text-generation
58
+ ---
59
+
60
+ # GeneReviews Dataset Extraction
61
+
62
+ This project extracts text and metadata from GeneReviews® chapters downloaded from NCBI Bookshelf and creates a structured dataset in Hugging Face format.
63
+
64
+ ## Overview
65
+
66
+ GeneReviews® is an international point-of-care resource for clinicians, providing clinically relevant and medically actionable information for inherited conditions. This project processes the XML files from the GeneReviews database and creates a structured dataset suitable for machine learning and research applications.
67
+
68
+
69
+ ### 📈 **Dataset Statistics:**
70
+
71
+ - **Total Records**: 929 GeneReviews chapters
72
+ - **Average Abstract Length**: 899.6 characters
73
+ - **Average Content Length**: 56,377.9 characters
74
+ - **Total References**: 13,683 references across all chapters
75
+ - **Average References per Chapter**: 14.7
76
+ - **Chapters with >100 references**: 12 chapters
77
+ - **Total Keywords**: 9,616
78
+ - **Unique Keywords**: 6,824
79
+
80
+ ## Source Information
81
+
82
+ - **Source**: [GeneReviews® on NCBI Bookshelf](https://www.ncbi.nlm.nih.gov/books/NBK1116/)
83
+ - **Publisher**: University of Washington, Seattle
84
+ - **ISSN**: 2372-0697
85
+ - **Content Type**: Clinical reviews of genetic conditions
86
+ - **License**: Open access for noncommercial research purposes
87
+
88
+ ## Dataset Structure
89
+
90
+ Each record in the dataset contains the following fields:
91
+
92
+ | Field | Type | Description |
93
+ |-------|------|-------------|
94
+ | `id` | string | Unique chapter identifier |
95
+ | `ch_id` | string | Chapter ID (as you renamed it) |
96
+ | `title` | string | Chapter title |
97
+ | `authors` | string | Comma-separated author names |
98
+ | `journal` | string | "GeneReviews®" |
99
+ | **`abstract`** | **string** | **Chapter abstract/summary only** |
100
+ | **`content`** | **string** | **Chapter body content only (excluding abstract)** |
101
+ | **`references`** | **array** | **Array of reference citations** |
102
+ | `keywords` | array | Keywords and terms |
103
+ | `source_url` | string | Link to GeneReviews resource |
104
+ | `publication_types` | array | ["Review", "Clinical Review"] |
105
+ | `created_date` | string | Creation date |
106
+ | `updated_date` | string | Last update date |
107
+ | `revised_date` | string | Revision date |
108
+
109
+
110
+ ## Files
111
+
112
+ - `extract_genereviews.py`: Main extraction script
113
+ - `load_genereviews_dataset.py`: Script to load and demonstrate the dataset
114
+ - `requirements.txt`: Python dependencies
115
+ - `genereviews_dataset/`: Hugging Face dataset directory
116
+ - `genereviews_dataset.json`: JSON version of the dataset
117
+
118
+ ## Installation
119
+
120
+ 1. Install the required dependencies:
121
+ ```bash
122
+ pip install -r requirements.txt
123
+ ```
124
+
125
+ ## Usage
126
+
127
+ ```python
128
+ from datasets import load_from_disk
129
+
130
+ # Load the dataset
131
+ dataset = load_from_disk("genereviews_dataset")
132
+
133
+ # Access by chapter
134
+ record = dataset[0]
135
+ chapter_id = record['ch_id']
136
+
137
+ # Access separated content
138
+ abstract = record['abstract'] # Only the abstract
139
+ content = record['content'] # Only the body content
140
+ references = record['references'] # Array of reference citations
141
+ ```
142
+
143
+ ### Search for Specific Conditions
144
+
145
+ ```python
146
+ # Search for cystic fibrosis
147
+ cf_records = dataset.filter(lambda x: "cystic fibrosis" in x['title'].lower())
148
+
149
+ # Search for cancer-related content
150
+ cancer_records = dataset.filter(lambda x: "cancer" in x['content'].lower())
151
+ ```
152
+
153
+ ### Analyze Publication Dates
154
+
155
+ ```python
156
+ # Find recently updated chapters
157
+ recent_updates = dataset.filter(lambda x: "2024" in x['updated_date'])
158
+ ```
159
+
160
+ ### Extract Keywords
161
+
162
+ ```python
163
+ # Get all unique keywords
164
+ all_keywords = set()
165
+ for record in dataset:
166
+ all_keywords.update(record['keywords'])
167
+ ```
168
+
169
+ ## Citation
170
+
171
+ When using this dataset, please cite:
172
+
173
+ ```
174
+ GeneReviews® [Internet]. Seattle (WA): University of Washington, Seattle; 1993-2025.
175
+ Available from: https://www.ncbi.nlm.nih.gov/books/NBK1116/
176
+ ```
177
+
178
+ ## License
179
+
180
+ This dataset is derived from GeneReviews®, which is owned by the University of Washington.
181
+ Permission is granted to reproduce, distribute, and translate copies of content materials
182
+ for noncommercial research purposes only, provided that proper attribution is given.