Skip to content

Commit 4c7cde6

Browse files
authored
Merge pull request #71 from noriakis/update-documentation
Documentation revision
2 parents 32381c7 + 7effd27 commit 4c7cde6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+4961
-3919
lines changed

NAMESPACE

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -38,64 +38,30 @@ S3method(slice_min,Seurat)
3838
S3method(slice_sample,Seurat)
3939
S3method(slice_tail,Seurat)
4040
S3method(summarise,Seurat)
41+
S3method(summarize,Seurat)
4142
S3method(tbl_format_header,tidySeurat)
4243
S3method(tidy,Seurat)
4344
S3method(unite,Seurat)
4445
S3method(unnest,tidyseurat_nested)
4546
export("%>%")
46-
export()
47-
export(add_count)
48-
export(arrange)
49-
export(as_tibble)
50-
export(bind_rows)
51-
export(count)
52-
export(distinct)
53-
export(extract)
54-
export(filter)
55-
export(full_join)
5647
export(get_abundance_sc_long)
5748
export(get_abundance_sc_wide)
58-
export(ggplot)
59-
export(glimpse)
60-
export(group_by)
61-
export(inner_join)
62-
export(join_features)
6349
export(join_transcripts)
64-
export(left_join)
65-
export(mutate)
66-
export(nest)
67-
export(pivot_longer)
6850
export(plot_ly)
69-
export(pull)
70-
export(rename)
71-
export(right_join)
72-
export(rowwise)
73-
export(sample_frac)
74-
export(sample_n)
75-
export(select)
76-
export(separate)
77-
export(slice)
78-
export(slice_head)
79-
export(slice_max)
80-
export(slice_min)
81-
export(slice_sample)
82-
export(slice_tail)
83-
export(summarise)
84-
export(tbl_format_header)
8551
export(tidy)
86-
export(unite)
87-
export(unnest)
8852
export(unnest_seurat)
8953
exportMethods(aggregate_cells)
54+
exportMethods(join_features)
9055
importFrom(Matrix,rowSums)
9156
importFrom(Seurat,Assays)
9257
importFrom(Seurat,GetAssayData)
9358
importFrom(Seurat,SplitObject)
9459
importFrom(Seurat,VariableFeatures)
9560
importFrom(SeuratObject,"DefaultAssay<-")
96-
importFrom(cli,cat_line)
61+
importFrom(SeuratObject,DefaultAssay)
9762
importFrom(dplyr,add_count)
9863
importFrom(dplyr,arrange)
64+
importFrom(dplyr,contains)
9965
importFrom(dplyr,count)
10066
importFrom(dplyr,distinct)
10167
importFrom(dplyr,distinct_at)
@@ -122,6 +88,7 @@ importFrom(dplyr,slice_min)
12288
importFrom(dplyr,slice_sample)
12389
importFrom(dplyr,slice_tail)
12490
importFrom(dplyr,summarise)
91+
importFrom(dplyr,summarize)
12592
importFrom(dplyr,vars)
12693
importFrom(ellipsis,check_dots_used)
12794
importFrom(fansi,strwrap_ctl)
@@ -152,15 +119,13 @@ importFrom(rlang,enquo)
152119
importFrom(rlang,enquos)
153120
importFrom(rlang,expr)
154121
importFrom(rlang,flatten_if)
155-
importFrom(rlang,is_empty)
156122
importFrom(rlang,is_spliced)
157123
importFrom(rlang,names2)
158124
importFrom(rlang,quo_name)
159125
importFrom(rlang,quo_squash)
160126
importFrom(stats,setNames)
161127
importFrom(stringr,regex)
162128
importFrom(stringr,str_detect)
163-
importFrom(stringr,str_replace)
164129
importFrom(tibble,as_tibble)
165130
importFrom(tibble,column_to_rownames)
166131
importFrom(tibble,enframe)
@@ -173,6 +138,7 @@ importFrom(tidyr,separate)
173138
importFrom(tidyr,spread)
174139
importFrom(tidyr,unite)
175140
importFrom(tidyr,unnest)
141+
importFrom(tidyselect,eval_select)
176142
importFrom(ttservice,aggregate_cells)
177143
importFrom(ttservice,bind_cols)
178144
importFrom(ttservice,bind_rows)

R/attach.R

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
core <- c("dplyr", "tidyr", "ttservice", "ggplot2")
2+
3+
core_unloaded <- function() {
4+
search <- paste0("package:", core)
5+
core[!search %in% search()]
6+
}
7+
8+
# Attach the package from the same library it was loaded from before.
9+
# [source: https://github.com/tidy-biology/tidyverse/issues/171]
10+
same_library <- function(pkg) {
11+
loc <- if (pkg %in% loadedNamespaces())
12+
dirname(getNamespaceInfo(pkg, "path"))
13+
library(pkg, lib.loc=loc, character.only=TRUE, warn.conflicts=FALSE)
14+
}
15+
16+
tidyverse_attach <- function() {
17+
to_load <- core_unloaded()
18+
19+
suppressPackageStartupMessages(
20+
lapply(to_load, same_library))
21+
22+
invisible(to_load)
23+
}

R/data.R

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,41 @@
1-
#' Example data set 2
2-
#'
1+
#' Cell types of 80 PBMC single cells
2+
#'
3+
#' A dataset containing the barcodes and cell types of 80 PBMC single cells.
34
#'
5+
#' @format A tibble containing 80 rows and 2 columns.
6+
#' Cells are a subsample of the Peripheral Blood Mononuclear Cells (PBMC)
7+
#' dataset of 2,700 single cell. Cell types were identified with SingleR.
8+
#' \describe{
9+
#' \item{cell}{cell identifier, barcode}
10+
#' \item{first.labels}{cell type}
11+
#' }
12+
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html}
13+
#' @usage data(cell_type_df)
14+
#' @return `tibble`
415
"cell_type_df"
516

6-
#' Example data set 2
17+
#' Intercellular ligand-receptor interactions for
18+
#' 38 ligands from a single cell RNA-seq cluster.
719
#'
20+
#' A dataset containing ligand-receptor interactions within a sample.
21+
#' There are 38 ligands from a single cell cluster versus 35 receptors
22+
#' in 6 other clusters.
823
#'
24+
#' @format A `tibble` containing 100 rows and 9 columns.
25+
#' Cells are a subsample of the PBMC dataset of 2,700 single cells.
26+
#' Cell interactions were identified with `SingleCellSignalR`.
27+
#' \describe{
28+
#' \item{sample}{sample identifier}
29+
#' \item{ligand}{cluster and ligand identifier}
30+
#' \item{receptor}{cluster and receptor identifier}
31+
#' \item{ligand.name}{ligand name}
32+
#' \item{receptor.name}{receptor name}
33+
#' \item{origin}{cluster containing ligand}
34+
#' \item{destination}{cluster containing receptor}
35+
#' \item{interaction.type}{type of interation, paracrine or autocrine}
36+
#' \item{LRscore}{interaction score}
37+
#' }
38+
#' @source \url{https://satijalab.org/seurat/v3.1/pbmc3k_tutorial.html}
39+
#' @usage data(pbmc_small_nested_interactions)
40+
#' @return `tibble`
941
"pbmc_small_nested_interactions"

0 commit comments

Comments
 (0)