Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing importFrom and vignette issues #49

Merged
merged 8 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/vignette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ jobs:
Rscript -e 'remotes::install_github("ncborcherding/scRepertoire")'
shell: bash -l {0}

- name: Install specific version of pillar to avoid weird error message
run: |
Rscript -e 'remotes::install_github("r-lib/[email protected]")'
shell: bash -l {0}
# - name: Install specific version of pillar to avoid weird error message
# run: |
# Rscript -e 'remotes::install_github("r-lib/[email protected]")'
# shell: bash -l {0}

- name: Install package
run: R CMD INSTALL .
Expand Down
2 changes: 1 addition & 1 deletion R/projectProbability.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param waypoints Integer vector. Indices of the waypoints used in the Markov chain.
#' @param probabilities Numeric vector. Probabilities associated with the waypoints, calculated from the Markov chain.
#' @param t Numeric. The diffusion time to be used in the projection.
#' @importFrom destiny eigenvalues
#' @importFrom destiny eigenvectors eigenvalues
#' @importFrom stats sd
#' @return each pseudobulk's probabilites
projectProbability <- function(diffusionmap, waypoints, probabilities, t = 1) {
Expand Down
13 changes: 10 additions & 3 deletions vignettes/vignette_from_scRepertoire.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ devtools::install_github("tuonglab/dandelionR", dependencies = TRUE)

In a standard analysis workflow in R, users probably choose to read in their VDJ data with [scRepertoire](https://github.com/ncborcherding/scRepertoire). In this vignette, we will demonstrate how to perform TCR trajectory analysis starting from 'raw' data i.e. just a standard single-cell gene expression data (stored in `SingleCellExperiment`) and VDJ data (in AIRR format).

## Installation

Install `scRepertoire` if you haven't already.
```{r, eval = FALSE}
if (!requireNamespace("scRepertoire", quietly = TRUE)) { # only for the tutorial
Expand All @@ -54,8 +52,17 @@ if (!requireNamespace("scRepertoire", quietly = TRUE)) { # only for the tutorial
devtools::install_github("ncborcherding/scRepertoire")
```

## Usage

### Load the required libraries
```{r}

```{r, message=FALSE, warning=FALSE, include=FALSE}
library(destiny)
# there's a known 'error' with loading a dependency of destiny, pillar:
# https://github.com/r-lib/pillar/pull/668
```

```{r, message=FALSE, warning=FALSE}
library(dandelionR)
library(scRepertoire)
library(scater)
Expand Down
12 changes: 10 additions & 2 deletions vignettes/vignette_reproduce_original.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ library(BiocStyle)

In this vignette, we will demonstrate how to perform TCR trajectory analysis starting from data that has already been processed by `dandelion` in python. This is to demonstrate that the original method/results in the `dandelion` paper can be reproduced.

## Usage
## Load the required libraries

```{r, message = FALSE, warning = FALSE}
```{r, message=FALSE, warning=FALSE, include=FALSE}
library(destiny)
# there's a known 'error' with loading a dependency of destiny, pillar:
# https://github.com/r-lib/pillar/pull/668
```

We will also load `scRepertoire` and `scater` for the analysis.
```{r, message=FALSE, warning=FALSE}
library(dandelionR)
library(scRepertoire)
library(scater)
```

Expand Down
Loading