-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from noriakis/update-documentation
Documentation revision
- Loading branch information
Showing
57 changed files
with
4,961 additions
and
3,919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
core <- c("dplyr", "tidyr", "ttservice", "ggplot2") | ||
|
||
core_unloaded <- function() { | ||
search <- paste0("package:", core) | ||
core[!search %in% search()] | ||
} | ||
|
||
# Attach the package from the same library it was loaded from before. | ||
# [source: https://github.com/tidy-biology/tidyverse/issues/171] | ||
same_library <- function(pkg) { | ||
loc <- if (pkg %in% loadedNamespaces()) | ||
dirname(getNamespaceInfo(pkg, "path")) | ||
library(pkg, lib.loc=loc, character.only=TRUE, warn.conflicts=FALSE) | ||
} | ||
|
||
tidyverse_attach <- function() { | ||
to_load <- core_unloaded() | ||
|
||
suppressPackageStartupMessages( | ||
lapply(to_load, same_library)) | ||
|
||
invisible(to_load) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,41 @@ | ||
#' Example data set 2 | ||
#' | ||
#' Cell types of 80 PBMC single cells | ||
#' | ||
#' A dataset containing the barcodes and cell types of 80 PBMC single cells. | ||
#' | ||
#' @format A tibble containing 80 rows and 2 columns. | ||
#' Cells are a subsample of the Peripheral Blood Mononuclear Cells (PBMC) | ||
#' dataset of 2,700 single cell. Cell types were identified with SingleR. | ||
#' \describe{ | ||
#' \item{cell}{cell identifier, barcode} | ||
#' \item{first.labels}{cell type} | ||
#' } | ||
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html} | ||
#' @usage data(cell_type_df) | ||
#' @return `tibble` | ||
"cell_type_df" | ||
|
||
#' Example data set 2 | ||
#' Intercellular ligand-receptor interactions for | ||
#' 38 ligands from a single cell RNA-seq cluster. | ||
#' | ||
#' A dataset containing ligand-receptor interactions within a sample. | ||
#' There are 38 ligands from a single cell cluster versus 35 receptors | ||
#' in 6 other clusters. | ||
#' | ||
#' @format A `tibble` containing 100 rows and 9 columns. | ||
#' Cells are a subsample of the PBMC dataset of 2,700 single cells. | ||
#' Cell interactions were identified with `SingleCellSignalR`. | ||
#' \describe{ | ||
#' \item{sample}{sample identifier} | ||
#' \item{ligand}{cluster and ligand identifier} | ||
#' \item{receptor}{cluster and receptor identifier} | ||
#' \item{ligand.name}{ligand name} | ||
#' \item{receptor.name}{receptor name} | ||
#' \item{origin}{cluster containing ligand} | ||
#' \item{destination}{cluster containing receptor} | ||
#' \item{interaction.type}{type of interation, paracrine or autocrine} | ||
#' \item{LRscore}{interaction score} | ||
#' } | ||
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html} | ||
#' @usage data(pbmc_small_nested_interactions) | ||
#' @return `tibble` | ||
"pbmc_small_nested_interactions" |
Oops, something went wrong.