Skip to content

Release/3.0.0 #203

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

Merged
merged 690 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
690 commits
Select commit Hold shift + click to select a range
ba5d76e
bump version and date
samuel-marsh Aug 6, 2024
ceb6d3b
reveal reduction explicitly
samuel-marsh Aug 20, 2024
a57352a
update roxygen version
samuel-marsh Aug 20, 2024
177798a
Update docs
samuel-marsh Aug 20, 2024
ce5f7c6
update changelog
samuel-marsh Aug 20, 2024
d162284
bump version and date
samuel-marsh Aug 20, 2024
988e593
add to plotting
samuel-marsh Aug 20, 2024
b8aef43
add show row/column names param to clustered dotplot
samuel-marsh Aug 22, 2024
8f8295f
update docs
samuel-marsh Aug 22, 2024
a6152fb
Update changelog
samuel-marsh Aug 22, 2024
33cc3a4
bump version and date
samuel-marsh Aug 22, 2024
2f3ef66
revert test
samuel-marsh Aug 22, 2024
95c4ff3
fix error
samuel-marsh Aug 22, 2024
baf2aea
add row and column name side param to clustered Dotplot
samuel-marsh Aug 22, 2024
ceec35a
add informative warnings
samuel-marsh Aug 22, 2024
3922c30
Update docs
samuel-marsh Aug 22, 2024
06f913f
Update changelog
samuel-marsh Aug 22, 2024
fdf5401
bump version
samuel-marsh Aug 22, 2024
9cb81a6
fix after mtg
samuel-marsh Aug 22, 2024
64fc500
fixes
samuel-marsh Aug 23, 2024
78bfbf0
fix anno block
samuel-marsh Aug 23, 2024
f69258c
update
samuel-marsh Aug 23, 2024
b2372c1
update parameter
samuel-marsh Aug 23, 2024
1f82a5a
update docs
samuel-marsh Aug 23, 2024
aa68554
bump version and date
samuel-marsh Aug 23, 2024
2cc47ba
update split vector
samuel-marsh Aug 23, 2024
5273c84
Update changelog
samuel-marsh Aug 23, 2024
3bca33e
Update docs
samuel-marsh Aug 23, 2024
a15b685
bump version
samuel-marsh Aug 23, 2024
a3d5b53
allow splitting cluster highlight plot
samuel-marsh Sep 3, 2024
4e36688
update docs
samuel-marsh Sep 3, 2024
0ad131b
allow split in cluster highlight
samuel-marsh Sep 4, 2024
8cf95a4
allow split in cliuster plot (adjust title size parameter)
samuel-marsh Sep 4, 2024
a8e0609
update docs
samuel-marsh Sep 4, 2024
4096052
update parameters and docs
samuel-marsh Sep 4, 2024
d57ffaf
Update docs
samuel-marsh Sep 4, 2024
4353bf7
update for ordering of plots
samuel-marsh Sep 4, 2024
f10420c
Update docs
samuel-marsh Sep 4, 2024
f29bf06
bump version and date
samuel-marsh Sep 4, 2024
47ba630
fix if
samuel-marsh Sep 4, 2024
1fdc4b5
add num_columns
samuel-marsh Sep 4, 2024
3ec2727
Update docs
samuel-marsh Sep 4, 2024
0d5050e
add legend positioning
samuel-marsh Sep 12, 2024
741310e
Update legend orientation
samuel-marsh Sep 12, 2024
908ae8f
control rows for horizontal legend
samuel-marsh Sep 12, 2024
1025ec8
add hide ident legend
samuel-marsh Sep 12, 2024
e30acb0
fix legend rows error when unspecified
samuel-marsh Sep 12, 2024
8b67d77
add else condition
samuel-marsh Sep 12, 2024
d1c8798
remove color bar param
samuel-marsh Sep 12, 2024
a285b8c
fix error
samuel-marsh Sep 12, 2024
4c2480e
update legend check
samuel-marsh Sep 12, 2024
6b80f40
update manual docs
samuel-marsh Sep 12, 2024
99f4e67
Update docs
samuel-marsh Sep 12, 2024
a8f86be
update changelog
samuel-marsh Sep 12, 2024
3d124e9
bump version and date
samuel-marsh Sep 12, 2024
60f4c4b
Update changelog
samuel-marsh Sep 12, 2024
28c71c0
styling
samuel-marsh Sep 13, 2024
8e7cded
mouse symbol support functions
samuel-marsh Sep 13, 2024
3ba05df
Update mouse symbols
samuel-marsh Sep 13, 2024
b849f72
Update namespace
samuel-marsh Sep 13, 2024
a5baf12
Update docs
samuel-marsh Sep 13, 2024
e6b561e
wrong code fix
samuel-marsh Sep 13, 2024
06b337a
add back column names
samuel-marsh Sep 13, 2024
4f17938
update changelog
samuel-marsh Sep 13, 2024
d64310f
bump version and date
samuel-marsh Sep 13, 2024
8e8db24
fix check errors
samuel-marsh Sep 17, 2024
9e52208
update namespace
samuel-marsh Sep 17, 2024
24247b2
Update docs
samuel-marsh Sep 17, 2024
0fcef71
Update changelog
samuel-marsh Sep 17, 2024
f5e6aa3
bump version and date
samuel-marsh Sep 17, 2024
5ebc73a
add interpretable error message to ConvertAssay edge case
samuel-marsh Sep 18, 2024
7afa5bd
Update changelog
samuel-marsh Sep 18, 2024
74153e9
bump version and date
samuel-marsh Sep 18, 2024
c9547ea
Factor Cor to support Seurat and LIGER objects
samuel-marsh Sep 20, 2024
d2e8e3c
factor cor plot support Seurat objects
samuel-marsh Sep 20, 2024
459ce62
fix example
samuel-marsh Sep 20, 2024
f28fda2
Update changelog
samuel-marsh Sep 20, 2024
f50f392
Update changelog
samuel-marsh Sep 20, 2024
2344f21
bump version and date
samuel-marsh Sep 20, 2024
1db03ea
typo
samuel-marsh Sep 23, 2024
f5e4a54
Update docs
samuel-marsh Sep 23, 2024
4447512
add plot pie proportions
samuel-marsh Sep 25, 2024
2007979
Update docs
samuel-marsh Sep 25, 2024
ba34575
namespace
samuel-marsh Sep 25, 2024
b690712
update changelog
samuel-marsh Sep 25, 2024
99799a4
bump version and date
samuel-marsh Sep 25, 2024
b3b33e8
fix factor cor code
samuel-marsh Sep 25, 2024
af02f60
bump version
samuel-marsh Sep 25, 2024
0014972
fix liger plot
samuel-marsh Sep 25, 2024
1adfe0c
rewrite params
samuel-marsh Sep 26, 2024
dfc6ef3
Update docs
samuel-marsh Sep 26, 2024
d6f1dec
bump version
samuel-marsh Sep 26, 2024
2c96508
fix python conversion
samuel-marsh Sep 27, 2024
bcf956b
fix names
samuel-marsh Sep 27, 2024
e8d9fc9
fixed with note
samuel-marsh Sep 27, 2024
04b95e8
Update changelog
samuel-marsh Sep 27, 2024
2e2d39c
bump version and date
samuel-marsh Sep 27, 2024
e641928
fix ?? code
samuel-marsh Sep 29, 2024
6e31c0f
update species and replace deprecated functions
samuel-marsh Sep 30, 2024
1aac35f
Rename proportion plot and give option of bar or pie plots
samuel-marsh Oct 1, 2024
d209c73
Update docs
samuel-marsh Oct 1, 2024
e4e1a1b
Update NAMESPACE
samuel-marsh Oct 1, 2024
84e9cfc
Update changelog
samuel-marsh Oct 1, 2024
8f3fd02
bump version and date
samuel-marsh Oct 1, 2024
98f1e77
fix renamed parameter
samuel-marsh Oct 1, 2024
12930b3
fix error messages and titles
samuel-marsh Oct 1, 2024
9c36043
missing theme()
samuel-marsh Oct 1, 2024
1063cae
Update title
samuel-marsh Oct 1, 2024
10020a7
remove quotes
samuel-marsh Oct 1, 2024
e8e5fa4
title and message fixes
samuel-marsh Oct 1, 2024
2856c7e
fix error
samuel-marsh Oct 1, 2024
e61d5a3
fix axis label
samuel-marsh Oct 1, 2024
916abce
bump version
samuel-marsh Oct 1, 2024
1bc63d9
add rotate X
samuel-marsh Oct 1, 2024
9e09a2e
Update docs
samuel-marsh Oct 1, 2024
286c6ae
bump version
samuel-marsh Oct 1, 2024
5dc7de4
add random cells downsample
samuel-marsh Oct 18, 2024
dbb692c
add functionality
samuel-marsh Oct 18, 2024
3ca56e0
update docs
samuel-marsh Oct 18, 2024
f2b4317
Update namespace
samuel-marsh Oct 18, 2024
c6b8e75
fix message
samuel-marsh Oct 18, 2024
f878068
fix message
samuel-marsh Oct 18, 2024
e11475c
finalize messge
samuel-marsh Oct 18, 2024
1682f52
split message
samuel-marsh Oct 18, 2024
fe64afd
update to id the min group used
samuel-marsh Oct 18, 2024
496ce11
message fixes
samuel-marsh Oct 18, 2024
038cbac
fixing message for min cells check
samuel-marsh Oct 18, 2024
fc16f2b
fix
samuel-marsh Oct 18, 2024
be49508
finish examples
samuel-marsh Oct 18, 2024
aa9c364
style
samuel-marsh Oct 18, 2024
5ad08f0
update docs
samuel-marsh Oct 18, 2024
6dd05af
update changelog
samuel-marsh Oct 18, 2024
120abe9
bump version and date
samuel-marsh Oct 18, 2024
381a9dc
Update changelog
samuel-marsh Oct 18, 2024
0c6a0f0
fix hgnc download path
samuel-marsh Oct 23, 2024
a32e0da
Update changelog
samuel-marsh Oct 23, 2024
a58f3dd
bump version and date
samuel-marsh Oct 23, 2024
62126d8
fix url
samuel-marsh Oct 23, 2024
e119fa9
allow forced mins
samuel-marsh Oct 28, 2024
656a1ad
update random cells to allow force lower numbers if wanted
samuel-marsh Oct 29, 2024
f102744
typos
samuel-marsh Oct 29, 2024
28b07bf
bump version and date
samuel-marsh Oct 29, 2024
89ca552
fix tidyr syntax from test code
samuel-marsh Oct 29, 2024
f528466
add internal for meta threshold and module scoring
samuel-marsh Oct 29, 2024
40a14a6
change to meta data version
samuel-marsh Oct 29, 2024
6950887
fix?
samuel-marsh Oct 29, 2024
6a850c5
add ggridges import
samuel-marsh Oct 30, 2024
7d8aa91
add function
samuel-marsh Oct 30, 2024
e372044
add verbose param
samuel-marsh Oct 30, 2024
bd4efcc
adding module sig
samuel-marsh Oct 30, 2024
75614ed
run module sig
samuel-marsh Oct 30, 2024
dc2e783
Update docs
samuel-marsh Oct 30, 2024
af4fd45
Update and organize changelog
samuel-marsh Oct 30, 2024
e2caf1a
Update docs
samuel-marsh Oct 30, 2024
dbe144f
update NAMESPACE
samuel-marsh Oct 30, 2024
a63ea50
add concept and styling
samuel-marsh Oct 30, 2024
a5c8352
styling and tidyr fixes
samuel-marsh Oct 30, 2024
d2fb8ee
bump version and date
samuel-marsh Oct 30, 2024
a3e3189
Update
samuel-marsh Oct 30, 2024
4cafba7
fix roxygen errors
samuel-marsh Oct 30, 2024
777ab0f
bump version
samuel-marsh Oct 30, 2024
138fdc3
remove legend if split.by and label.box is TRUE
samuel-marsh Oct 31, 2024
c79841b
Update changelog
samuel-marsh Oct 31, 2024
66caab7
bump version and date
samuel-marsh Oct 31, 2024
7f1a66b
Change function name
samuel-marsh Oct 31, 2024
4fcf018
bump version
samuel-marsh Oct 31, 2024
c0ec26a
remove erroring test code
samuel-marsh Oct 31, 2024
e29212c
remove progress bar version
samuel-marsh Oct 31, 2024
e157802
fix error
samuel-marsh Oct 31, 2024
f9d81f4
remove for testing and errors
samuel-marsh Nov 1, 2024
6fe0b44
update
samuel-marsh Nov 1, 2024
17038b9
correct function name
samuel-marsh Nov 5, 2024
917d453
color seed inform
samuel-marsh Nov 6, 2024
f727620
bump version and date
samuel-marsh Nov 6, 2024
8c223c1
fix invalid palette error
samuel-marsh Nov 6, 2024
b53dc59
update changelog
samuel-marsh Nov 6, 2024
c6face8
bump version and date
samuel-marsh Nov 6, 2024
38ac607
Update symbols vignette with mouse genes
samuel-marsh Nov 8, 2024
4063433
add cells per sample
samuel-marsh Nov 8, 2024
f254b13
Update docs
samuel-marsh Nov 8, 2024
d4a911c
update changelog
samuel-marsh Nov 8, 2024
5c3d260
bump version and date
samuel-marsh Nov 8, 2024
425e1ce
fix error message
samuel-marsh Nov 8, 2024
5e94288
fix error
samuel-marsh Nov 8, 2024
eb22d53
fixed now
samuel-marsh Nov 8, 2024
2b035e7
Update docs
samuel-marsh Nov 12, 2024
29b2b3d
update docs
samuel-marsh Nov 12, 2024
be9c7dd
bump version and date
samuel-marsh Nov 12, 2024
c136659
typos
samuel-marsh Nov 13, 2024
baa6f49
Update statistics vignette
samuel-marsh Nov 13, 2024
b2bb5f4
bump version and date
samuel-marsh Nov 13, 2024
05fcc04
update seq_zeros padding behavior dependent on input seq_length
samuel-marsh Nov 15, 2024
2b09f2d
fix padding
samuel-marsh Nov 15, 2024
b976866
fix compatibility when providing sequence
samuel-marsh Nov 15, 2024
92993ff
Update plotting vignette
samuel-marsh Nov 18, 2024
505b910
Organize R/. Move QC functions to new R script
samuel-marsh Nov 19, 2024
bdefef5
update docs
samuel-marsh Nov 19, 2024
06e4b84
add list species fix
samuel-marsh Nov 19, 2024
5b5e685
update docs
samuel-marsh Nov 19, 2024
98f8d99
bump version and date
samuel-marsh Nov 19, 2024
f794197
fix order
samuel-marsh Nov 19, 2024
c79a71e
Update QC vignettes
samuel-marsh Nov 19, 2024
843fe63
list species updates
samuel-marsh Nov 19, 2024
fbb54cc
update changelog
samuel-marsh Nov 19, 2024
f8836f2
Update docs
samuel-marsh Nov 19, 2024
ef8603b
bump version
samuel-marsh Nov 19, 2024
65ce72e
Object QC functions moved to separate vignette
samuel-marsh Nov 19, 2024
8a75e82
Update changelog
samuel-marsh Nov 19, 2024
41e4b05
Add spatial plotting vignette
samuel-marsh Nov 19, 2024
91b00c1
fix example too long for documentation
samuel-marsh Nov 19, 2024
52cbd1c
Update docs
samuel-marsh Nov 19, 2024
cf6e0db
Spatial Vignette
samuel-marsh Nov 19, 2024
a8d3851
rename R/ scripts
samuel-marsh Nov 19, 2024
919f349
update docs
samuel-marsh Nov 19, 2024
40f1813
bump version
samuel-marsh Nov 19, 2024
68af40b
fix double null
samuel-marsh Nov 20, 2024
382a606
fix liger plotting error
samuel-marsh Nov 20, 2024
40b425f
update changelog
samuel-marsh Nov 20, 2024
1757a45
bump version and date
samuel-marsh Nov 20, 2024
757d6cb
allow group byt var to be ident
samuel-marsh Nov 22, 2024
6f3d29a
update cran comments for submission
samuel-marsh Nov 26, 2024
1433d9c
Update pkgdown yaml
samuel-marsh Nov 26, 2024
755c3ad
styling
samuel-marsh Nov 26, 2024
da051a3
fix definition variable
samuel-marsh Nov 26, 2024
09415a2
bump version to release
samuel-marsh Nov 26, 2024
64b7323
bump date
samuel-marsh Nov 26, 2024
1ec9850
start fixing metrics for cell ranger 9 changes
samuel-marsh Dec 3, 2024
6e01614
start fixing for cell ranger 9 changes
samuel-marsh Dec 3, 2024
7ea98f3
read single metrics v9plus complete
samuel-marsh Dec 4, 2024
9506cfe
style
samuel-marsh Dec 4, 2024
d317e63
Update read metrics for count v9+
samuel-marsh Dec 4, 2024
657b804
add comment
samuel-marsh Dec 4, 2024
0a4d6d8
bump date
samuel-marsh Dec 4, 2024
50a4934
Update changelog
samuel-marsh Dec 4, 2024
a600554
update liger vingette with in progress message
samuel-marsh Dec 4, 2024
e7a07ac
spelling fix
samuel-marsh Dec 4, 2024
c230653
fix undefined variable
samuel-marsh Dec 4, 2024
d5230cf
bump dates for release
samuel-marsh Dec 5, 2024
575b376
fix code links
samuel-marsh Dec 5, 2024
58b7ec0
update docs
samuel-marsh Dec 5, 2024
540b123
add missing concept
samuel-marsh Dec 5, 2024
040b9a7
update docs
samuel-marsh Dec 5, 2024
54898f9
fix feature present for new liger objects
samuel-marsh Dec 5, 2024
f200499
update changelog
samuel-marsh Dec 5, 2024
0255683
fix vignette errors
samuel-marsh Dec 5, 2024
8dd9d44
fix vignette
samuel-marsh Dec 5, 2024
4f55935
test pkgdown site
samuel-marsh Dec 5, 2024
0193fbd
update cran comments
samuel-marsh Dec 5, 2024
59b5b09
cran submitted
samuel-marsh Dec 5, 2024
90247e9
fix cran comments
samuel-marsh Dec 5, 2024
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ vignettes/*.orig$
^README\.Rmd$
^cran-comments\.md$
^CRAN-SUBMISSION$
^data-raw$
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 2.1.2
Date: 2024-02-27 15:16:14 UTC
SHA: 3789733c4393d9d0abdff14c94b57f25a4da29ff
Version: 3.0.0
Date: 2024-12-05 20:08:02 UTC
SHA: 0193fbdf787f715d4eb9e36b96bb74d32fc9ad15
6 changes: 3 additions & 3 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> RRID:SCR_024675.
Version: 2.1.2
Date: 2024-02-27
Version: 3.0.0
Date: 2024-12-05
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 Down Expand Up @@ -68,4 +68,4 @@ License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
45 changes: 44 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,34 +1,54 @@
# Generated by roxygen2: do not edit by hand

S3method("Idents<-",liger)
S3method(Add_Cell_Complexity,Seurat)
S3method(Add_Cell_Complexity,liger)
S3method(Add_Cell_QC_Metrics,Seurat)
S3method(Add_Cell_QC_Metrics,liger)
S3method(Add_Hemo,Seurat)
S3method(Add_Hemo,liger)
S3method(Add_Mito_Ribo,Seurat)
S3method(Add_Mito_Ribo,liger)
S3method(Add_Top_Gene_Pct,Seurat)
S3method(Add_Top_Gene_Pct,liger)
S3method(Cells,liger)
S3method(Embeddings,liger)
S3method(Features,liger)
S3method(Fetch_Meta,Seurat)
S3method(Fetch_Meta,liger)
S3method(Idents,liger)
S3method(Rename_Clusters,Seurat)
S3method(Rename_Clusters,liger)
S3method(WhichCells,liger)
S3method(as.LIGER,Seurat)
S3method(as.LIGER,list)
S3method(as.Seurat,liger)
S3method(as.anndata,Seurat)
S3method(as.anndata,liger)
export("Idents<-")
export(Add_Alt_Feature_ID)
export(Add_CellBender_Diff)
export(Add_Cell_Complexity)
export(Add_Cell_Complexity_LIGER)
export(Add_Cell_Complexity_Seurat)
export(Add_Cell_QC_Metrics)
export(Add_Hemo)
export(Add_Mito_Ribo)
export(Add_Mito_Ribo_LIGER)
export(Add_Mito_Ribo_Seurat)
export(Add_Pct_Diff)
export(Add_Sample_Meta)
export(Add_Top_Gene_Pct)
export(Add_Top_Gene_Pct_Seurat)
export(Barcode_Plot)
export(Blank_Theme)
export(Case_Check)
export(CellBender_Diff_Plot)
export(CellBender_Feature_Diff)
export(Cell_Highlight_Plot)
export(Cells)
export(Cells_by_Identities_LIGER)
export(Cells_per_Sample)
export(Change_Delim_All)
export(Change_Delim_Prefix)
export(Change_Delim_Suffix)
Expand All @@ -49,16 +69,21 @@ export(DimPlot_LIGER)
export(DimPlot_scCustom)
export(DiscretePalette_scCustomize)
export(DotPlot_scCustom)
export(Embeddings)
export(Extract_Modality)
export(Extract_Sample_Meta)
export(Extract_Top_Markers)
export(Factor_Cor_Plot)
export(FeaturePlot_DualAssay)
export(FeaturePlot_scCustom)
export(FeatureScatter_scCustom)
export(Feature_Present)
export(Features)
export(Fetch_Meta)
export(Find_Factor_Cor)
export(Gene_Present)
export(Hue_Pal)
export(Idents)
export(Iterate_Barcode_Rank_Plot)
export(Iterate_Cluster_Highlight_Plot)
export(Iterate_DimPlot_bySample)
Expand All @@ -69,7 +94,6 @@ export(Iterate_Plot_Density_Custom)
export(Iterate_Plot_Density_Joint)
export(Iterate_VlnPlot_scCustom)
export(JCO_Four)
export(LIGER_Features)
export(Liger_to_Seurat)
export(MAD_Stats)
export(Median_Stats)
Expand All @@ -93,6 +117,7 @@ export(Plot_Median_Genes)
export(Plot_Median_Mito)
export(Plot_Median_Other)
export(Plot_Median_UMIs)
export(Proportion_Plot)
export(Pull_Cluster_Annotation)
export(Pull_Directory_List)
export(QC_Histogram)
Expand All @@ -105,6 +130,7 @@ export(QC_Plots_Feature)
export(QC_Plots_Genes)
export(QC_Plots_Mito)
export(QC_Plots_UMIs)
export(Random_Cells_Downsample)
export(Read10X_GEO)
export(Read10X_Multi_Directory)
export(Read10X_h5_GEO)
Expand All @@ -114,6 +140,7 @@ export(Read_CellBender_h5_Multi_Directory)
export(Read_CellBender_h5_Multi_File)
export(Read_GEO_Delim)
export(Read_Metrics_10X)
export(Read_Metrics_CellBender)
export(Reduction_Loading_Present)
export(Rename_Clusters)
export(Replace_Suffix)
Expand All @@ -134,23 +161,28 @@ export(Seq_QC_Plot_Transcriptome)
export(Seq_QC_Plot_UMIs)
export(Setup_scRNAseq_Project)
export(Single_Color_Palette)
export(SpatialDimPlot_scCustom)
export(Split_FeatureScatter)
export(Split_Layers)
export(Split_Vector)
export(Stacked_VlnPlot)
export(Store_Misc_Info_Seurat)
export(Store_Palette_Seurat)
export(Subset_LIGER)
export(Top_Genes_Factor)
export(UnRotate_X)
export(Updated_HGNC_Symbols)
export(Updated_MGI_Symbols)
export(VariableFeaturePlot_scCustom)
export(Variable_Features_ALL_LIGER)
export(VlnPlot_scCustom)
export(WhichCells)
export(as.LIGER)
export(as.Seurat)
export(as.anndata)
export(plotFactors_scCustom)
export(scCustomize_Palette)
export(seq_zeros)
export(theme_ggprism_mod)
export(viridis_dark_high)
export(viridis_inferno_dark_high)
Expand Down Expand Up @@ -182,11 +214,16 @@ importFrom(Seurat,Read10X_h5)
importFrom(Seurat,VariableFeaturePlot)
importFrom(Seurat,VizDimLoadings)
importFrom(Seurat,VlnPlot)
importFrom(SeuratObject,"Idents<-")
importFrom(SeuratObject,Cells)
importFrom(SeuratObject,DefaultDimReduc)
importFrom(SeuratObject,Embeddings)
importFrom(SeuratObject,Features)
importFrom(SeuratObject,Idents)
importFrom(SeuratObject,JoinLayers)
importFrom(SeuratObject,LayerData)
importFrom(SeuratObject,Layers)
importFrom(SeuratObject,WhichCells)
importFrom(SeuratObject,as.Seurat)
importFrom(circlize,colorRamp2)
importFrom(cowplot,theme_cowplot)
Expand All @@ -208,6 +245,7 @@ importFrom(dplyr,mutate)
importFrom(dplyr,n)
importFrom(dplyr,pull)
importFrom(dplyr,rename)
importFrom(dplyr,right_join)
importFrom(dplyr,select)
importFrom(dplyr,setdiff)
importFrom(dplyr,slice)
Expand All @@ -216,6 +254,7 @@ importFrom(dplyr,summarise)
importFrom(dplyr,summarize)
importFrom(dplyr,union)
importFrom(forcats,fct_relevel)
importFrom(forcats,fct_rev)
importFrom(ggbeeswarm,geom_quasirandom)
importFrom(ggplot2,theme)
importFrom(ggprism,theme_prism)
Expand Down Expand Up @@ -258,8 +297,11 @@ importFrom(scales,alpha)
importFrom(scales,hue_pal)
importFrom(scales,label_percent)
importFrom(scattermore,geom_scattermore)
importFrom(stats,as.dist)
importFrom(stats,complete.cases)
importFrom(stats,cor)
importFrom(stats,cutree)
importFrom(stats,hclust)
importFrom(stats,kmeans)
importFrom(stats,mad)
importFrom(stats,median)
Expand All @@ -271,6 +313,7 @@ importFrom(stringi,stri_replace_last_fixed)
importFrom(stringr,str_c)
importFrom(stringr,str_detect)
importFrom(stringr,str_extract)
importFrom(stringr,str_pad)
importFrom(stringr,str_replace)
importFrom(stringr,str_replace_na)
importFrom(stringr,str_to_lower)
Expand Down
112 changes: 112 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,115 @@
# scCustomize 3.0.0 (2024-12-05)
## Added
**Major Updates to Functionality with rliger Package:**
*Added new utility functions to interact with liger v2.0.0+ object format change:*
- `Subset_LIGER` to quickly subset by cluster or other meta data variable.
- `Cells_by_Identities_LIGER` to extract list of barcodes sorted by values within given meta data column.

*Extended the following Seurat/SeuratObject generic functions to work seamlessly with liger objects:*
- `Cells` to extract vector of all cells or list vectors of cells by dataset.
- `Features` to extract vector of all features or list vectors of features by dataset.
- `WhichCells` to extract vector or list of cells matching identity criteria.
- `Embeddings` to extract matrix containing dimensionality reduction embeddings or iNMF h.norm matrix.
- `Idents` and `Idents<-` to extract and set default identities/clusters.

*Updated functions to interact with both old and new style liger objects:*
- `plotFactors_scCustom()`
- `Fetch_Meta`
- `Top_Genes_Factor`
- `Add_Mito_Ribo`
- `Add_Cell_Complexity`
- `DimPlot_LIGER`
- `Variable_Features_ALL_LIGER`
- `Feature_Present`

*New functions compatible with old and new style liger objects:*
- Added new function `Add_Hemo` to add hemoglobin gene percentage for QC. Also added as parameter to `Add_Cell_QC_Metrics`. `Add_Hemo` supports all default species: (human, mouse, marmoset, zebrafish, rat, drosophila, rhesus macaque, and chicken) and works with both Seurat and liger objects.

*New scCustomize generics to function across both Seurat and Liger objects:*
- `Add_Hemo` (see above).
- `Rename_Clusters` now S3 generic for setting new active.ident (Seurat) or defaultCluster (Liger).

*New functions for Seurat and rliger v2.0.0+ only:*
- Added new function `Find_Factor_Cor` to return correlation matrix between factor gene loadings from liger or Seurat object.
- Added new function `Factor_Cor_Plot` to plot positive correlations from liger or Seurat object.

*Updated functions to recommend new rliger equivalents for users with rliger v2.0.0+:*
- `as.LIGER`
- `as.Seurat`


**General scCustomize Updates:**
*New functions:*
- Added new function `Add_Hemo` to add hemoglobin gene percentage for QC. Also added as parameter to `Add_Cell_QC_Metrics`. `Add_Hemo` supports all default species: (human, mouse, marmoset, zebrafish, rat, drosophila, and rhesus macaque) and works with both Seurat and liger objects.
- Added new function `seq_zeros()` to create sequences with preceding zeros.
- Added new function `Read_Metrics_CellBender` to read in the summary metrics csv file produced by CellBender. Can either read all metrics files from parent directory of output folders or a single metrics file.
- Added `Updated_MGI_Symbols` to check for update gene names/symbols in mouse data ([#202](https://github.com/samuel-marsh/scCustomize/issues/202)).
- Added plotting function `Proportion_Plot` to plot pie chart or bar chart of proportion (or total counts) of cells in each identity class.
- Added new function `Random_Cells_Downsample` to return either a vector or list with randomly downsampled cells for each identity class.
- Added new function `Cells_per_Sample` to quickly return data.frame with just number of cells per sample.

*Updated functions:*
- Added new parameters `data_name` and `overwrite` to `Add_Alt_Feature_ID` to support new storage location.
- Added `cells` parameter explicitly to `FeatureScatter_scCustom`.
- Added Chicken (Gallus gallus) to default species for QC functions. Thanks @dpearton; ([#176](https://github.com/samuel-marsh/scCustomize/issues/176)).
- Added new plotting function `SpatialDimPlot_scCustom`. Thanks for encouragement @puapinyoying @nina-hahn ([#160](https://github.com/samuel-marsh/scCustomize/issues/160)).
- Added ability of `Read_Metrics_10X` to read a single metrics csv file and return data formatted the same way as when reading multiple files.
- Added parameter `cutoff_line_width` to the `QC_Plot_*` family of plots to control line thickness of cutoff lines.
- `Cluster_Stats_All_Samples` now returns data.frame with row order reflecting the frequency of cells.
- `Add_Mito_Ribo` now supports datasets aligned to multi-species reference genomes ([#184](https://github.com/samuel-marsh/scCustomize/issues/184)).
- Added parameter `add_prop_plot` to `DimPlot_scCustom` to return plot showing number or percent of cells per identity along with the DimPlot.
- Added optional parameter `colors_use_assay2` to `FeaturePlot_DualAssay` which allows for specification of different palettes for the two plots ([#182](https://github.com/samuel-marsh/scCustomize/issues/182)).
- Added new folder and scripts (see "data-raw/" on GitHub) detailing the creation of gene lists used in `Add_Cell_QC_Metrics`.
- Added ensembl ID support for percent hemoglobin, msigdb, and IEG gene sets ([#186](https://github.com/samuel-marsh/scCustomize/issues/186)).
- Add verbosity parameter to `Store_Misc_Info_Seurat` and `Store_Palette_Seurat`.
- Explicitly reveal the `reduction` parameter in `Cluster_Highlight_Plot` and `Meta_Highlight_Plot` ([#198](https://github.com/samuel-marsh/scCustomize/issues/198)).
- Added `show_row_names` `show_column_names`, `column_names_side`, `row_names_side`, `legend_position`, `legend_orientation`, `show_ident_legend`, and `show_ident_colors` parameters to `Clustered_DotPlot`. Thanks for idea and code @johnminglu ([#199](https://github.com/samuel-marsh/scCustomize/issues/199)).
- Updated `Split_Vector` to allow user to specify number of chunks or size of chunks for splitting vector.
- Update `RenameClusters` with additional parameters to enable storage of both old idents and new idents in meta.data within the function.
- Update `Add_Cell_QC_Metrics.Seurat` to explicitly reveal `list_species_names` parameter.
- Added new vignette for spatial plotting.
- Added new and expanded vignette on use of object QC functions for better clarity on these functions and their uses (previously was part of QC Plotting & Helpers/Utilities Vignettes). Plotting elements of QC Plotting vignette are unchanged.


## Changed
- **BREAKING CHANGES** `Add_Top_Gene_Pct_Seurat` is now S3 generic that works with both Seurat and liger objects and has been renamed `Add_Top_Gene_Pct`.
- `Add_Cell_QC_Metrics` is now S3 generic and works with both Seurat and liger objects.
- Changed storage location for `Add_Alt_Feature_ID` to `@misc` slot of object for safer storage across object filtering.
- Added error check in `as.anndata` to explicitly check for installation of anndata before starting conversion ([#162](https://github.com/samuel-marsh/scCustomize/issues/162)).
- Updated `Plot_Median_Genes`, `Plot_Median_UMIs`, `Plot_Median_Mito`, `Plot_Median_Other`, `Plot_Cells_per_Sample` to understand "ident" as grouping variable.
- Updated `Store_Misc_Info_Seurat` to use Seurat accessor/setter function `Seurat::Misc()`.
- Updated documentation for `sample_names` in `Read_CellBender_h5_Multi_File` to clarify parameter behavior (related to ([#208](https://github.com/samuel-marsh/scCustomize/issues/208))).
- Updated `Read_Metrics_10X` to support adjusts to metrics summary format and metric names in output from Cell Ranger v9+.
- Some reorganization of R/ directory/scripts.


## Fixes
- Nebulosa plotting functions `Plot_Density_Custom` and `Plot_Density_Joint_Only` have been re-enabled for users with ggplot2 v3.5.0 following Nebulosa v1.12.1 update patch.
- Fixed bug causing error in `Add_Cell_QC_Metrics` when `overwrite = TRUE` ([#165](https://github.com/samuel-marsh/scCustomize/issues/165)).
- Fixed wrong description of parameter in manual entry for `DotPlot_scCustom` ([#158](https://github.com/samuel-marsh/scCustomize/issues/158)).
- Fixed several potential errors in `as.anndata` from Seurat conversion that previously caused failures ([#168](https://github.com/samuel-marsh/scCustomize/issues/168)).
- Fixed errors in `Create_Cluster_Annotation_File` if for file path and csv name errors.
- Fixed error when using `plot_median` and more than one feature in `VlnPlot_scCustom` ([#169](https://github.com/samuel-marsh/scCustomize/issues/169)).
- Fixed bug while collecting legends for `DimPlot_scCustom` due to changes in guides updated with ggplot2 v3.5.0 ([#171](https://github.com/samuel-marsh/scCustomize/issues/171)).
- Fixed error in `Add_Sample_Meta` that still errored when setting `na_ok = TRUE`.
- Fixed errors in `Plot_Median_*` family that caused issues when `group_by` parameter was NULL.
- Fixed errors in `FeaturePlot_scCustom` when setting `combine = FALSE`.
- Fixed bug in `DimPlot_scCustom` that could cause blank plot when rasterizing points.
- Fixed bug in `MAD_Stats` that didn't respect `mad_num` parameter ([#183](https://github.com/samuel-marsh/scCustomize/issues/183)).
- Fixed bugs in `MAD_Stats` that could cause issues if `mad_num` was less than or equal to 0 and returned error if setting `group_by_var` to "ident".
- Replaced lingering instances of deprecated tidyr code .data[["var"]] with update `all_of`/`any_of` syntax.
- Fixed issue that could occur with some meta data modifying functions due to column name collisions in internals of function ([#193](https://github.com/samuel-marsh/scCustomize/issues/193)).
- Fixed issue that caused error when using `Cluster_Highlight_Plot` with `split.by` parameter ([#201](https://github.com/samuel-marsh/scCustomize/issues/201)).
- Added check and informative error message to `Convert_Assay` ([#205](https://github.com/samuel-marsh/scCustomize/issues/205)).
- Fixed issue with anndata conversion and Seurat V5 objects ([#195](https://github.com/samuel-marsh/scCustomize/issues/195)).
- Fixed issue with `Updated_HGNC_Symbols` due to change in URL path for gene names ([#209](https://github.com/samuel-marsh/scCustomize/issues/209)).
- Fixed bug in `DimPlot_scCustom` when `split.by` and `label.box = TRUE`.
- Fixed bug in `DiscretePalette_scCustom` that didn't error when supplying invalid palette names.
- Fixed bug in `DimPlot_LIGER` that provided uniformative error message when changing the default cluster ident.
- Spelling and style fixes. Thanks @kew24.



# scCustomize 2.1.2 (2024-02-27)
## Added
- None.
Expand Down
13 changes: 12 additions & 1 deletion R/Color_Palettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,20 @@ DiscretePalette_scCustomize <- function(
shuffle_pal = FALSE,
seed = 123
) {
palette_options <- c("alphabet", "alphabet2", "glasbey", "polychrome", "stepped", "ditto_seq", "varibow")

if (is.null(x = palette)) {
cli_abort(message = c("Must specify a palette to return colors.",
"i" = "{.code palette} options are: {.field {names(palette_list)}}")
"i" = "{.code palette} options are: {.field {names(palette_options)}}")
)
}

# check palette valid
if (!palette %in% palette_options) {
cli_abort(message = c("The specified palette: {.field {palette}} is not valid.",
"i" = "Valid palettes are: {.val {palette_options}}"))
}

# dittoseq check
if (palette == "ditto_seq") {
dittoseq_check <- is_installed(pkg = "dittoSeq")
Expand Down Expand Up @@ -510,6 +518,9 @@ scCustomize_Palette <- function(
if (isTRUE(x = ggplot_default_colors)) {
colors_use <- Hue_Pal(num_colors = num_groups)
} else {
if (num_groups < 36 && color_seed != 123) {
cli_inform(message = "{.code color_seed} only applies if number of groups plotted is greater than 36.")
}
if (num_groups == 1) {
colors_use <- "dodgerblue"
}
Expand Down
Loading
Loading