Skip to content

Commit bfdd854

Browse files
committed
chore: update docs
1 parent fd305d2 commit bfdd854

21 files changed

+147
-179
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: Some useful functions to visualize scRNA-seq figures.
88
License: MIT + file LICENSE
99
Encoding: UTF-8
1010
Roxygen: list(markdown = TRUE)
11-
RoxygenNote: 7.2.3
11+
RoxygenNote: 7.3.1
1212
Remotes:
1313
junjunlab/jjAnno,
1414
junjunlab/jjPlot,

NAMESPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export("%>%")
4-
export(AverageHeatmap)
5-
export(FeatureCornerAxes)
4+
export(averageHeatmap)
65
export(cellRatioPlot)
76
export(clusterCornerAxes)
87
export(drawLegend)
8+
export(featureCornerAxes)
99
export(featurePlot)
1010
export(jjDotPlot)
1111
export(jjVolcano)
12-
export(markerVocalno)
12+
export(markerVolcano)
1313
export(scatterCellPlot)
1414
export(tracksPlot)
1515
import(Seurat)

R/averageHeatmap.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#' @name AverageHeatmap
1+
#' @name averageHeatmap
22
#' @author Junjun Lao
33
#' @title Plot averaged gene expression cross cluster cells
4+
#'
45
#' @param object object seurat object.
56
#' @param markerGene Your marker genes.
67
#' @param group.by Categories for grouping (e.g, ident, replicate, celltype). "ident" by default.
@@ -42,13 +43,13 @@
4243
#' markers <- read.table(markergene, sep = ",", header = TRUE)
4344
#'
4445
#' # plot
45-
#' AverageHeatmap(
46+
#' averageHeatmap(
4647
#' object = pbmc,
4748
#' markerGene = markers$gene
4849
#' )
4950
#'
5051
#' # change color
51-
#' AverageHeatmap(
52+
#' averageHeatmap(
5253
#' object = pbmc,
5354
#' markerGene = markers$gene,
5455
#' htCol = c("#339933", "#FFCC00", "#FF0033")

R/clusterCornerAxes.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#' @name clusterCornerAxes
22
#' @author Junjun Lao
33
#' @title Add corner axes on seurat UMAP/tSNE cluster figures
4+
#'
45
#' @param object seurat object.
56
#' @param reduction "string", reduction type (umap/tsne).
67
#' @param groupFacet "string", give the column name in seurat metadata to facet plot.

R/featureCornerAxes.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#' @name FeatureCornerAxes
1+
#' @name featureCornerAxes
22
#' @author Junjun Lao
33
#' @title Add corner axes on seurat UMAP/tSNE gene FeaturePlot function figures
4+
#'
45
#' @param object object seurat object.
56
#' @param reduction "string", reduction type (umap/tsne).
67
#' @param features "string", the gene you want to plot.
@@ -33,15 +34,15 @@
3334
#' tmp <- readRDS(test)
3435
#'
3536
#' # umap
36-
#' FeatureCornerAxes(
37+
#' featureCornerAxes(
3738
#' object = tmp, reduction = "umap",
3839
#' groupFacet = "orig.ident",
3940
#' relLength = 0.5, relDist = 0.2,
4041
#' features = c("Actb", "Ythdc1", "Ythdf2")
4142
#' )
4243
#'
4344
#' # one axes
44-
#' FeatureCornerAxes(
45+
#' featureCornerAxes(
4546
#' object = tmp, reduction = "umap",
4647
#' groupFacet = "orig.ident",
4748
#' features = c("Actb", "Ythdc1", "Ythdf2"),
@@ -51,7 +52,7 @@
5152
#' )
5253
#'
5354
#' # tsne
54-
#' FeatureCornerAxes(
55+
#' featureCornerAxes(
5556
#' object = tmp, reduction = "tsne",
5657
#' groupFacet = "orig.ident",
5758
#' relLength = 0.5, relDist = 0.2,

R/featurePlot.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#' featurePlot Function
2-
#'
3-
#' This function creates a scatter plot for multiple genes or features from a
4-
#' Seurat object.
5-
#'
1+
#' @name featurePlot
62
#' @author Jun Zhang
3+
#' @title This function creates a scatter plot for multiple genes or features from a
4+
#' Seurat object.
75
#'
86
#' @param object A Seurat object containing the data.
97
#' @param dim The dimension to use for plotting, default is "umap".

R/markerVolcano.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#' @name markerVolcano
22
#' @author Junjun Lao
33
#' @title Marker genes volcano plot
4+
#'
45
#' @param markers Dataframe marker genes from findAllmarkers function from seurat.
56
#' @param ownGene Your own gene names to be labeled on plot, defaults is null.
67
#' @param topn Numbers top genes to label, defaults is 5.

R/scatterCellPlot.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#' Scatter Cell Plot
2-
#'
3-
#' This function creates a scatter cell plot using the grid package in R.
4-
#'
1+
#' @name scatterCellPlot
52
#' @author Jun Zhang
3+
#' @title This function creates a scatter cell plot using the grid package in R.
64
#'
75
#' @param object A Seurat object containing the data.
86
#' @param color A vector of colors for each cell type. If NULL, random colors will be assigned.

R/tracksPlot.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
#' Generate a track or heatmap plot
2-
#'
3-
#' This function generates a track or heatmap plot based on the provided data.
4-
#'
1+
#' @name tracksPlot
52
#' @author Jun Zhang
3+
#' @title This function generates a track or heatmap plot based on the provided data.
64
#'
75
#' @param object An optional object containing the data.
86
#' @param plot.type The type of plot to generate, either "track" or "heatmap".

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# scRNAtoolVis <img src="man/scRNAtoolVis-logo.png" align="right" height="200" />
2+
23
Some useful function to make your scRNA-seq plot more beautiful.
3-
4-
## Installation
4+
5+
## Installation
56

67
```R
78
install.packages('devtools')
@@ -15,10 +16,11 @@ library(scRNAtoolVis)
1516

1617
## Citation
1718

18-
> Jun Zhang (2022). *scRNAtoolVis: Useful Functions to Make Your scRNA-seq Plot More Cool!.* https://github.com/junjunlab/scRNAtoolVis, https://junjunlab.github.io/scRNAtoolVis-manual/.
19+
> Jun Zhang (2022). *scRNAtoolVis: Useful Functions to Make Your scRNA-seq Plot More Cool!.* <https://github.com/junjunlab/scRNAtoolVis>, <https://junjunlab.github.io/scRNAtoolVis-manual/>.
1920
2021
## More examples see
21-
> - https://junjunlab.github.io/scRNAtoolVis-manual/
22+
>
23+
> - <https://junjunlab.github.io/scRNAtoolVis-manual/>
2224
2325
![image](https://user-images.githubusercontent.com/64965509/198531385-00b0587d-e202-4417-b11d-53cd419594e6.png)
2426

@@ -29,10 +31,10 @@ library(scRNAtoolVis)
2931
> - [**scRNAtoolVis 0.0.3 版本更新**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247501432&idx=1&sn=93a7bb3506c911845ef7d10a2fcfdea3&chksm=c184fc09f6f3751f0c2b94f0a6d69692efcc916a45a5409f93b23f90f8db809ca750f87ba234&token=1253522169&lang=zh_CN#rd)
3032
> - [**jjDotPlot 优雅的可视化单细胞基因表达**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247505159&idx=1&sn=e81b7f890e93419be154b1cf432ae84f&chksm=c184ef76f6f366608d6b2b2d214aecaa4d6c57e976f9fe43a93201a3f6795051395ffc2addf4&token=1253522169&lang=zh_CN#rd)
3133
> - [**jjDotPlot 对基因和亚群排序**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247505344&idx=1&sn=40b5934ca798e6518172b6c5743c9d95&chksm=c184efb1f6f366a7db3d924f54e9e763c78366021a6d263a502f4d4f4a806250743a74283d5f&token=1253522169&lang=zh_CN#rd)
32-
> - [**AverageHeatmap 调整细胞亚群顺序**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247505603&idx=1&sn=3f85e23cc0eaffa5d92fb4aa03ca0d14&chksm=c184ecb2f6f365a41a428f5600fa9797263bb4432d51be7dc452f213bc1c9be70d50ab669159&token=1253522169&lang=zh_CN#rd)
34+
> - [**averageHeatmap 调整细胞亚群顺序**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247505603&idx=1&sn=3f85e23cc0eaffa5d92fb4aa03ca0d14&chksm=c184ecb2f6f365a41a428f5600fa9797263bb4432d51be7dc452f213bc1c9be70d50ab669159&token=1253522169&lang=zh_CN#rd)
3335
> - [**jjVolcano 一行代码绘制单细胞火山图**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247506316&idx=1&sn=307fffe550e25987b148f843e169cbcd&chksm=c184e3fdf6f36aebbe7e948d029f831f03c2906e02a271ee85900a2faac262d2c80bd1b7d2b5&token=1253522169&lang=zh_CN#rd)
3436
> - [**单细胞火山图的旋转和环形**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247506337&idx=1&sn=5d84b4cbddf053456561d806f3d04737&chksm=c184e3d0f6f36ac65a1cee3d353de3715c30460af0acfbc35446eac61b5b5e9170d7fb1e6315&token=1253522169&lang=zh_CN#rd)
35-
> - [**AverageHeatmap 对单细胞 marker 基因聚类**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247506807&idx=1&sn=f649c782a8d21765f185f03dec0fd9c5&chksm=c184e106f6f3681003142cbb48c5bc406da8458e0153bd00e805ae8fb9c01c6b25c6ff4d6156&token=1253522169&lang=zh_CN#rd)
37+
> - [**averageHeatmap 对单细胞 marker 基因聚类**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247506807&idx=1&sn=f649c782a8d21765f185f03dec0fd9c5&chksm=c184e106f6f3681003142cbb48c5bc406da8458e0153bd00e805ae8fb9c01c6b25c6ff4d6156&token=1253522169&lang=zh_CN#rd)
3638
> - [**听说你想绘制 scanpy 的 tracksPlot?**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247509478&idx=1&sn=71977a66e74d9dc4fa6aa1b2adbc50be&chksm=c1849f97f6f31681543b475f4df381c9e462dfd617260d5fbeb8956731033c97eb4c20a49f9b&token=143921488&lang=zh_CN#rd)
3739
> - [**用 grid 手搓一个单细胞散点图+细胞数量条形图**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247509735&idx=1&sn=212e45f9e6c8cfd13bc943b6ac806dc2&chksm=c1849c96f6f31580624e0d4bab65b47d7b3e4cf7fc604881fb9c27a32249bd071dd1eae20d66&token=868587677&lang=zh_CN#rd)
3840
> - [**听说你要绘制 scanpy 版的散点图?**](https://mp.weixin.qq.com/s?__biz=MzkyMTI1MTYxNA==&mid=2247509799&idx=1&sn=b3bc4bbbb8c1e3a98be3f5815cbcb4f0&chksm=c1849d56f6f3144000e22d4b9ebf989ad79349c450928c2a2346749b0187d857fca15d9e7183&token=613129250&lang=zh_CN#rd)

0 commit comments

Comments
 (0)