File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,22 @@ Authors@R: c(
1111 )
1212Description: An R package to interact with the Single-Cell Pediatric Cancer Atlas Portal API.
1313License: BSD_3_clause + file LICENSE
14+ URL: https://alexslemonade.github.io/ScPCAr, https://github.com/AlexsLemonade/ScPCAr
15+ BugReports: https://github.com/AlexsLemonade/ScPCAr/issues
1416Encoding: UTF-8
1517Roxygen: list(markdown = TRUE)
1618RoxygenNote: 7.3.2
19+ Imports:
20+ curl,
21+ dplyr,
22+ glue,
23+ httr2 (>= 1.2.0),
24+ purrr,
25+ readr,
26+ stringr,
27+ tibble,
28+ tidyr,
29+ utils
1730Suggests:
1831 devtools,
1932 ggplot2,
@@ -27,15 +40,3 @@ Suggests:
2740 withr
2841Config/testthat/edition: 3
2942VignetteBuilder: knitr
30- Imports:
31- curl,
32- dplyr,
33- glue,
34- httr2 (>= 1.2.0),
35- purrr,
36- readr,
37- stringr,
38- tibble,
39- tidyr,
40- utils
41- URL: https://alexslemonade.github.io/ScPCAr/
Original file line number Diff line number Diff line change @@ -4,4 +4,41 @@ An R package for interacting with the [Single-cell Pediatric Cancer Atlas (ScPCA
44
55<!-- badges: start -->
66[ ![ R-CMD-check] ( https://github.com/AlexsLemonade/ScPCAr/actions/workflows/R-CMD-check.yaml/badge.svg )] ( https://github.com/AlexsLemonade/ScPCAr/actions/workflows/R-CMD-check.yaml )
7- <!-- badges: end -->
7+ <!-- badges: end -->
8+
9+ ## Installation
10+
11+ The ` ScPCAr ` package can be installed from the GitHub repository using the ` remotes ` package:
12+
13+ ``` r
14+ remotes :: install_github(" AlexsLemonade/ScPCAr" )
15+ ```
16+
17+ ## Usage
18+
19+ The package provides functions to get metadata and download data from the ScPCA Portal from within R.
20+ The code chunk below shows an example of how to authenticate and download a single sample from the portal.
21+
22+ ``` r
23+ library(ScPCAr )
24+
25+ # First, look at the terms of use
26+ view_terms()
27+
28+ # Get an authentication token for use with the ScPCA Portal
29+ auth_token <- get_auth(email = " your.email@example.com" , agree = TRUE )
30+
31+ # Get the sample metadata for a project
32+ sample_metadata <- get_sample_metadata(project_id = " SCPCP000001" )
33+
34+ # Download a data for a sample
35+ # this function returns a vector of the downloaded file paths
36+ file_paths <- download_sample(
37+ sample_id = " SCPCS000001" ,
38+ auth_token = auth_token ,
39+ destination = " scpca_data" ,
40+ format = " sce"
41+ )
42+ ```
43+
44+ For detailed usage instructions, please refer to the [ package documentation] ( https://alexslemonade.github.io/ScPCAr/ ) .
Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ template:
33 bootstrap : 5
44 light-switch : true
55
6+ home :
7+ links :
8+ - text : The ScPCA Portal
9+ href : https://scpca.alexslemonade.org/
10+ - text : Alex's Lemonade Stand Foundation
11+ href : https://alexslemonade.org/
12+ - text : The Childhood Cancer Data Lab
13+ href : https://www.ccdatalab.org
14+
615reference :
716 - title : Metadata
817 contents :
You can’t perform that action at this time.
0 commit comments