Aakash-Tripathi commited on
Commit
8939f10
·
verified ·
1 Parent(s): 8cd75f0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +114 -0
README.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - image-classification
5
+ - feature-extraction
6
+ tags:
7
+ - medical
8
+ - pathology
9
+ - radiology
10
+ - clinical
11
+ - oncology
12
+ - whole-slide-image
13
+ - dicom
14
+ - multimodal
15
+ size_categories:
16
+ - n<1K
17
+ pretty_name: HoneyBee Sample Files
18
+ ---
19
+
20
+ # HoneyBee Sample Files
21
+
22
+ Sample data for the [HoneyBee](https://github.com/Lab-Rasool/HoneyBee) framework — a scalable, modular toolkit for multimodal AI in oncology.
23
+
24
+ These files are used by the HoneyBee example notebooks to demonstrate clinical, pathology, and radiology processing pipelines.
25
+
26
+ **Paper**: [HoneyBee: A Scalable Modular Framework for Creating Multimodal Oncology Datasets with Foundational Embedding Models](https://arxiv.org/abs/2405.07460)
27
+ **Package**: [`pip install honeybee-ml`](https://pypi.org/project/honeybee-ml/)
28
+
29
+ ## Files
30
+
31
+ | File | Type | Size | Description |
32
+ |------|------|------|-------------|
33
+ | `sample.PDF` | Clinical | 70 KB | De-identified clinical report (PDF) for NLP extraction |
34
+ | `sample.svs` | Pathology | 146 MB | Whole-slide image (Aperio SVS) for tissue detection, patch extraction, and embedding |
35
+ | `CT/` | Radiology | 105 MB | CT scan with 2 DICOM series (205 slices total) for radiology preprocessing |
36
+
37
+ ### CT Directory Structure
38
+
39
+ ```
40
+ CT/
41
+ ├── 1.3.6.1.4.1.14519.5.2.1.6450.4007.1209.../ (101 slices)
42
+ └── 1.3.6.1.4.1.14519.5.2.1.6450.4007.2906.../ (104 slices)
43
+ ```
44
+
45
+ ## Usage
46
+
47
+ Install HoneyBee:
48
+
49
+ ```bash
50
+ pip install honeybee-ml[all]
51
+ ```
52
+
53
+ ### Pathology — Load a whole-slide image
54
+
55
+ ```python
56
+ from huggingface_hub import hf_hub_download
57
+ from honeybee.loaders.Slide.slide import Slide
58
+ from honeybee.processors.wsi import PatchExtractor
59
+
60
+ slide_path = hf_hub_download(
61
+ repo_id="Lab-Rasool/honeybee-samples",
62
+ filename="sample.svs",
63
+ repo_type="dataset",
64
+ )
65
+
66
+ slide = Slide(slide_path)
67
+ slide.detect_tissue(method="otsu")
68
+ patches = PatchExtractor(patch_size=256).extract(slide)
69
+ print(f"Extracted {len(patches)} patches from {slide.dimensions}")
70
+ ```
71
+
72
+ ### Clinical — Process a clinical PDF
73
+
74
+ ```python
75
+ from huggingface_hub import hf_hub_download
76
+ from honeybee.processors import ClinicalProcessor
77
+
78
+ pdf_path = hf_hub_download(
79
+ repo_id="Lab-Rasool/honeybee-samples",
80
+ filename="sample.PDF",
81
+ repo_type="dataset",
82
+ )
83
+
84
+ processor = ClinicalProcessor()
85
+ result = processor.process(pdf_path)
86
+ print(result["entities"])
87
+ ```
88
+
89
+ ### Radiology — Download CT DICOM series
90
+
91
+ ```python
92
+ from huggingface_hub import snapshot_download
93
+
94
+ ct_dir = snapshot_download(
95
+ repo_id="Lab-Rasool/honeybee-samples",
96
+ repo_type="dataset",
97
+ allow_patterns="CT/**",
98
+ )
99
+ ```
100
+
101
+ ## Citation
102
+
103
+ ```bibtex
104
+ @article{rasool2024honeybee,
105
+ title={HoneyBee: A Scalable Modular Framework for Creating Multimodal Oncology Datasets with Foundational Embedding Models},
106
+ author={Rasool, Ghulam and others},
107
+ journal={arXiv preprint arXiv:2405.07460},
108
+ year={2024}
109
+ }
110
+ ```
111
+
112
+ ## License
113
+
114
+ Apache 2.0 — see the [HoneyBee repository](https://github.com/Lab-Rasool/HoneyBee) for details.