update README.md
Browse filesinclude more details, such as usage and instruction.
README.md
CHANGED
|
@@ -1,29 +1,126 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
pretty_name: Refined TCGA-PRAD Prostate Cancer Pathology Dataset
|
| 9 |
-
size_categories:
|
| 10 |
-
- 1K<n<10K
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
| Type | Counts |
|
| 17 |
|--------------------------|--------|
|
| 18 |
| TCGA WSI Total | 435 |
|
| 19 |
| Agree with TCGA label | 190 |
|
| 20 |
| Disagree with TCGA label | 245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: README
|
| 3 |
+
emoji: 👁
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: gray
|
| 6 |
+
sdk: static
|
| 7 |
+
pinned: false
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
+
|
| 11 |
+
# Dataset: A Second Opinion on TCGA PRAD Prostate Dataset Labels with ROI-Level Annotations
|
| 12 |
+
|
| 13 |
+
## Overview
|
| 14 |
+
This dataset provides enhanced and corrected Gleason grading annotations for the TCGA PRAD prostate cancer dataset, supported by Region of Interest (ROI)-level spatial annotations. Developed in collaboration with **[Codatta](https://codatta.io)** and **[DPath.ai](https://dpath.ai)**, where **[DPath.ai](https://dpath.ai)** launched a dedicated community via **[Codatta](https://codatta.io)** to assemble a network of pathologists, this dataset improved accuracies and granularity of information in the original **[TCGA-PRAD](https://portal.gdc.cancer.gov/projects/TCGA-PRAD)** slide-level labels. The collaborative effort enabled pathologists worldwide to contribute annotations, improving label reliability for AI model training and advancing pathology research. Unlike traditional labeling marketplaces, collaborators a.k.a pathologists retain ownership of the dataset, ensuring their contributions remain recognized, potentially rewarded and valuable within the community. Please cite the dataset in any publication or work using the provided citation format to acknowledge the collaborative efforts of **[Codatta](https://codatta.io)**, **[DPath.ai](https://dpath.ai)**, and the contributing pathologists.
|
| 15 |
+
|
| 16 |
+
## Motivation
|
| 17 |
+
We discovered significant inconsistencies in the diagnostic labels of the TCGA PRAD dataset, where:
|
| 18 |
+
* Some labels could be enhanced with additional opinons (labels).
|
| 19 |
+
* Some labels lacked granular descriptions of the Gleason patterns.
|
| 20 |
+
|
| 21 |
+
This presents a challenge for AI pathology models, as reported high accuracy might reflect learning from improved labels. To address this:
|
| 22 |
+
* Pathologists re-annotated slides to improve label quality.
|
| 23 |
+
* ROI annotations were introduced to clearly differentiate Gleason tumor grades.
|
| 24 |
+
* Each annotation is supported by detailed reasoning, providing transparency and justification for corrections.
|
| 25 |
+
|
| 26 |
+
## Dataset Contents
|
| 27 |
+
This dataset includes two primary files:
|
| 28 |
+
1. Slide-Level Labels ([PRAD.csv](https://huggingface.co/datasets/Codatta/Refined-TCGA-PRAD-Prostate-Cancer-Pathology-Dataset/blob/main/dataset/PRAD/PRAD.csv))
|
| 29 |
+
* Contains comprehensive metadata and diagnostic details:
|
| 30 |
+
* `slide_id`: Unique slide identifier.
|
| 31 |
+
* `slide_name`: TCGA Whole Slide Image (WSI) name.
|
| 32 |
+
* `label`: Corrected Gleason grade (e.g., 4+3, 5+4).
|
| 33 |
+
* `diagnosis`: Pathologist-provided reasoning for the label.
|
| 34 |
+
* `num_rois`: Number of labeled Regions of Interest (ROIs) per slide.
|
| 35 |
+
|
| 36 |
+
2. ROI-Level Annotations (**.geojson**)
|
| 37 |
+
* Provides spatial coordinates for tumor regions:
|
| 38 |
+
* Each ROI corresponds to specific Gleason grades (e.g., Grade 3, Grade 4).
|
| 39 |
+
* Compatible with tools like QuPath for interactive visualization.
|
| 40 |
+
|
| 41 |
+
## Key Statistics
|
| 42 |
| Type | Counts |
|
| 43 |
|--------------------------|--------|
|
| 44 |
| TCGA WSI Total | 435 |
|
| 45 |
| Agree with TCGA label | 190 |
|
| 46 |
| Disagree with TCGA label | 245 |
|
| 47 |
+
> We are currently in the process of uploading data files to meet the quantities mentioned above. This is an ongoing effort to balance community impact and data quality.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
## Re-Annotation Process
|
| 51 |
+
1. **Curation of Cases for Enhancement**: An expert committee identified slides requiring review.
|
| 52 |
+
2. **Annotation**: Junior pathologists performed initial ROI-level annotations.
|
| 53 |
+
3. **Expert Review**: Senior pathologists validated and refined the annotations.
|
| 54 |
+
4. **Enhancements**:
|
| 55 |
+
* Granular ROI labeling for tumor regions.
|
| 56 |
+
* GIntroduction of Minor Grades: For example, Minor Grade 5 indicates <5% of Gleason Grade 5 tumor presence.
|
| 57 |
+
* GPathologist Reasoning: Each label includes a detailed explanation of the annotation process.
|
| 58 |
+
Some labels can be improved by adding alternative opinions to enhance the labels further.
|
| 59 |
+
|
| 60 |
+
## Improvements Over TCGA Labels
|
| 61 |
+
* **Accuracy**: Enhanced slide-level Gleason labels with additional opinions and improved granularity.
|
| 62 |
+
* **Granularity**: Clear ROI-level annotations for primary, secondary, and minor tumor grades.
|
| 63 |
+
* **Transparency**: Pathologist-provided reasoning ensures a chain of thought for label decisions.
|
| 64 |
+
|
| 65 |
+
**Example**:
|
| 66 |
+
* Original TCGA label: Gleason Grade 4+3.
|
| 67 |
+
* Enhanced label: Gleason Grade 4+3 + Minor Grade 5.
|
| 68 |
+
|
| 69 |
+
## Usage
|
| 70 |
+
### For AI Training Pipelines
|
| 71 |
+
Combine Whole Slide Images (WSI) from TCGA PRAD with this dataset's slide-level labels (PRAD.csv) and ROI annotations (.geojson) to generate high-quality [X, y] pairs.
|
| 72 |
+
### For Pathology Research
|
| 73 |
+
Use the ROI annotations in WSI viewers (e.g., QuPath) to interactively visualize labeled tumor regions.
|
| 74 |
+
Explore detailed reasoning behind Gleason grade decisions to understand tumor composition.
|
| 75 |
+
### How to Load the Dataset
|
| 76 |
+
1. **CSV File**
|
| 77 |
+
Use pandas to explore slide-level metadata:
|
| 78 |
+
```python
|
| 79 |
+
import pandas as pd
|
| 80 |
+
df = pd.read_csv("PRAD.csv")
|
| 81 |
+
print(df.head())
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
2. **GeoJSON File**
|
| 85 |
+
Load ROIs using tools like QuPath or GeoPandas:
|
| 86 |
+
```python
|
| 87 |
+
import geopandas as gpd
|
| 88 |
+
roi_data = gpd.read_file("annotations.geojson")
|
| 89 |
+
roi_data.plot()
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
3. TCGA Whole Slide Images
|
| 93 |
+
Original WSI files can be downloaded from the GDC Portal.
|
| 94 |
+
Match WSI filenames with the `slide_name` column in `PRAD.csv` for integration.
|
| 95 |
+
|
| 96 |
+
## Example Workflow
|
| 97 |
+
Download **[TCGA PRAD](https://portal.gdc.cancer.gov/projects/TCGA-PRAD)** slides from the GDC Portal.
|
| 98 |
+
**Load** [`PRAD.csv`](https://huggingface.co/datasets/Codatta/Refined-TCGA-PRAD-Prostate-Cancer-Pathology-Dataset/blob/main/dataset/PRAD/PRAD.csv) to access corrected labels and reasoning.
|
| 99 |
+
Visualize ROI annotations using the .geojson files.
|
| 100 |
+
Train AI models with X = WSI images, y = ROI annotations + slide-level labels.
|
| 101 |
+
|
| 102 |
+
## Licensing
|
| 103 |
+
This dataset is provided under a **Creative Commons Attribution 4.0 International (CC BY 4.0)** license.
|
| 104 |
|
| 105 |
+
## Credits
|
| 106 |
+
This dataset is a collaboration between:
|
| 107 |
+
* [Codatta](https://codatta.io) and the network of anynmous pathologists
|
| 108 |
+
* [DPath.ai](https://dpath.ai)
|
| 109 |
+
Special thanks to the Hugging Face community for hosting this dataset.
|
| 110 |
|
| 111 |
+
## Contact
|
| 112 |
+
For questions, suggestions, or collaborations (launch custom data sourcing and labeling tasks), please reach out via:
|
| 113 |
+
* **Email**: hello@codatta.io
|
| 114 |
+
* **Website**: https://codatta.ai
|
| 115 |
|
| 116 |
+
## Citing This Work
|
| 117 |
+
If you use this dataset in your research or application, please cite it as:
|
| 118 |
+
```
|
| 119 |
+
@dataset{codatta_tcga_prad_roi,
|
| 120 |
+
title={A Second Opinion on TCGA PRAD Prostate Dataset Labels with ROI-Level Annotations},
|
| 121 |
+
author={codatta, DPath, and Expert Pathologists},
|
| 122 |
+
year={2024},
|
| 123 |
+
publisher={Hugging Face},
|
| 124 |
+
url={https://huggingface.co/datasets/codatta/TCGA-PRAD-annotations}
|
| 125 |
+
}
|
| 126 |
+
```
|