Skip to content

Commit

Permalink
chore: use lazy example data
Browse files Browse the repository at this point in the history
I've been switching between lazy and non-lazy. Bioconductor expects non-lazy,
but as we are submitting to CRAN, after all, lazy data should be used.
  • Loading branch information
tuner committed Feb 2, 2025
1 parent 5ac723b commit 4442a6b
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
LazyData: false
LazyData: true
URL: https://github.com/HautaniemiLab/jellyfisher, https://hautaniemilab.github.io/jellyfisher/
BugReports: https://github.com/HautaniemiLab/jellyfisher/issues
Imports:
Expand Down
1 change: 0 additions & 1 deletion R/jellyfisher.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
#'
#' @examples
#' # Plot the bundled example data
#' data(jellyfisher_example_tables)
#' jellyfisher(jellyfisher_example_tables,
#' options = list(
#' sampleHeight = 70,
Expand Down
3 changes: 0 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#' @return A list of tables filtered by patient
#'
#' @examples
#' data(jellyfisher_example_tables)
#' jellyfisher_example_tables |>
#' select_patients("EOC809")
#'
Expand Down Expand Up @@ -96,7 +95,6 @@ validate_tables <- function(tables) {
#' @return A list of tables with parents set for each sample
#'
#' @examples
#' data(jellyfisher_example_tables)
#' jellyfisher_example_tables |>
#' select_patients("EOC809") |>
#' set_parents(list("EOC809_r1Bow1_DNA1" = "EOC809_p2Per1_cO_DNA2")) |>
Expand Down Expand Up @@ -145,7 +143,6 @@ set_parents <- function(tables, parents, unset_missing = FALSE) {
#' @return A list of tables with ranks set for each sample
#'
#' @examples
#' data(jellyfisher_example_tables)
#' jellyfisher_example_tables |>
#' select_patients("EOC809") |>
#' set_ranks(list("EOC809_r1Bow1_DNA1" = 2, "EOC809_p2Per1_cO_DNA2" = 2),
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function's documentation.
library(jellyfisher)

# Plot the bundled example data
data("jellyfisher_example_tables")
jellyfisher(jellyfisher_example_tables)
```

Expand Down
1 change: 0 additions & 1 deletion man/jellyfisher.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/select_patients.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/set_parents.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/set_ranks.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion tools/generate-R-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ ${roxygenOptions.join("\n")}
#'
#' @examples
#' # Plot the bundled example data
#' data(jellyfisher_example_tables)
#' jellyfisher(jellyfisher_example_tables,
#' options = list(
#' sampleHeight = 70,
Expand Down
8 changes: 2 additions & 6 deletions vignettes/introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,13 @@ making it compatible with various tools and workflows.
The input data should follow specific structures for _samples_, _phylogeny_,
subclonal _compositions_, and optional _ranks_.

The Jellyfisher package includes an example data set based on the following
publication:
The `jellyfisher` package includes an example data set
(`jellyfisher_example_tables`) based on the following publication:
Lahtinen, A., Lavikka, K., Virtanen, A., et al. "Evolutionary states and
trajectories characterized by distinct pathways stratify patients with ovarian
high-grade serous carcinoma." _Cancer Cell_ **41**, 1103–1117.e12 (2023). DOI:
[10.1016/j.ccell.2023.04.017](https://doi.org/10.1016/j.ccell.2023.04.017).

```{r}
data(jellyfisher_example_tables)
```

```{r echo=F, message=F}
# Subset the data to keep the compiled vignette a bit smaller
jellyfisher_example_tables <- jellyfisher_example_tables |>
Expand Down

0 comments on commit 4442a6b

Please sign in to comment.