Skip to content

Commit 0fcff49

Browse files
authored
Merge pull request #14 from samuel-marsh/develop
Merge for Version 0.6.3 Release
2 parents acb9ba5 + e1ff2b2 commit 0fcff49

File tree

9 files changed

+22
-5
lines changed

9 files changed

+22
-5
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: scCustomize
22
Type: Package
33
Title: An R package for custom visualization & analyses of single cell sequencing.
4-
Version: 0.6.2
5-
Date: 2021-12-01
4+
Version: 0.6.3
5+
Date: 2021-12-16
66
Authors@R: c(
77
person(given = "Samuel", family = "Marsh", email = "samuel.marsh@childrens.harvard.edu", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3012-6945")),
88
person(given = "Ming", family = "Tang", role = c("ctb"), email = "tangming2005@gmail.com"),

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ importFrom(Seurat,Read10X_h5)
130130
importFrom(Seurat,VariableFeaturePlot)
131131
importFrom(Seurat,VizDimLoadings)
132132
importFrom(Seurat,VlnPlot)
133+
importFrom(SeuratObject,DefaultDimReduc)
133134
importFrom(colorway,varibow)
134135
importFrom(cowplot,theme_cowplot)
135136
importFrom(data.table,fread)

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# scCustomize 0.6.3 (2021-12-16)
2+
## Fixes
3+
- Fixed `Read_Metrics_10X` errors that occured due to differing outputs depending on Cell Ranger version or type of assay.
4+
- Added direct `importFrom` for `DefaultDimReduc` from SeuratObject to avoid potential errors.
5+
6+
17
# scCustomize 0.6.2 (2021-12-01)
28
## Fixes
39
- Fixed barcode name duplication checks in `Merge_Sparse_Data_All`. ([#8](https://github.com/samuel-marsh/scCustomize/issues/8))

R/Other_Package_Plotting.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#'
1818
#' @import ggplot2
1919
# #' @importFrom Nebulosa plot_density
20+
#' @importFrom SeuratObject DefaultDimReduc
2021
#'
2122
#' @export
2223
#'
@@ -100,6 +101,7 @@ Plot_Density_Custom <- function(
100101
#'
101102
#' @import ggplot2
102103
# #' @importFrom Nebulosa plot_density
104+
#' @importFrom SeuratObject DefaultDimReduc
103105
#'
104106
#' @export
105107
#'

R/Read_&_Write_Data.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,8 @@ Read_Metrics_10X <- function(
10981098

10991099
raw_data <- read.csv(file = paste0(file_path, "metrics_summary.csv"), stringsAsFactors = F)
11001100
# Change format of numeric columns to due commas in data csv output.
1101-
raw_data[,c(1:4, 18:19)] <- lapply(raw_data[,c(1:4, 18:19)],function(x){as.numeric(gsub(",", "", x))})
1101+
column_numbers <- grep(pattern = ",", x = raw_data[1, ])
1102+
raw_data[,c(column_numbers)] <- lapply(raw_data[,c(column_numbers)],function(x){as.numeric(gsub(",", "", x))})
11021103
return(raw_data)
11031104
})
11041105

R/Seurat_Iterative_Plotting.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ Iterate_PC_Loading_Plots <- function(
116116
#' @import ggplot2
117117
#' @importFrom pbapply pblapply pboptions
118118
#' @importFrom Seurat DimPlot
119+
#' @importFrom SeuratObject DefaultDimReduc
119120
#' @importFrom stringr str_detect
120121
#' @importFrom utils txtProgressBar setTxtProgressBar
121122
#'
@@ -272,6 +273,7 @@ Iterate_DimPlot_bySample <- function(
272273
#' @import ggplot2
273274
#' @importFrom pbapply pbmapply pboptions
274275
#' @importFrom Seurat DimPlot
276+
#' @importFrom SeuratObject DefaultDimReduc
275277
#' @importFrom stringr str_detect
276278
#' @importFrom utils txtProgressBar setTxtProgressBar
277279
#'
@@ -466,6 +468,7 @@ Iterate_Cluster_Highlight_Plot <- function(
466468
#' @importFrom forcats fct_relevel
467469
#' @importFrom pbapply pbmapply pboptions
468470
#' @importFrom Seurat DimPlot
471+
#' @importFrom SeuratObject DefaultDimReduc
469472
#' @importFrom stringr str_detect
470473
#' @importFrom utils txtProgressBar setTxtProgressBar
471474
#'
@@ -692,6 +695,7 @@ Iterate_Meta_Highlight_Plot <- function(
692695
#' @import ggplot2
693696
#' @importFrom pbapply pblapply pboptions
694697
#' @importFrom Seurat FeaturePlot
698+
#' @importFrom SeuratObject DefaultDimReduc
695699
#' @importFrom stringr str_detect
696700
#' @importFrom utils txtProgressBar setTxtProgressBar
697701
#'
@@ -1067,6 +1071,7 @@ Iterate_VlnPlot <- function(
10671071
#'
10681072
#' @import ggplot2
10691073
#' @importFrom pbapply pblapply pboptions
1074+
#' @importFrom SeuratObject DefaultDimReduc
10701075
#' @importFrom stringr str_detect
10711076
#' @importFrom utils txtProgressBar setTxtProgressBar
10721077
#'
@@ -1258,6 +1263,7 @@ Iterate_Plot_Density_Custom <- function(
12581263
#' @import ggplot2
12591264
#' @importFrom pbapply pblapply pboptions
12601265
#' @importFrom purrr discard keep
1266+
#' @importFrom SeuratObject DefaultDimReduc
12611267
#' @importFrom stringr str_detect
12621268
#' @importFrom utils txtProgressBar setTxtProgressBar
12631269
#'

R/Seurat_Plotting.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#' @import ggplot2
2525
#' @import patchwork
2626
#' @importFrom Seurat FeaturePlot
27+
#' @importFrom SeuratObject DefaultDimReduc
2728
#'
2829
#' @export
2930
#'
@@ -860,6 +861,7 @@ DotPlot_scCustom <- function(
860861
#'
861862
#' @import patchwork
862863
#' @importFrom Seurat DimPlot
864+
#' @importFrom SeuratObject DefaultDimReduc
863865
#'
864866
#' @export
865867
#'
@@ -1020,6 +1022,7 @@ DimPlot_scCustom <- function(
10201022
#'
10211023
#' @import patchwork
10221024
#' @importFrom Seurat DimPlot
1025+
#' @importFrom SeuratObject DefaultDimReduc
10231026
#'
10241027
#' @export
10251028
#'

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
[![GitHub release (latest by
55
date)](https://img.shields.io/github/v/release/samuel-marsh/scCustomize?color=gree)](https://github.com/samuel-marsh/scCustomize/releases)
6-
[![R-CMD-check](https://github.com/samuel-marsh/scCustomize/workflows/R-CMD-check/badge.svg)](https://github.com/samuel-marsh/scCustomize/actions)
76
[![license](https://img.shields.io/github/license/samuel-marsh/scCustomize)](https://github.com/samuel-marsh/scCustomize/blob/master/LICENSE)
87
[![issues](https://img.shields.io/github/issues/samuel-marsh/scCustomize)](https://github.com/samuel-marsh/scCustomize/issues)
98
[![DOI](https://zenodo.org/badge/411807769.svg)](https://zenodo.org/badge/latestdoi/411807769)

index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ p.caption {
99

1010
[![GitHub release (latest by
1111
date)](https://img.shields.io/github/v/release/samuel-marsh/scCustomize?color=gree)](https://github.com/samuel-marsh/scCustomize/releases)
12-
[![R-CMD-check](https://github.com/samuel-marsh/scCustomize/workflows/R-CMD-check/badge.svg)](https://github.com/samuel-marsh/scCustomize/actions)
1312
[![license](https://img.shields.io/github/license/samuel-marsh/scCustomize)](https://github.com/samuel-marsh/scCustomize/blob/master/LICENSE)
1413
[![issues](https://img.shields.io/github/issues/samuel-marsh/scCustomize)](https://github.com/samuel-marsh/scCustomize/issues)
1514
[![DOI](https://zenodo.org/badge/411807769.svg)](https://zenodo.org/badge/latestdoi/411807769)

0 commit comments

Comments
 (0)