Skip to content

Commit 26fca1e

Browse files
committed
Merge branch 'release/v2.0.10' into main
2 parents 4b32e61 + ec720b3 commit 26fca1e

5 files changed

Lines changed: 19 additions & 9 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: scigenex
22
Type: Package
33
Title: The scigenex package (Single-Cell Informative GENe Explorer)
4-
Version: 2.0.9
4+
Version: 2.0.10
55
Date: 2020-07-22
66
Author: J. Bavais, Sebastien Nin, Lionel Spinelli and Denis Puthier
77
Maintainer: J. Bavais <julie.bavais@yahoo.fr>

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MAKEFILE=Makefile
2-
VERSION=2.0.9
2+
VERSION=2.0.10
33

44
.PHONY: help
55

R/gm_report.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ gm_report <- function(cluster_set = NULL,
143143
plot_multi_profiles_params=list(legend_name="Gene\nModule"),
144144
FeaturePlot_params=list(cols=RColorBrewer::brewer.pal(3, "BuPu")),
145145
SpatialFeaturePlot_params=list(pt.size.factor = 1.7),
146-
SpatialDimPlot_params=list(pt.size.factor = 1.7),
146+
SpatialDimPlot_params=list(pt.size.factor = 1.7,
147+
label = T,
148+
repel = T,
149+
label.size = 4),
147150
plot_ggheatmap_params=list(use_top_genes=FALSE,
148151
hide_gene_name=TRUE,
149152
xlab = "Cells/Spots",

inst/rmarkdown/index.Rmd

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ params:
2020
---
2121

2222

23-
<!-- UPPERCASE variable are text to be replaced. -->
24-
<!-- There are several global variables obtained from st_report() function. -->
23+
<!-- Some UPPERCASE (e.g MODULE_NUMBER) variables are text to be replaced (see st_report() function). -->
24+
<!-- NB: This code contains several global variables derived from gm_report() function arguments. -->
25+
2526

2627
```{r start, include=FALSE, echo=FALSE, eval=TRUE}
2728
library(knitr)
@@ -184,8 +185,14 @@ knitr::asis_output("Seurat provides a convenient framework for exploring quality
184185
```
185186

186187
```{r section_gen_info_17c, echo=FALSE, eval="exp_metrics" %in% section, echo=FALSE, results = "asis"}
187-
seurat_object[["percent.mt"]] <- Seurat::PercentageFeatureSet(seurat_object, pattern = "^[Mm][Tt]-")
188-
seurat_object[["percent.ribo"]] <- Seurat::PercentageFeatureSet(seurat_object, pattern = "^[Rr][Pp][LlSs][0-9]+")
188+
if(length(grep("^[Mm][Tt]-", rownames(seurat_object))) > 0 ){
189+
seurat_object[["percent.mt"]] <- Seurat::PercentageFeatureSet(seurat_object, pattern = "^[Mm][Tt]-")
190+
}
191+
192+
if(length(grep("^[Rr][Pp][LlSs][0-9]+", rownames(seurat_object))) > 0 ){
193+
seurat_object[["percent.ribo"]] <- Seurat::PercentageFeatureSet(seurat_object, pattern = "^[Rr][Pp][LlSs][0-9]+")
194+
}
195+
189196
var_qc <- grep("(^nFeature)|(nCount)|(percent.mt)|(percent.ribo)", colnames(seurat_object@meta.data), perl = TRUE, value = TRUE)
190197
for(qc in var_qc){
191198
print(Seurat::VlnPlot(seurat_object, features = qc, ncol = 1))

inst/rmarkdown/module.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
<!-- UPPERCASE variable are text to be replaced (see st_report() function). -->
3-
<!-- NB: The code contains several global variables derived from gm_report() function arguments. -->
2+
<!-- Some UPPERCASE (e.g FIG_PATH, and MODULE_NUMBER) variables are text to be replaced (see st_report() function). -->
3+
<!-- NB: This code contains several global variables derived from gm_report() function arguments. -->
44

55

66

0 commit comments

Comments
 (0)