Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.0.0 #141

Merged
merged 389 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
389 commits
Select commit Hold shift + click to select a range
b8ff590
update changelog
samuel-marsh Sep 22, 2023
e8fb77d
update docs
samuel-marsh Sep 22, 2023
5d364ee
update docs
samuel-marsh Sep 22, 2023
78d1b07
bump version and date
samuel-marsh Sep 22, 2023
847e208
fix dimplot plotting multiple group.by variables
samuel-marsh Sep 22, 2023
611650f
update changelog
samuel-marsh Sep 22, 2023
b2df383
bump version and date
samuel-marsh Sep 22, 2023
236282e
add custom features and warning message
samuel-marsh Sep 23, 2023
23f8513
Update docs
samuel-marsh Sep 23, 2023
fd48166
bump version and date
samuel-marsh Sep 23, 2023
a3308dc
update changelog
samuel-marsh Sep 23, 2023
8fafbdb
Fix iterate by sample when not orig.ident
samuel-marsh Sep 23, 2023
b9c1614
bump version
samuel-marsh Sep 23, 2023
40c4831
Add overall QC function
samuel-marsh Sep 24, 2023
44604da
Update docs
samuel-marsh Sep 24, 2023
9cf2663
fix param errors
samuel-marsh Sep 24, 2023
05d217b
Update docs
samuel-marsh Sep 24, 2023
f44f8b7
Update docs
samuel-marsh Sep 24, 2023
566caa0
update changelog
samuel-marsh Sep 24, 2023
301cda5
bump version
samuel-marsh Sep 24, 2023
740854b
fix parameter name errors
samuel-marsh Sep 24, 2023
487bf38
Update docs
samuel-marsh Sep 24, 2023
9727688
Update changelog
samuel-marsh Sep 24, 2023
174b1ec
bump version
samuel-marsh Sep 24, 2023
735b57e
reorg and add MSigDB retrieval
samuel-marsh Sep 28, 2023
a71ff7e
add assay param
samuel-marsh Sep 29, 2023
bb10e9e
update changelog
samuel-marsh Sep 29, 2023
7f87d79
msigdb gene lists
samuel-marsh Sep 29, 2023
5208f23
update docs
samuel-marsh Sep 29, 2023
e47038e
update data
samuel-marsh Sep 29, 2023
b4f1b96
remove gene list
samuel-marsh Sep 29, 2023
88a4ba6
add msigdb list and document
samuel-marsh Sep 29, 2023
5e0b6d2
add new mSigDB internals
samuel-marsh Sep 29, 2023
3c43a22
add assay param
samuel-marsh Sep 29, 2023
b9b47d5
typo
samuel-marsh Sep 29, 2023
c54e723
Add ieg gene list and documentation
samuel-marsh Sep 29, 2023
895f71f
docs
samuel-marsh Sep 29, 2023
7f8bd83
add ieg retrieval function
samuel-marsh Sep 29, 2023
2550908
Add IEG percent function
samuel-marsh Sep 29, 2023
b13d7f1
update overall qc function
samuel-marsh Sep 29, 2023
ef34be4
update docs
samuel-marsh Sep 29, 2023
8071417
update source info
samuel-marsh Sep 29, 2023
3af5016
update changelog
samuel-marsh Sep 29, 2023
9ded861
update docs
samuel-marsh Sep 29, 2023
3bf2fa6
update changelog
samuel-marsh Sep 29, 2023
ac24df3
bump version and date
samuel-marsh Sep 29, 2023
dc26bd8
reorg functions
samuel-marsh Sep 30, 2023
c8173fd
update docs
samuel-marsh Sep 30, 2023
90d9d25
update changelog
samuel-marsh Sep 30, 2023
b5989c4
bump version and date
samuel-marsh Sep 30, 2023
3c1ac62
add cell cycle scoring to cell qc
samuel-marsh Sep 30, 2023
1052652
update docs
samuel-marsh Sep 30, 2023
ede7c20
Update changelog
samuel-marsh Sep 30, 2023
a6aa9dc
bump version
samuel-marsh Sep 30, 2023
174bf94
fix dotplot scCustom bug
samuel-marsh Sep 30, 2023
b7fdbfd
fix dotplot
samuel-marsh Sep 30, 2023
424c687
fix dotplot
samuel-marsh Sep 30, 2023
c6037f0
case check fix
samuel-marsh Sep 30, 2023
c71cf74
Update changelog
samuel-marsh Sep 30, 2023
26c2567
bump version
samuel-marsh Sep 30, 2023
3111208
typo
samuel-marsh Oct 1, 2023
8f75de6
style fix
samuel-marsh Oct 3, 2023
b21ca67
style
samuel-marsh Oct 3, 2023
92d0aca
update palette defaults
samuel-marsh Oct 3, 2023
f11cae9
update docs
samuel-marsh Oct 3, 2023
94a1e45
update changelog
samuel-marsh Oct 3, 2023
f161ae3
bump version and date
samuel-marsh Oct 3, 2023
51215bf
warning message bug
samuel-marsh Oct 3, 2023
46bed91
fix warning error
samuel-marsh Oct 3, 2023
5c03e03
update changelog
samuel-marsh Oct 3, 2023
d78ad8b
bump version
samuel-marsh Oct 3, 2023
b07fabd
style fix
samuel-marsh Oct 3, 2023
a630ced
min scattermore version
samuel-marsh Oct 4, 2023
e04d778
update changelog
samuel-marsh Oct 4, 2023
5d2553c
bump version and date
samuel-marsh Oct 4, 2023
0b192df
set label if label.box TRUE
samuel-marsh Oct 5, 2023
09b2387
add non-default check
samuel-marsh Oct 5, 2023
9208f0c
Update changelog
samuel-marsh Oct 5, 2023
9d56a72
bump version and date
samuel-marsh Oct 5, 2023
507be67
update violin plot
samuel-marsh Oct 5, 2023
fe21e03
update docs
samuel-marsh Oct 5, 2023
787f059
Update changelog
samuel-marsh Oct 5, 2023
975a0b0
update qc plots with boxplot param
samuel-marsh Oct 5, 2023
af7a014
Update docs
samuel-marsh Oct 5, 2023
ae7511a
remove old median plotting
samuel-marsh Oct 5, 2023
1356ae6
update changelog
samuel-marsh Oct 5, 2023
6456ede
bump version
samuel-marsh Oct 5, 2023
7cbb668
edit name
samuel-marsh Oct 24, 2023
25858cb
edit name
samuel-marsh Oct 24, 2023
38c3bdd
add return qc default internal function
samuel-marsh Oct 24, 2023
205ecba
add QC histogram
samuel-marsh Oct 24, 2023
028d7dd
Update docs
samuel-marsh Oct 24, 2023
144818a
update changelog
samuel-marsh Oct 24, 2023
c8beacc
bump version and date
samuel-marsh Oct 24, 2023
5e5a13a
typo
samuel-marsh Oct 25, 2023
66c6e6e
mito ribo bug fix
samuel-marsh Oct 26, 2023
2d77889
mito ribo fix
samuel-marsh Oct 26, 2023
40d4054
update changelog
samuel-marsh Oct 26, 2023
d48b693
bump version and date
samuel-marsh Oct 26, 2023
c9e4849
add boxplot median check
samuel-marsh Oct 26, 2023
f069de1
typo fix
samuel-marsh Oct 26, 2023
f2820e5
move split to plot utilities, internal, renamed
samuel-marsh Oct 26, 2023
84ee514
deprecate warn
samuel-marsh Oct 26, 2023
7152545
remove temp
samuel-marsh Oct 26, 2023
1b7d26b
add deprecate badge
samuel-marsh Oct 26, 2023
dcf1025
get badge to work
samuel-marsh Oct 26, 2023
a328d0c
update docs
samuel-marsh Oct 26, 2023
332f1a3
update docs
samuel-marsh Oct 26, 2023
405e9f8
update docs
samuel-marsh Oct 26, 2023
f55aefc
update example
samuel-marsh Oct 26, 2023
2717a4d
add FeatureScatter_scCustom
samuel-marsh Oct 26, 2023
8f2537b
add new warning
samuel-marsh Oct 26, 2023
d379a86
Update docs
samuel-marsh Oct 26, 2023
cb467a9
Update NAMESPACE
samuel-marsh Oct 26, 2023
8639aa2
update changelog
samuel-marsh Oct 26, 2023
2f1f02e
bump version
samuel-marsh Oct 26, 2023
a68e0ab
replace full tidyverse call to remove suggests
samuel-marsh Oct 27, 2023
0e9b598
Update changelog
samuel-marsh Oct 27, 2023
5e13092
bump version and date
samuel-marsh Oct 27, 2023
6d1ad3d
update palette default to false for ggplot2 colors
samuel-marsh Oct 27, 2023
7ae85b7
Update changelog
samuel-marsh Oct 27, 2023
86d7be8
update docs
samuel-marsh Oct 27, 2023
80efcc6
bump version
samuel-marsh Oct 27, 2023
5350ca7
replace PackageCheck with rlang equivalent
samuel-marsh Oct 27, 2023
b6c194f
Update NAMESPACE
samuel-marsh Oct 27, 2023
8d58a9a
update changelog
samuel-marsh Oct 27, 2023
268c39a
bump version
samuel-marsh Oct 27, 2023
d2d01f4
isTRUE
samuel-marsh Oct 27, 2023
cd6b1fb
isTRUE
samuel-marsh Oct 27, 2023
d5a13a8
isTRUE
samuel-marsh Oct 27, 2023
ca2a363
isTRUE
samuel-marsh Oct 27, 2023
32a00cf
isTRUE
samuel-marsh Oct 27, 2023
c034430
isTRUE
samuel-marsh Oct 27, 2023
367c2e3
isTRUE
samuel-marsh Oct 27, 2023
0ecb78b
update changelog
samuel-marsh Oct 27, 2023
ad66e37
fix error
samuel-marsh Oct 27, 2023
a900114
Update vignettes for release
samuel-marsh Oct 27, 2023
93d1eb7
update changelog
samuel-marsh Oct 27, 2023
9811425
bump version
samuel-marsh Oct 27, 2023
6e1d2d6
fix dual assay slot error
samuel-marsh Oct 30, 2023
4efd6e4
remove testing code
samuel-marsh Oct 30, 2023
e448353
update vignette
samuel-marsh Oct 30, 2023
a4b5577
update vignette
samuel-marsh Oct 30, 2023
d00bc1d
typo
samuel-marsh Oct 31, 2023
aecbcc2
fix cell qc
samuel-marsh Oct 31, 2023
4b0db2a
list naming fix
samuel-marsh Oct 31, 2023
9dff582
fix list naming
samuel-marsh Oct 31, 2023
1731b4f
fix list naming
samuel-marsh Oct 31, 2023
4ca1f26
add split to histogram
samuel-marsh Oct 31, 2023
905e563
update import
samuel-marsh Oct 31, 2023
c9a8db9
update docs
samuel-marsh Oct 31, 2023
9cca3cf
update vignettes with new functionality/capatibility
samuel-marsh Oct 31, 2023
4acd80c
update changelog
samuel-marsh Oct 31, 2023
157e4e0
bump version and date
samuel-marsh Oct 31, 2023
4718a2d
update vignette
samuel-marsh Nov 1, 2023
a08bcd5
bump version and date
samuel-marsh Nov 1, 2023
74a1d42
fix dont run qc function in package build
samuel-marsh Nov 1, 2023
74824e3
add parameter definition
samuel-marsh Nov 1, 2023
07fce4e
fix doi link
samuel-marsh Nov 1, 2023
c52494e
import layers needed?
samuel-marsh Nov 1, 2023
d52e349
update imports remove layers
samuel-marsh Nov 1, 2023
6e567b9
update docs
samuel-marsh Nov 1, 2023
a1294d3
call seurat for data object
samuel-marsh Nov 1, 2023
9a3b857
fix tests
samuel-marsh Nov 1, 2023
6edbf07
fix plot mappings
samuel-marsh Nov 1, 2023
fab6bb8
fix bindings in filter
samuel-marsh Nov 1, 2023
456f4d8
fix line length
samuel-marsh Nov 1, 2023
3a14ff7
update docs
samuel-marsh Nov 1, 2023
f5320f6
fix retrieval of ieg list
samuel-marsh Nov 1, 2023
cf6fced
fix ieg again
samuel-marsh Nov 1, 2023
287d1e4
typo
samuel-marsh Nov 1, 2023
c273180
fix return
samuel-marsh Nov 1, 2023
ab24218
fix docs
samuel-marsh Nov 1, 2023
e71374d
update ieg
samuel-marsh Nov 1, 2023
720bdba
redo retrieval
samuel-marsh Nov 1, 2023
7ff0b6d
bump version
samuel-marsh Nov 1, 2023
d5aefa1
Update data
samuel-marsh Nov 1, 2023
9f34a92
update gene list
samuel-marsh Nov 1, 2023
6fd0542
replace data
samuel-marsh Nov 1, 2023
2539cbf
fix
samuel-marsh Nov 1, 2023
4c4d459
bump version
samuel-marsh Nov 1, 2023
4f88beb
add new gene lists to rsysdata
samuel-marsh Nov 1, 2023
e262097
typo
samuel-marsh Nov 1, 2023
9cd1ddb
bump version
samuel-marsh Nov 1, 2023
c24d1dd
reorg
samuel-marsh Nov 3, 2023
5531560
figure plot add
samuel-marsh Nov 3, 2023
fc61cbc
test add figure plot
samuel-marsh Nov 3, 2023
8a26ed2
typo
samuel-marsh Nov 3, 2023
2e8e628
update docs
samuel-marsh Nov 3, 2023
36e01d4
figure plot
samuel-marsh Nov 3, 2023
6e37587
fix figure plot multiple features
samuel-marsh Nov 3, 2023
3a1adbd
bump news
samuel-marsh Nov 3, 2023
d2e6ca8
bump version and date
samuel-marsh Nov 3, 2023
a7d1a66
fix plot returns
samuel-marsh Nov 3, 2023
9433a88
depend SeuratObject 5.0.0
samuel-marsh Nov 6, 2023
703b142
just update min version
samuel-marsh Nov 6, 2023
3ce41af
update imports
samuel-marsh Nov 6, 2023
16e3d25
update NAMESPACE
samuel-marsh Nov 6, 2023
f2e83d8
bump version and date
samuel-marsh Nov 6, 2023
7de5a6e
test site build
samuel-marsh Nov 6, 2023
dcfc692
test site build
samuel-marsh Nov 6, 2023
b18cf80
update index
samuel-marsh Nov 6, 2023
e6c8fbc
update changelog
samuel-marsh Nov 6, 2023
a751695
bump version
samuel-marsh Nov 6, 2023
abd468a
update cran comments
samuel-marsh Nov 6, 2023
709e3a5
update cran comments
samuel-marsh Nov 6, 2023
979fd06
remove liger temp
samuel-marsh Nov 6, 2023
d32ca0a
fix doi citation
samuel-marsh Nov 6, 2023
913ff6b
cran comments
samuel-marsh Nov 6, 2023
8ad512b
re add rliger
samuel-marsh Nov 6, 2023
dc50ff3
update docs
samuel-marsh Nov 8, 2023
c4a36bb
temp remove liger dep functions
samuel-marsh Nov 8, 2023
d560597
remove liger suggests
samuel-marsh Nov 8, 2023
239155e
update changelog
samuel-marsh Nov 8, 2023
9adba6c
bump date
samuel-marsh Nov 8, 2023
6c43258
proper magrittr import
samuel-marsh Nov 8, 2023
8240eac
fix magrittr
samuel-marsh Nov 8, 2023
f772e29
return rliger
samuel-marsh Nov 9, 2023
bd6bd1a
return rliger update docs
samuel-marsh Nov 9, 2023
751e47b
update changelog
samuel-marsh Nov 9, 2023
de91a91
update cran comments
samuel-marsh Nov 9, 2023
c050aca
bump date
samuel-marsh Nov 9, 2023
5c00110
fix check?
samuel-marsh Nov 9, 2023
b7c5ae6
update docs
samuel-marsh Nov 9, 2023
24883e1
change scuttle check because not dep
samuel-marsh Nov 9, 2023
84b5c2a
update don't test
samuel-marsh Nov 9, 2023
8824087
update docs
samuel-marsh Nov 9, 2023
656adcf
revert
samuel-marsh Nov 9, 2023
410087c
update docs
samuel-marsh Nov 9, 2023
bbe0fae
get second error
samuel-marsh Nov 9, 2023
0a018d3
fix bug
samuel-marsh Nov 9, 2023
9f8a028
fix import
samuel-marsh Nov 11, 2023
5b9bf3f
check fix
samuel-marsh Nov 11, 2023
b9dd349
test fix
samuel-marsh Nov 12, 2023
a5aea8d
dont run and test
samuel-marsh Nov 12, 2023
b7978e3
update test
samuel-marsh Nov 12, 2023
2fd069c
revert
samuel-marsh Nov 13, 2023
84cf7e5
dontrun
samuel-marsh Nov 13, 2023
42ed408
dont run again
samuel-marsh Nov 13, 2023
9783a8a
update cran comments
samuel-marsh Nov 13, 2023
c932ec5
restore tests
samuel-marsh Nov 13, 2023
67f2c2c
update changelog
samuel-marsh Nov 13, 2023
5091e16
bump date
samuel-marsh Nov 13, 2023
2019643
update docs
samuel-marsh Nov 13, 2023
0f9f102
update vignette
samuel-marsh Nov 13, 2023
1a69a97
change style
samuel-marsh Nov 13, 2023
c9a0152
style fix
samuel-marsh Nov 13, 2023
fa8bd97
update site build
samuel-marsh Nov 14, 2023
4ea5795
update cran comments
samuel-marsh Nov 14, 2023
8987da5
update platform and R version
samuel-marsh Nov 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: scCustomize
Type: Package
Title: Custom Visualizations & Functions for Streamlined Analyses of Single Cell Sequencing
Description: Collection of functions created and/or curated to aid in the visualization and analysis of single-cell data using 'R'. 'scCustomize' aims to provide 1) Customized visualizations for aid in ease of use and to create more aesthetic and functional visuals. 2) Improve speed/reproducibility of common tasks/pieces of code in scRNA-seq analysis with a single or group of functions. For citation please use: Marsh SE (2021) "Custom Visualizations & Functions for Streamlined Analyses of Single Cell Sequencing" <doi:10.5281/zenodo.5706430>.
Version: 1.1.3
Date: 2023-07-19
Version: 2.0.0
Date: 2023-11-13
Authors@R: c(
person(given = "Samuel", family = "Marsh", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3012-6945")),
person(given = "Ming", family = "Tang", role = c("ctb"), email = "[email protected]"),
Expand All @@ -13,7 +13,7 @@ Authors@R: c(
URL: https://github.com/samuel-marsh/scCustomize, https://samuel-marsh.github.io/scCustomize/, https://doi.org/10.5281/zenodo.5706431
BugReports: https://github.com/samuel-marsh/scCustomize/issues
Depends: R (>= 4.0.0),
Seurat (>= 4.3.0)
Seurat (>= 4.3.0.1)
Imports:
circlize,
cli (>= 3.2.0),
Expand All @@ -40,8 +40,8 @@ Imports:
purrr,
rlang (>= 1.0.1),
scales,
scattermore (>= 0.7),
SeuratObject (>= 4.1.2),
scattermore (>= 1.2),
SeuratObject (>= 5.0.0),
stats,
stringi,
stringr,
Expand All @@ -58,8 +58,8 @@ Suggests:
remotes,
rliger,
rmarkdown,
scuttle,
tidyselect,
tidyverse,
qs,
viridis
License: GPL (>= 3)
Expand Down
16 changes: 14 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ S3method(Fetch_Meta,liger)
export(Add_CellBender_Diff)
export(Add_Cell_Complexity_LIGER)
export(Add_Cell_Complexity_Seurat)
export(Add_Cell_QC_Metrics)
export(Add_Mito_Ribo_LIGER)
export(Add_Mito_Ribo_Seurat)
export(Add_Pct_Diff)
export(Add_Sample_Meta)
export(Add_Top_Gene_Pct_Seurat)
export(Barcode_Plot)
export(Blank_Theme)
export(Case_Check)
export(CellBender_Diff_Plot)
Expand Down Expand Up @@ -38,9 +41,11 @@ export(Extract_Sample_Meta)
export(Extract_Top_Markers)
export(FeaturePlot_DualAssay)
export(FeaturePlot_scCustom)
export(FeatureScatter_scCustom)
export(Fetch_Meta)
export(Gene_Present)
export(Hue_Pal)
export(Iterate_Barcode_Rank_Plot)
export(Iterate_Cluster_Highlight_Plot)
export(Iterate_DimPlot_bySample)
export(Iterate_FeaturePlot_scCustom)
Expand All @@ -51,6 +56,7 @@ export(Iterate_Plot_Density_Joint)
export(Iterate_VlnPlot_scCustom)
export(JCO_Four)
export(Liger_to_Seurat)
export(MAD_Stats)
export(Median_Stats)
export(Merge_Seurat_List)
export(Merge_Sparse_Data_All)
Expand All @@ -74,6 +80,7 @@ export(Plot_Median_Other)
export(Plot_Median_UMIs)
export(Pull_Cluster_Annotation)
export(Pull_Directory_List)
export(QC_Histogram)
export(QC_Plot_GenevsFeature)
export(QC_Plot_UMIvsFeature)
export(QC_Plot_UMIvsGene)
Expand Down Expand Up @@ -156,7 +163,10 @@ importFrom(Seurat,VariableFeaturePlot)
importFrom(Seurat,VizDimLoadings)
importFrom(Seurat,VlnPlot)
importFrom(SeuratObject,DefaultDimReduc)
importFrom(SeuratObject,PackageCheck)
importFrom(SeuratObject,Features)
importFrom(SeuratObject,JoinLayers)
importFrom(SeuratObject,LayerData)
importFrom(SeuratObject,Layers)
importFrom(circlize,colorRamp2)
importFrom(cowplot,theme_cowplot)
importFrom(data.table,fread)
Expand All @@ -176,6 +186,7 @@ importFrom(dplyr,n)
importFrom(dplyr,pull)
importFrom(dplyr,rename)
importFrom(dplyr,select)
importFrom(dplyr,setdiff)
importFrom(dplyr,slice)
importFrom(dplyr,slice_max)
importFrom(dplyr,summarise)
Expand Down Expand Up @@ -212,15 +223,16 @@ importFrom(purrr,keep)
importFrom(purrr,map)
importFrom(purrr,map2)
importFrom(purrr,map_dbl)
importFrom(purrr,pluck)
importFrom(purrr,reduce)
importFrom(rlang,is_installed)
importFrom(rlang,sym)
importFrom(scales,alpha)
importFrom(scales,hue_pal)
importFrom(scales,label_percent)
importFrom(scattermore,geom_scattermore)
importFrom(stats,cor)
importFrom(stats,kmeans)
importFrom(stats,mad)
importFrom(stats,median)
importFrom(stats,quantile)
importFrom(stats,setNames)
Expand Down
62 changes: 62 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
# scCustomize 2.0.0 (2023-11-13)
## Added
- Added support for metrics produced by Cell Ranger `multi` pipeline to `Read10X_Metrics` via new parameter `cellranger_multi`.
- Added `dot_size` parameter to `Seq_QC_Plot_*` family of functions.
- Added two new sequencing QC functions to create and iterate barcode rank plots: `Barcode_Plot` and `Iterate_Barcode_Rank_Plot`.
- Added `ident_legend` parameter to `QC_Plot_UMIvsGene` to control show/hide of the identity legend ([#121](https://github.com/samuel-marsh/scCustomize/issues/121)).
- Added support for sparse matrix input in `CellBender_Feature_Diff`.
- Added `min_count_label` in `CellBender_Diff_Plot` to better control feature labeling.
- Allow specification of meta data column containing sample names/IDs in `Iterate_DimPlot_bySample` using new `sample_column` parameter.
- Added new function `MAD_Stats` to calculate to the median absolute deviation of meta.data columns by grouping variable and across entire object.
- Added new function `Add_Top_Gene_Pct_Seurat` to add another QC measure of cell complexity to object meta.data. Returns percentage of counts occupied by top XX genes in each cell.
- Added ability to provide set of custom features to `VariableFeaturePlot_scCustom` using `custom_features` parameter.
- Added new overall cell QC metric function `Add_Cell_QC_Metrics` to simplify adding cell QC metrics. Single function call to add Mito/Ribo Percentages, Cell Complexity, Top Gene Percentages, MSigDB Percentages, IEG Percentages, and/or Cell Cycle Scoring (human only).
- Added 2 new gene lists to package data for use in `Add_Cell_QC_Metrics` function: "msigdb_qc_gene_list" and "ieg_gene_list".
- Added several internal functions to support new MsigDB and IEG capabilities of `Add_Cell_QC_Metrics`.
- Added new parameters `plot_median` and `plot_boxplot` to `VlnPlot_scCustom` (and `VlnPlot_scCustom`-based plots; e.g., `QC_Plot_*` family) for added visualization.
- Added `QC_Histogram` to plot QC features (or any feature) using simple histogram.
- Added `FeatureScatter_scCustom` function to customize Seurat's `FeatureScatter` plots.
- Added `figure_plot` parameter to all 2D DR (t-SNE, UMAP, etc) based plots ([#127](https://github.com/samuel-marsh/scCustomize/issues/127)).


## Changed
- Large scale under the hood code adjustments to ensure compatibility with Seurat V5 object structure.
- Internal code syntax updates independent of Seurat functionality.
- **HARD DEPRECATION** `Split_FeatureScatter` function has been completely deprecated and it's functionality has been moved to new `FeatureScatter_scCustom`.
- **SOFT DEPRECATION** The parameter `gene_list` in `Iterate_FeaturePlot_scCustom` and `Iterate_VlnPlot_scCustom` has been soft-deprecated and replaced by `features` parameter. Specifying `gene_list` will display deprecation warning but continue to function until next major update.
- The above soft deprecation was to clarify that other features besides genes can be plotted and coincides with update to functions to allow for iterative plots of meta.data or reductions in addition to assay features ([#123](https://github.com/samuel-marsh/scCustomize/issues/123)).
- Internal rewrite of `Read10X_Metrics` to use new internal helper functions.
- Changed `Liger_to_Seurat` to transfer the liger_object@H slot in addition to H.norm slot already moved.
- Replaced `length(x = colnames(x = obj)` with `length(x = Cells(x = obj)` for accurate plotting based on V5 object structure.
- `Gene_Present` now accepts `assay` parameter.
- Internal reorganization of some functions within `R/` for better organization.
- Updated default scCustomize color palettes (`scCustomize_Palette`). Now if number of colors is greater than 2 but less than 8 the default palette will be `ColorBlind_Pal` (previously it was "polychrome"). Polychrome remains the default when number of colors is between 9-36.
- Updated parameter default within `scCustomize_Palette` to `ggplot_default_colors = FALSE` to avoid uncessary error when no value supplied.
- Minimum version of scattermore package updated to v1.2.
- `DimPlot_scCustom` will now set `label = TRUE` if `label.box` is set to TRUE but `label` is not changed from default.
- Removed loading of full tidyverse in vignettes to remove from package suggests (lessen dependency installs when not completely needed).
- Replace Seurat `PackageCheck` (now deprecated), with `rlang::is_installed()` for non-dependency checks.
- Update vignettes with new features and bug fixes from old code.


## Fixes
- Fixed issue in `Read10X_Metrics` that caused errors when reading files on windows operating system ([#115](https://github.com/samuel-marsh/scCustomize/issues/115)).
- Fixed issue in `Create_CellBender_Merged_Seurat` when feature names are changed (underscore to dash) during object creation ([#118](https://github.com/samuel-marsh/scCustomize/issues/118)).
- Fixed error in `Read10X_h5_Mutli_Directory` when reading Cell Ranger `multi` directories.
- Added new checks to `VlnPlot_scCustom`, `DimPlot_scCustom`, and `DotPlot_scCustom` to avoid otherwise ambiguous error messages ([#120](https://github.com/samuel-marsh/scCustomize/issues/120)).
- Fixed internal check message accidentally user facing in `VlnPlot_scCustom` ([#122](https://github.com/samuel-marsh/scCustomize/issues/122)).
- Fixed cli warning in `Cell_Highlight_Plot` that could cause function to error without proper error message.
- Fixed handling of file names in `Read_*` functions to avoid unnecessary errors.
- Replace superseded dplyr syntax/functionality `drop_na(.data[[var]]`, with current dplyr syntax.
- Internal code fixes to accelerate plotting functions.
- Fixed default plot colors in `VlnPlot`-based plots when `split.by` is not NULL.
- Fixed error when trying to plot more than two variables with `group.by` when using `DimPlot_scCustom` ([#128](https://github.com/samuel-marsh/scCustomize/issues/128)).
- Fixed errors in parameter description for `Add_Mito_Ribo_Seurat` and `Add_Mito_Ribo_LIGER` which incorrectly stated the names of new meta.data/cell.data columns to be added.
- Fixed bug in `DotPlot_scCustom` that prevented it from working unless `group.by` parameter was explicitly added.
- Fixed bug in `Case_Check` caused by typo.
- Fixed color warning messages in `Cluster_Highlight_Plot` and `Meta_Highlight_Plot` that were too verbose.
- Fixed bug in `Add_Mito_Ribo_Seurat` and `Add_Mito_Ribo_LIGER` which caused error when supplying custom list of features for non-default organism ([#133](https://github.com/samuel-marsh/scCustomize/issues/133)).
- Fixed bug in `DimPlot_scCustom` preventing that errored when trying to split plot and use `figure_plot` at same time.



# scCustomize 1.1.3 (2023-07-19)
## Added
- None.
Expand Down
24 changes: 14 additions & 10 deletions R/Color_Palettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ NavyAndOrange <- function(
flip_order = FALSE
) {
navy_orange <- c("navy", "orange")
if (flip_order) {
if (isTRUE(x = flip_order)) {
navy_orange <- rev(x = navy_orange)
}
return(navy_orange)
Expand Down Expand Up @@ -376,7 +376,7 @@ varibow_scCustom <- function(
#' @import cli
# #' @importFrom colorway varibow (now directly ported for CRAN compatibility)
#' @importFrom paletteer paletteer_d
#' @importFrom SeuratObject PackageCheck
#' @importFrom rlang is_installed
#'
#' @return A vector of colors
#'
Expand Down Expand Up @@ -428,8 +428,8 @@ DiscretePalette_scCustomize <- function(

# dittoseq check
if (palette == "ditto_seq") {
dittoseq_check <- PackageCheck("dittoSeq", error = FALSE)
if (!dittoseq_check[1]) {
dittoseq_check <- is_installed(pkg = "dittoSeq")
if (isFALSE(x = dittoseq_check[1])) {
cli_abort(message = c(
"Please install the {.val dittoSeq} package to {.code palette = {symbol$dquote_left}ditto_seq{symbol$dquote_right}}",
"i" = "This can be accomplished with the following commands:",
Expand Down Expand Up @@ -467,7 +467,7 @@ DiscretePalette_scCustomize <- function(
"i" = "Please adjust {.code num_colors} to be less than or equal to {.field {length(x = palette_out)}} or select a different {.code palette}.")
)
}
if (shuffle_pal) {
if (isTRUE(x = shuffle_pal)) {
set.seed(seed = seed)
palette_out <- sample(x = palette_out[1:num_colors])
} else {
Expand All @@ -484,7 +484,8 @@ DiscretePalette_scCustomize <- function(
#' @param num_groups number of groups to be plotted. If `ggplot_default_colors = FALSE` then by default:
#' \itemize{
#' \item If number of levels plotted equal to 2 then colors will be `NavyAndOrange()`.
#' \item If If number of levels plotted greater than 2 but less than or equal to 36 it will use "polychrome" from `DiscretePalette_scCustomize`.
#' \item If number of levels plotted greater than 2 but less than or equal to 8 it will use `ColorBlind_Pal()`.
#' \item If number of levels plotted greater than 2 but less than or equal to 36 it will use "polychrome" from `DiscretePalette_scCustomize()`.
#' \item If greater than 36 will use "varibow" with shuffle = TRUE from `DiscretePalette_scCustomize`.
#' }
#' @param ggplot_default_colors logical. Whether to use default ggplot hue palette or not.
Expand All @@ -503,11 +504,11 @@ DiscretePalette_scCustomize <- function(

scCustomize_Palette <- function(
num_groups,
ggplot_default_colors,
ggplot_default_colors = FALSE,
color_seed = 123
) {
# Set color palette depending on group length
if (ggplot_default_colors) {
if (isTRUE(x = ggplot_default_colors)) {
colors_use <- Hue_Pal(num_colors = num_groups)
} else {
if (num_groups == 1) {
Expand All @@ -516,7 +517,10 @@ scCustomize_Palette <- function(
if (num_groups == 2) {
colors_use <- NavyAndOrange()
}
if (num_groups > 2 && num_groups <= 36) {
if (num_groups > 2 && num_groups <= 8) {
colors_use <- ColorBlind_Pal()
}
if (num_groups > 8 && num_groups <= 36) {
colors_use <- DiscretePalette_scCustomize(num_colors = num_groups, palette = "polychrome")
}
if (num_groups > 36) {
Expand Down Expand Up @@ -585,7 +589,7 @@ PalettePlot <- function(

# Plot
# Label plot
if (label_color_num) {
if (isTRUE(x = label_color_num)) {
palette_plot <- ggplot(palette_data) +
geom_tile(aes(x = .data[["x"]], y = .data[["y"]], fill = .data[["fill"]])) +
geom_text(aes(x = .data[["x"]], y = .data[["y"]], label = .data[["x"]])) +
Expand Down
53 changes: 53 additions & 0 deletions R/Data.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,56 @@
#' @concept data
#'
"ensembl_ribo_id"


#' QC Gene Lists
#'
#' Gene symbols for qc percentages from MSigDB database. The gene sets are from 3 MSigDB lists:
#' "HALLMARK_OXIDATIVE_PHOSPHORYLATION", "HALLMARK_APOPTOSIS", and "HALLMARK_DNA_REPAIR".
#'
#' @format A list of 18 vectors
#' \describe{
#' \item{Homo_sapiens_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for human}
#' \item{Homo_sapiens_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for human}
#' \item{Homo_sapiens_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for human}
#' \item{Mus_musculus_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for mouse}
#' \item{Mus_musculus_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for mouse}
#' \item{Mus_musculus_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for mouse}
#' \item{Rattus_norvegicus_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for rat}
#' \item{Rattus_norvegicus_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for rat}
#' \item{Rattus_norvegicus_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for rat}
#' \item{Drosophila_melanogaster_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for fly}
#' \item{Drosophila_melanogaster_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for fly}
#' \item{Drosophila_melanogaster_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for fly}
#' \item{Dario_rerio_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for zebrafish}
#' \item{Dario_rerio_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for zebrafish}
#' \item{Dario_rerio_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for zebrafish}
#' \item{Macaca_mulatta_msigdb_oxphos}{Genes in msigdb "HALLMARK_OXIDATIVE_PHOSPHORYLATION" list for macaque}
#' \item{Macaca_mulatta_msigdb_apop}{Genes in msigdb "HALLMARK_APOPTOSIS" list for macaque}
#' \item{Macaca_mulatta_msigdb_dna_repair}{Genes in msigdb "HALLMARK_DNA_REPAIR" list for macaque}
#'
#' }
#' @concept data
#'
#' @source MSigDB gene sets via msigdbr package \url{https://cran.r-project.org/package=msigdbr}
#'
"msigdb_qc_gene_list"


#' Immediate Early Gene (IEG) gene lists
#'
#' Gene symbols for immediate early genes
#'
#' @format A list of seven vectors
#' \describe{
#' \item{Mus_musculus_IEGs}{Gene symbols for IEGs from source publication (see below)}
#' \item{Homo_sapiens_IEGs}{Human gene symbols for homologous genes from mouse gene list}
#'
#' }
#' @concept data
#'
#' @source Mouse gene list is from: SI Table 4 from \doi{10.1016/j.neuron.2017.09.026}. Human
#' gene list was compiled by first creating homologous gene list using biomaRt and then adding some manually curated
#' homologs according to HGNC.
#'
"ieg_gene_list"
Loading
Loading