File size: 1,012 Bytes
a57235a
5969b2a
 
 
 
 
 
 
a57235a
85e43b0
5969b2a
85e43b0
5969b2a
851b8fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
license: cc-by-4.0
pretty_name: TrialDesignBench Source
configs:
- config_name: default
  data_files:
  - split: train
    path: data/tdr.csv
---

# TrialDesignBench Source

CSV index of clinical trials with linked protocol and SAP PDFs under `documents/<row_id>/`.

## Bulk download from AACT

`download_ctgov_prot_sap.py` downloads protocol and SAP PDFs in bulk from an [AACT](https://aact.ctti-clinicaltrials.org/) static dataset dump. It reads `<aact_dir>/provided_documents.txt` and saves each PDF to `documents/<nct_id>/<original-filename>.pdf`.

```bash
pip install pandas requests tqdm
python download_ctgov_prot_sap.py /path/to/aact_pipe_delimited_dump
```

Useful flags: `--output-dir`, `--limit N`, `--full` (re-download existing), `--include-icf` (also fetch ICF-only rows).

Example output (already in `documents/`):

- `documents/NCT03254108/Prot_000.pdf`, `documents/NCT03254108/SAP_001.pdf` — separate protocol and SAP
- `documents/NCT03521102/Prot_SAP_001.pdf` — combined protocol + SAP