-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathREADME.Rmd
More file actions
85 lines (54 loc) · 3 KB
/
README.Rmd
File metadata and controls
85 lines (54 loc) · 3 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# TCIApathfinder
<!-- badges: start -->
[](https://cran.r-project.org/package=TCIApathfinder) [](https://cran.r-project.org/package=TCIApathfinder)
[](https://travis-ci.com/pamelarussell/TCIApathfinder)
[](https://github.com/pamelarussell/TCIApathfinder/actions)
<!-- badges: end -->
TCIApathfinder is a wrapper for The Cancer Imaging Archive's REST API v3.
The Cancer Imaging Archive (TCIA) hosts de-identified medical images
of cancer available for public download, as well as rich metadata
for each image series. TCIA provides a REST API for programmatic access
to the data. This package provides simple functions to access each API
endpoint. For more information about TCIA, see TCIA's [website](http://www.cancerimagingarchive.net/).
TCIApathfinder is on [CRAN](https://CRAN.R-project.org/package=TCIApathfinder).
## Installation
From within R:
```{r eval = F}
install.packages("TCIApathfinder")
```
From GitHub:
```{r eval = F}
# install.packages("devtools")
devtools::install_github("pamelarussell/TCIApathfinder")
```
## Authentication
An API key is not needed to access public collections on TCIA but it could be useful for private collections.
To obtain and correctly store your API key:
1. Request a key from TCIA by following the instructions [here](https://wiki.cancerimagingarchive.net/display/Public/TCIA+Programmatic+Interface+%28REST+API%29+Usage+Guide).
2. Create a text file in your home directory (`~/`) called `.Renviron`.
3. Create the contents of the `.Renviron` file like this, making sure the last line in the file is empty. Otherwise, R will silently fail to load the file.
```
TCIA_API_KEY=xxx-xxx-xxx-xxx
```
4. Restart R. `.Renviron` is only processed at the beginning of an R session.
## Package usage
Detailed vignettes on package usage and downstream image analysis can be viewed on [CRAN](https://CRAN.R-project.org/package=TCIApathfinder) or from within an R session with `browseVignettes("TCIApathfinder")`.
## Citation
From within R:
``` r
citation("TCIApathfinder")
```
[TCIApathfinder: An R Client for the Cancer Imaging Archive REST API](https://doi.org/10.1158/0008-5472.CAN-18-0678). Pamela Russell, Kelly Fountain, Dulcy Wolverton and Debashis Ghosh. Cancer Res August 1 2018 (78) (15) 4424-4426; DOI: 10.1158/0008-5472.CAN-18-0678.
## More information on the TCIA REST API
- [API usage guide](https://wiki.cancerimagingarchive.net/display/Public/TCIA+Programmatic+Interface+%28REST+API%29+Usage+Guide)
- [Object type definitions](https://wiki.cancerimagingarchive.net/display/Public/TCIA+API+Return+Values)