Skip to content

Commit

Permalink
Merge pull request #41 from CostaLab/devel
Browse files Browse the repository at this point in the history
Fixing vignette building.
  • Loading branch information
grasshoffm authored Oct 3, 2024
2 parents a1e1d41 + cc60d4e commit b2d3bad
Show file tree
Hide file tree
Showing 68 changed files with 179 additions and 78 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ Suggests:
testthat (>= 3.0.0),
tidyr,
tidyverse
VignetteBuilder: knitr
# VignetteBuilder: knitr
Config/testthat/edition: 3
4 changes: 2 additions & 2 deletions R/ClonalDefinition.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
#'@param se SummarizedExperiment object.
#'@param variants_ls List of variants for clonal definition
#'@param grouping The meta data column used to split the cells into groups. Default = NULL
#'@param n_cores Number of cores you want to use. Numeric.
#'@param identities Vector of groups, like samples.
#'@param verbose Should the function be verbose? Default = TRUE
#'@export
ClonalDefinition <- function(se, variants_ls, grouping = NULL, identities = NULL, verbose = TRUE){
ClonalDefinition <- function(se, variants_ls, grouping = NULL, identities = NULL, n_cores = 1, verbose = TRUE){
# Checking if the group variable is in the column data.
if(!is.null(grouping)){
# We check if the grouping variable is in the column data.
Expand Down Expand Up @@ -109,7 +110,6 @@ ClonalDefinition <- function(se, variants_ls, grouping = NULL, identities = NULL
cells_rest <- rep(TRUE, ncol(se_use))
}
cells <- colSums(rbind(cells, cells_rest)) == 2
coverage <- mean(colMeans(SummarizedExperiment::assays(se_use)[["coverage"]][combination_use, cells, drop = FALSE]))
cells <- cells[cells]
new_meta_data_subset[names(cells)] <- paste0("C", combination_number)
combinations_meta_data[[i]] <- rbind(combinations_meta_data[[i]],
Expand Down
2 changes: 1 addition & 1 deletion R/LoadingMAEGATK_typewise.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#'@param cellbarcode_length The length of the cell barcode. This should be the length of the actual barcode plus two for the suffix (-1). Default = 18
#'@param verbose Should the function be verbose? Default = TRUE
#'@export
LoadingMAEGATK_typewise <- function(samples_file, samples_path = NULL, patient, patient_column = "patient", type_use = "scRNAseq_MT", chromosome_prefix = "chrM",
LoadingMAEGATK_typewise <- function(samples_file, patient, samples_path = NULL, patient_column = "patient", type_use = "scRNAseq_MT", chromosome_prefix = "chrM",
min_cells = 2, cells_include = NULL, cells_exclude = NULL, barcodes_path = NULL, cellbarcode_length = 18, verbose = TRUE){
if(all(!is.null(samples_path), !is.null(barcodes_path))){
if(verbose) print(paste0("Loading the data for patient ", patient, "."))
Expand Down
2 changes: 2 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ template:
bootstrap: 5
vignettes:
build: false
build:
copy_vignettes: true
3 changes: 2 additions & 1 deletion docs/404.html

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

14 changes: 7 additions & 7 deletions docs/articles/BoneMarrow_SIGURD.html

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

3 changes: 2 additions & 1 deletion docs/articles/MPN_SIGURD.html

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

3 changes: 2 additions & 1 deletion docs/articles/SW_CellMixture_SIGURD.html

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

3 changes: 2 additions & 1 deletion docs/articles/TenX_CellMixture_SIGURD.html

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

7 changes: 5 additions & 2 deletions docs/articles/index.html

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

Loading

0 comments on commit b2d3bad

Please sign in to comment.