Skip to content

Commit

Permalink
fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-buscaroli committed Aug 23, 2024
1 parent b637109 commit 193c9cd
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 23 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Imports:
scales,
quadprog,
progress,
ggh4x
ggh4x,
Polychrome
RoxygenNote: 7.3.1
URL: https://github.com/caravagnalab/bascule,
https://caravagnalab.github.io/bascule/
Expand Down
3 changes: 0 additions & 3 deletions R/getters.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ get_signatures_aux = function(x, what, types=get_types(x), matrix=FALSE) {
#'
#' @return list of long or wide-formatted mutations counts.
#' @export
#'
#' @examples
#' get_input(example_fit)
get_input = function(x, types=get_types(x), samples=get_samples(x),
clusters=get_cluster_labels(x), matrix=FALSE,
reconstructed=FALSE, add_groups=FALSE, by_sigs=FALSE) {
Expand Down
3 changes: 0 additions & 3 deletions R/plot_exposures.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#'
#' @return ggplot object.
#' @export
#'
#' @examples
#' plot_exposures(example_fit)
plot_exposures = function(x,
types=get_types(x),
samples=get_samples(x),
Expand Down
3 changes: 0 additions & 3 deletions R/plot_signatures.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
#'
#' @return ggplot object.
#' @export
#'
#' @examples
#' plot_signatures(example_fit)
plot_signatures = function(x, types=get_types(x), context=T, cls=NULL,
signames=get_signames(x)) {

Expand Down
3 changes: 0 additions & 3 deletions man/get_input.Rd

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

3 changes: 0 additions & 3 deletions man/plot_exposures.Rd

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

3 changes: 0 additions & 3 deletions man/plot_signatures.Rd

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

7 changes: 3 additions & 4 deletions vignettes/articles/Inference.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ knitr::opts_chunk$set(
```{r setup, warning=FALSE, message=FALSE}
knitr::opts_chunk$set(warning = FALSE, message = FALSE)
library(bascule)
reticulate::install_python(version="3.9.16")
reticulate::py_install(packages="pybascule",
envname="r-reticulate",
pip=TRUE,
pip=TRUE,
python_version="3.9.16")
reticulate::use_condaenv(condaenv="r-reticulate")
py = reticulate::import("pybascule")
```

Expand Down Expand Up @@ -48,7 +47,7 @@ K_list = 0:7

Now, we can fit the model. Let's first fit the NMF to perform signatures deconvolution.
```{r}
x = fit(counts=counts, k_list=K_list, n_steps=3000,
x = fit(counts=counts, k_list=K_list, n_steps=300,
reference_cat=reference_cat,
keep_sigs=c("SBS1","SBS5"), # force fixed signatures
store_fits=TRUE, py=py)
Expand Down

0 comments on commit 193c9cd

Please sign in to comment.