Skip to content

Commit ef7a4f3

Browse files
committed
Fixed and accepted by CRAN, 2.2.0 release
1 parent ac07254 commit ef7a4f3

17 files changed

+172
-240
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: rliger
22
Version: 2.2.0
3-
Date: 2025-04-24
3+
Date: 2025-05-01
44
Type: Package
55
Title: Linked Inference of Genomic Experimental Relationships
66
Description: Uses an extension of nonnegative matrix factorization to identify shared and dataset-specific factors. See Welch J, Kozareva V, et al (2019) <doi:10.1016/j.cell.2019.05.006>, and Liu J, Gao C, Sodicoff J, et al (2020) <doi:10.1038/s41596-020-0391-8> for more details.

R/GSEA.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ plotGODot <- function(
382382
yend = .data[['term_name']],
383383
color = -log10(.data[['p_value']])
384384
),
385-
size = 0.5
385+
linewidth = 0.5
386386
) +
387387
ggplot2::geom_point() +
388388
ggplot2::scale_size_continuous(range = c(minDotSize, maxDotSize)) +

R/h5ad.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
#' }
5151
#' @export
5252
#' @examples
53+
#' print("The example below works, but causes PDF manual rendering issue for some reason")
54+
#' \dontrun{
5355
#' writeH5AD(pbmc, filename = tempfile(fileext = ".h5ad"))
56+
#' }
5457
writeH5AD <- function(
5558
object,
5659
...

R/integration.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,7 @@ centroidAlign.Seurat <- function(
21202120
#' \code{byDataset = FALSE} or each dataset a value otherwise.
21212121
#' @export
21222122
#' @examples
2123+
#' \donttest{
21232124
#' if (requireNamespace("RcppPlanc", quietly = TRUE)) {
21242125
#' pbmc <- pbmc %>%
21252126
#' normalize %>%
@@ -2129,6 +2130,7 @@ centroidAlign.Seurat <- function(
21292130
#' alignFactors
21302131
#' calcAgreement(pbmc)
21312132
#' }
2133+
#' }
21322134
calcAgreement <- function(
21332135
object,
21342136
ndims = 40,

R/suggestK.R

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#'
1515
#' Note that this function is supposed to take a long time when a larger number
1616
#' of random starts is requested (e.g. 50) for a robust suggestion. It is safe
17-
#' to interupt the progress (e.g. Ctrl+C) and the function will still return
17+
#' to interrupt the progress (e.g. Ctrl+C) and the function will still return
1818
#' the recorded objective errors already completed.
1919
#' @param object A \linkS4class{liger} object.
2020
#' @param kTest A numeric vector of k values to be tested. Default 5, 10, 15,
@@ -29,10 +29,20 @@
2929
#' \item{stats}{A data frame containing the k values, objective errors, and
3030
#' random starts.}
3131
#' \item{figure}{A ggplot2 object showing the objective errors and variance
32-
#' for each k value.}
32+
#' for each k value. The left y-axis corresponds to the dots and bands, the
33+
#' right second y-axis maps to the blue line that stands for the variance. }
3334
#' @examples
35+
#' \donttest{
3436
#' pbmcPlot <- scaleNotCenter(pbmcPlot)
35-
#' suggestK(pbmcPlot, kTest = c(10, 15, 20), nRandomStart = 5)
37+
#' # Minimum test example, not for demonstrative recommendation
38+
#' suggests <- suggestK(
39+
#' object = pbmcPlot,
40+
#' kTest = c(2, 3),
41+
#' nRandomStart = 2,
42+
#' nIteration = 2
43+
#' )
44+
#' suggests$figure
45+
#' }
3646
suggestK <- function(
3747
object,
3848
kTest = seq(5, 50, 5),

R/suggestK2.R

Whitespace-only changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
LIGER (installed as `rliger` ) is a package for integrating and analyzing multiple single-cell datasets, developed by the Macosko lab and maintained/extended by the Welch lab. It relies on integrative non-negative matrix factorization to identify shared and dataset-specific factors.
2121

2222
Check out our [Cell paper](https://doi.org/10.1016/j.cell.2019.05.006) for a more complete description of the methods and analyses. To access data used in our SN and BNST analyses, visit our study "SCP466" on the
23-
[Single Cell Portal](https://singlecell.broadinstitute.org/single_cell).
23+
Single Cell Portal.
2424

2525
LIGER can be used to compare and contrast experimental datasets in a variety of contexts, for instance:
2626

cran-comments.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

man/calcAgreement.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/suggestK.Rd

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)