Usage
-
violinPlot_mod(
+ violinPlot(
object,
assay,
- slot,
+ layer,
genes,
group,
facet_by = "",
@@ -76,78 +76,41 @@ Argumentsslot
+layer
Slot to extract gene expression data from (Default: scale.data)
-group.by
-Split violin plot based on metadata group
-
-
-group.subset
-Include only a specific subset from group.by
-
-
-genes.of.interest
+genes
Genes to visualize on the violin plot
-filter.outliers
-Filter outliers from the data (TRUE/FALSE)
-
-
-scale.data
-Scale data from 0 to 1 (TRUE/FALSE)
-
-
-log.scale.data
-Transform data onto a log10 scale (TRUE/FALSE)
-
-
-reorder.ident
-Numeric data will be ordered naturally by default.
-Toggling this option will order the groups to match the
-group list if non-numeric, and will have no effect if
-otherwise.
-
-
-rename.ident
-Give alternative names to group.by displayed on
-the graph
+group
+Split violin plot based on metadata group
-ylimit
-Y-axis limit
+facet_by
+Split violin plot based on a second metadata group
-plot.style
-Choose between grid, labeled, and row
+filter_outliers
+Filter outliers from the data (TRUE/FALSE)
-outlier.low.lim
-Filter lower bound outliers (Default = 0.1)
+outlier_low
+Filter lower bound outliers (Default = 0.05)
-outlier.up.lim
-Filter upper bound outliers (Default = 0.9)
+outlier_high
+Filter upper bound outliers (Default = 0.95)
-jitter.points
+jitter_points
Scatter points on the plot (TRUE/FALSE)
-jitter.width
-Set spread of jittered points
-
-
-jitter.dot.size
+jitter_dot_size
Set size of individual points
-
-print.outliers
-Print outliers as points in your graph that may be
-redundant to jitter
-
Value
@@ -156,10 +119,27 @@
Value
Details
Takes in a list of genes inputted by the user, displays violin plots
-of genes across groups from a slot-assay with (optional) outliers
+of genes across groups from a layer-assay with (optional) outliers
removed. Can also choose to scale or transform expression data.
+
+
Examples
+
if (FALSE) { # \dontrun{
+violinPlot(
+ object = seurat,
+ assay = "SCT",
+ layer = "data",
+ genes = c("Cd4", "Cd8a"),
+ group = "celltype",
+ facet_by = "orig.ident",
+ filter_outliers = TRUE,
+ jitter_points = TRUE,
+ jitter_dot_size = 0.5
+)
+} # }
+
+
diff --git a/docs/search.json b/docs/search.json
index 0a1460c..e6ba8f0 100644
--- a/docs/search.json
+++ b/docs/search.json
@@ -1 +1 @@
-[{"path":[]},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"fix","dir":"","previous_headings":"v1.0.2 (2024-02-01)","what":"Fix","title":"CHANGELOG","text":"fix: update package name action file (00c816c)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"unknown","dir":"","previous_headings":"v1.0.2 (2024-02-01)","what":"Unknown","title":"CHANGELOG","text":"Merge pull request #53 NIDAP-Community/dev fix: update package name action file (1ea1b0c) Merge pull request #52 NIDAP-Community/CDupdate fix: update package name action file (3956593)","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"build","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Build","title":"CHANGELOG","text":"build: update conda recipe action file (32f800c)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"documentation","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Documentation","title":"CHANGELOG","text":"docs(version): Automatic development release (0548007) docs: Adding changelog (34b1e0b) docs(version): Automatic development release (184b4f9) docs(version): Automatic development release (b8b41d3) docs(version): Automatic development release (f420a3b) docs(version): Automatic development release (8b5cc98)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"feature","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Feature","title":"CHANGELOG","text":"feat: Update test-annotation supress warnings (3d5cf8f) feat: test (4c4cee7) feat: test (c8274f9) feat: test (3aff107) feat: test harmony (6c2830b) feat: enable CD (3696c4b)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"fix-1","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Fix","title":"CHANGELOG","text":"fix: add skip CI harmony (55c1c0d) fix: Suppress warning celldex, move CI handle test Harmony, add png page creation (406594a) fix: Revise version format (7992d22) fix: update readme (d8d4013)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"test","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Test","title":"CHANGELOG","text":"test: Adding variant Action skip (b0bea4c) test: update meta.ymal (1abd118) test: update meta.ymal (46ba936) test: mute line42 test-Process_Raw_Data (75dbd06)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"unknown-1","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Unknown","title":"CHANGELOG","text":"Merge pull request #51 NIDAP-Community/dev Update test files Harmony Annotation, add GitHub page image (5c19124) Merge pull request #50 NIDAP-Community/CDupdate fix: add skip CI harmony (3268a82) Merge pull request #49 NIDAP-Community/CDupdate fix: Suppress warning celldex, move CI handle test Harmony, … (30de884) Merge pull request #47 NIDAP-Community/dev Update CD (76e59b4) Merge pull request #46 NIDAP-Community/CDupdate docs: Adding changelog (7c5bcf2) Merge pull request #45 NIDAP-Community/dev Update repo structure CD implementation (ca27382) Merge pull request #44 NIDAP-Community/CDupdate Update repo structure Continuous Deployment implementation (fab9424) Merge remote-tracking branch 'origin/main' dev (c850a61) Merge pull request #43 NIDAP-Community/revert-42-testCD2 Revert \"Test cd2\" (dbd1511) Revert \"Test cd2\" (82c3208) Merge pull request #42 ruiheesi/testCD2 Test cd2 (696718c) Merge pull request #17 ruiheesi/release_dev Release dev (93dac20) Merge pull request #16 ruiheesi/dev Dev (f094e92) Merge pull request #15 ruiheesi/testCD2 Test cd2 (89850c1) Merge remote-tracking branch 'origin/dev' testCD2 (429581c) feat :test (10b3e05) Merge pull request #14 ruiheesi/dev Dev (c932c71) Merge pull request #13 ruiheesi/testCD2 Test cd2 (da01ac7) Merge pull request #12 ruiheesi/release_dev Release dev (447457a) Merge pull request #11 ruiheesi/dev Dev (e4a2987) Merge pull request #10 ruiheesi/testCD2 fix: update readme (a3f0d9c) Merge pull request #9 ruiheesi/release_dev Release dev (4026e1a) Merge pull request #8 ruiheesi/dev Dev (4364548) Merge pull request #7 ruiheesi/testCD test: update meta.ymal (fe470f9) Merge pull request #6 ruiheesi/dev Dev (4e75a9f) Merge pull request #5 ruiheesi/testCD test: update meta.ymal (caed439) Merge pull request #4 ruiheesi/dev Dev (9f27de1) Merge pull request #3 ruiheesi/testCD test: mute line42 test-Process_Raw_Data (abef880) Merge pull request #1 ruiheesi/testCD feat: enable CD (0194dd9) Merge pull request #38 NIDAP-Community/main Updating dev avoid potential lost progress (8936388) Merge pull request #37 NIDAP-Community/8_4_tutorial 8 4 tutorial (c640c8f) Merge branch '8_4_tutorial' https://github.com/NIDAP-Community/SCWorkflow 8_4_tutorial (be8b11f) Just tutorial (b667bb0) test (d8bc63c) Fixing visualization \"\" plot (d7bb90f) Merge pull request #36 NIDAP-Community/dev Dev (0b66085) Merge pull request #35 NIDAP-Community/heatmap_fix Fix heatmap (49f0486) Fix heatmap (db3ee4e) Merge pull request #34 NIDAP-Community/release_6_15_test Update DESCRIPTION file author info short package description (31a4d13) Merge pull request #33 NIDAP-Community/update_DES Update DESCRIPTION file (df2abd7) Update DESCRIPTION file (5e43253) Adding auto-generated files (14ff346) Merge pull request #31 NIDAP-Community/release_6_13 Update 6 13 Alexei (e2297c6) Merge pull request #30 NIDAP-Community/release_test Run unit tests (407ca8f) Merge pull request #28 NIDAP-Community/main Update (2891614) Merge pull request #27 NIDAP-Community/phil_6_6_no_NG Modify package function load (370522e) Including \"NULL\" \"seurat_cluster\" tests (8cb6a23) Introducing \"cluster\" variable functionality (e26f2aa) Modify package function load (fe7ad65) Adding auto-generated files (e65ad6b) Merge pull request #26 NIDAP-Community/release_test Passed tests (4a40802) Merge pull request #25 NIDAP-Community/phil_6_6_no_NG Run unit test (4979266) Update Plot_Metadata (573b57a) Update ModuleScore (4367b28) Update NAMESPACE (77240ed) Merge changes (b9226e0) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE tests/testthat/fixtures/downsample_SO.R (d4b92fe) update documentation (19b7179) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (ca74b58) delete old files (b5b2d1d) Removed test-Pseudobulk_DEG.R test-Sample_Names.R (877fa28) Removed test-Meta_Data.R (975face) Merge branch 'main' phil_6_6_no_NG (f638db9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (77c1f03) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need update violinPlot subset function (41f805e) update violinPlot subset function (0609899) Remove old tests (6ca9164) udate PBMC sing Filtered rds (516a9df) Fix Test Error (7641655) fix Test error (e97494a) Merge branch 'main' phil_6_6_no_NG (d7fd7c8) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (1e52f51) Setting add.gene..protein TRUE - error FALSE (2e0a153) Merge branch 'main' phil_6_6_no_NG (d61ce1d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (cd90fbb) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b44581b) bug fix heatmap sort annotation (8d09781) Merge branch 'main' phil_6_6_no_NG (986bcdf) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8fab93f) changed select_crobject selectCRObject (b7446a6) Update Seurate importing method process raw (846ac5d) Trigger check update latest main (2b575eb) Merge branch 'main' phil_6_6_no_NG (aab0562) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b786ed1) Removed gene Seurat (d5d17ac) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (e7f08eb) Bug fix dual labeling (9eede5b) Fixed bug Dual Labeling added one plot output (contingency table) (0b17248) Test direct import seurat process raw (3bd763b) Trigger action, updated process raw import Seurat (2e46082) Trigger action, updated cc.gene (84acd38) Trigger action, updated NAMESPACE (a968d2d) Trigger action (b38dd32) Trigger action (05e9be4) Update NAMESPACE (d7015e6) Merge branch 'main' phil_6_6_no_NG (d9ba725) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (5559288) Trigger unit tests (99ae357) Add Filtered rds (666c3d8) update Variable descriptions (43e05f5) update Variable descriptions (3fd169b) reverting clusters barcodes merging (f561e2f) Trigger unit test (a668ef9) Trigger unit test (1c48c37) Merge branch 'main' phil_6_6_no_NG (ada4aab) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (aa254f1) Update NAMESPACE (dc6152b) rn h5 test (d398586) Fixing \"\" cluster label (18bbdc8) Removing \"latent variable\" test script (1839cdd) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE R/Combine_and_Renormalize.R R/Filter_and_QC.R R/PCA_and_Normalization.R R/Post_filter_QC_Plots.R tests/testthat/fixtures/NSCLC_Single/NSCLC_Single_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLC_Single_Filtered_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLCsingle_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLCsingle_Filtered_SO_downsample.rds tests/testthat/fixtures/PBMC_Single/PBMC_Single_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/PBMC_Single/PBMC_Single_Filtered_SO_downsample.rds tests/testthat/fixtures/downsample_SO.R tests/testthat/test_Combine_and_Renormalize.R tests/testthat/test_Filter_and_QC.R tests/testthat/test_PCA_and_Normalization.R tests/testthat/test_Post_Filter_QC.R (92eae54) FiltQC Variable Descriptions (4aa0674) New RAW filtQC CombNorm (7aa1a24) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE R/Post_filter_QC_Plots.R tests/testthat/test_Post_Filter_QC.R (4fd27d2) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: man/Combine_and_Renormalize.Rd man/Post_filter_QC.Rd (159af06) skip ci reticulate pacakge (549f205) skip ci reticulate pacakge (75412d7) Edited snapshot tests (a316ad3) Edited snapshot tests (cf00505) update pseudobulk helper (fd0a506) update pseudobulk helper (7f8060e) add pseudobulk helper test scripts (122f072) add pseudobulk helper test scripts (27a49ec) update functions tests (c7ddbf8) update functions tests (c201dd7) Removing \"latent var\" replacing second.clust (67c3aea) Removing \"latent var\" replacing second.clust (9c16231) Quick test CI (e71339c) Quick test CI (73c62ca) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b600bf0) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8bb7502) Added color selection 3D-tsne Plotter (2882b76) Added color selection 3D-tsne Plotter (f7decbc) Added \"cached\" CellDex option (2cabb8d) Added \"cached\" CellDex option (c913672) fixed NAMESPACE conflicts (f2aa02f) fixed NAMESPACE conflicts (797ab6d) Changed pheatmap ComplexHeatmap::pheatmap (5c9316b) Changed pheatmap ComplexHeatmap::pheatmap (414723d) Code Review (03f4392) Code Review (b2724c8) Removed LICENCE file description (e2affa9) Removed LICENCE file description (8c3154e) Minor fixes R CMD CHECK (134523f) Minor fixes R CMD CHECK (c1eb410) Fix syntax error line 200, fix syntax error \"=\" \"==\" (2916381) Fix syntax error line 200, fix syntax error \"=\" \"==\" (d909584) Helper Recluster, Sprint 7 compliant. (d5181f9) Helper Recluster, Sprint 7 compliant. (8f28252) New test Recluster correct name. (bf252e2) New test Recluster correct name. (0d88348) Old file w bad name gone. New file good. (e903ca0) Old file w bad name gone. New file good. (0e0d81e) Re-arranged new Sprint 7 formatting functions. (2c07bcb) Re-arranged new Sprint 7 formatting functions. (e670fe9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need push updated code main (20f0ab7) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need push updated code main (189075c) push updated scripts main (ed4b682) push updated scripts main (f70b090) Restructured according new requirements (94b0170) Restructured according new requirements (797d5be) Restructured according new requirements (495be93) Restructured according new requirements (7e53872) Restructured according new requirements (6043df1) Restructured according new requirements (5efd01d) Restructured according new requirements (8465a9e) Restructured according new requirements (75be9d0) Restructured according new requirements (8c4739b) Restructured according new requirements (8a39e82) Restructured according new requirements (2ccad56) Restructured according new requirements (4770cf7) Restructured according new requirements (8762e39) Restructured according new requirements (c21ca07) Restructured according new requirements (b9dfed4) Restructured according new requirements (9cc27d3) Restructured according new requirements (656b12e) Restructured according new requirements (2989dbe) Restructured according new requirements (bf8dcb1) Restructured according new requirements (d11a692) Restructured according new requirements (95693f6) Restructured according new requirements (da04b19) Restructured according new requirements (6dca0bf) Restructured according new requirements (de6b4da) Restructured according new requirements (8f4ea59) Restructured according new requirements (1741342) Restructured according new requirements (f522e45) Restructured according new requirements (dc8cfe2) Restructured according new requirements (b2235b0) Restructured according new requirements (6f4bd6d) Delete test-DegGeneExpressionMarkers.R Replaced newer, renamed version (237eacf) Delete test-DegGeneExpressionMarkers.R Replaced newer, renamed version (ee510b7) Accepted changes Namespace (b0ef9e7) Accepted changes Namespace (70d880f) Removed ticks dotplot code (d6599be) Removed ticks dotplot code (3b4a6e0) Added select dplyr import (1311aae) Added select dplyr import (c860639) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8759676) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (28e310b) Added snapshot file tests Name clusters (1a0c530) Added snapshot file tests Name clusters (de98847) Added snapshot tests heatmap (3f138a4) Added snapshot tests heatmap (1fe2d7b) Additional snapshot file tests dual labeling (8d92fcf) Additional snapshot file tests dual labeling (580ab8d) Additional tests dotplot metadata (fbc3ada) Additional tests dotplot metadata (b7f6c45) Adding expect snapshot file tests 3D-tSNE plotter (8f33e2b) Adding expect snapshot file tests 3D-tSNE plotter (661102c) Formatting changes helper-dual labeling (8f5da99) Formatting changes helper-dual labeling (266dec8) Formatting changes helper - Name clusters (5a6079f) Formatting changes helper - Name clusters (cfc8b69) Formatting changes helper-Heatmap (abd3f09) Formatting changes helper-Heatmap (1ca0e49) Formatting changes helper-dotplot Metadata (321e619) Formatting changes helper-dotplot Metadata (69653cb) Formatting changes helper 3D-tSNE (8be697c) Formatting changes helper 3D-tSNE (c1835c2) Formatting changes Dotplot Metadata (7dbbc99) Formatting changes Dotplot Metadata (d994b6c) Code changes Name clusters formatting (70a9fc2) Code changes Name clusters formatting (bca98aa) Formatting changes Heatmap.R (e1bd5c7) Formatting changes Heatmap.R (f47e847) Add files via upload replace image file (7bf9b80) Add files via upload replace image file (542b65d) Update README.md additional text (700ad07) Update README.md additional text (2e0feec) Update README.md Added image. (7694f8d) Update README.md Added image. (f28a6a7) Add files via upload Workflow image (f93175b) Add files via upload Workflow image (433a89d) Create README.md (70aa926) Create README.md (0b318e5) formatting dual labeling (2e7d12c) formatting dual labeling (f782199) format 3D-tSNE function (fe97cb0) format 3D-tSNE function (4ae1381) Update gitflow-R-action.yml (9bdcf6c) Update gitflow-R-action.yml (7799784) update Dotplot conflict (0ea5f42) update Dotplot conflict (e99ac9b) Update (aa71a29) Update (3dfcdb5) Adding action files dockerfiles (d215fdb) Adding action files dockerfiles (1cbab8e) Resolving git conflict Recluster. (0c70bdb) Resolving git conflict Recluster. (28d7b96) committing -progress Sugarloaf updates Recluster template. (ed03d46) committing -progress Sugarloaf updates Recluster template. (446af26) changed fixture filenames (71ebc2f) changed fixture filenames (6e3284c) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (f5590de) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (219746d) edit code formatting (1a7a120) edit code formatting (2676adc) Initial TestThat Recluster Includes tests 5 datasets testing type, well one test MouseTEC tests UMAP instead default TSNE. (4da52a7) Initial TestThat Recluster Includes tests 5 datasets testing type, well one test MouseTEC tests UMAP instead default TSNE. (da7c560) Initial R4 functionalization. (7558379) Initial R4 functionalization. (84acb8c) Add files via upload Initial release (3eca944) Add files via upload Initial release (deafd1c) Add files via upload Initial release (77b96a6) Add files via upload Initial release (91b7594) Add files via upload Initial commit (4a74c89) Add files via upload Initial commit (9d694ae) Add files via upload Initial release (fa2e7c3) Add files via upload Initial release (25d5857) Add files via upload Initial release (69d1dcf) Add files via upload Initial release (900ab4c) Delete DEG_Gene_Expression_Markers.R (5496f85) Delete DEG_Gene_Expression_Markers.R (fe406ea) Add files via upload Initial release (ea9b264) Add files via upload Initial release (45fd8d2) Add files via upload Initial release (c2e8e8c) Add files via upload Initial release (fee817b) Add files via upload Initial release (55fd6c9) Add files via upload Initial release (a59a2bc) Add files via upload Initial release (ad72a95) Add files via upload Initial release (aac8353) Add files via upload Initial release (a0c5606) Add files via upload Initial release (c31a9f2) Delete DeletMeAgain (d2436b6) Delete DeletMeAgain (4514dae) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (9ce4628) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (2a53ebc) CommLine Test (82aa0fa) CommLine Test (811846c) Delete Delete.Following orders (6b41c15) Delete Delete.Following orders (1f82ca7) Add files via upload DELETE IMMEDIATELY!!! (986326c) Add files via upload DELETE IMMEDIATELY!!! (ea68f0a) Initial release (2c12ea5) Initial release (a294bd3) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (a276a80) Recover code past commit (184c917) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main update function parameter names. (83fbdd1) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main update function parameter names. (6f46e6e) reformat function parameter names (0dfca6c) reformat function parameter names (c81712f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (eac38ce) Merge pull request #9 NIDAP-Community/Rui_resolve_conflict Resolve conflicts (7fa7db9) Merge pull request #9 NIDAP-Community/Rui_resolve_conflict Resolve conflicts (7839aba) Resolve conflicts (d516cd2) Resolve conflicts (8c776b1) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (0a5942a) Update main local branch (b27d7af) Merge pull request #8 NIDAP-Community/phi_test Phi test (2d5e7ec) Merge pull request #8 NIDAP-Community/phi_test Phi test (87fdb1a) resolve conflict (b4d8548) resolve conflict (a3ddae1) Merge branch 'main' phi_test (e22b5e6) Add ignore h5 files gitignore (55c3167) resolve conflicts (43976ba) resolve error (d59173b) Update current directory (f7e242b) Downsampled CITEseq (bdfa1f3) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Correct CITEseq Downsmple (4d643f4) correct CITEseq Downsample (3f032fd) helper script 3D-tsne (12ee9f3) helper script 3D-tsne (30b7146) helper script 3D-tsne (a901830) new tests (1ce5664) new tests (29d75bc) new tests (9cb29d2) unit test Jing templates (bb48481) unit test Jing templates (63a6636) unit test Jing templates (97d74ca) NSCLCmulti (3d42d4a) NSCLCmulti (540bdf3) NSCLCmulti (6e8e596) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (e851077) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (072096f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (1a8fbf8) BRCA comb_Renorm (5e3985b) BRCA comb_Renorm (9fb63a3) BRCA comb_Renorm (6d4c05a) unit tests Name Clusters (95cf6f5) unit tests Name Clusters (c7ed110) unit tests Name Clusters (43859bd) unit test dual labeling (46dd45e) unit test dual labeling (3f07269) unit test dual labeling (5c85127) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (b8b1eda) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (09c8f46) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (729b051) unit tests heatmap, dotplot (7659b83) unit tests heatmap, dotplot (b81287c) unit tests heatmap, dotplot (5414455) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (152cf11) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (b0ea506) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (d83c561) NSCLC_single (df265cd) NSCLC_single (ad62924) NSCLC_single (7d0b242) add dotplot tests (57166ba) add dotplot tests (b2bd01e) add dotplot tests (69fec28) unit test Dotplot (a94f7ba) unit test Dotplot (13fb938) unit test Dotplot (9c67e81) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (b09cb64) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (d266d5e) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (c0aaa1b) new error messaging dotplot (9742c5f) new error messaging dotplot (a9bf495) new error messaging dotplot (93a3a06) changes dotplot (1849346) changes dotplot (b52dc29) changes dotplot (d4c0824) Charou (dccaf54) Charou (95b3421) Charou (1f3ca66) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (c58b92e) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (8a845be) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (bb18f4c) TEC (08d1f47) TEC (11f66b3) TEC (c40054d) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (e7ac125) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (0027492) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (4f3bbc8) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (02999db) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (6ec32fa) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (2e0f434) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (4384dd1) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (eeb7741) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (90120cb) Minor fix codes pass Check (3b4f7ee) Minor fix codes pass Check (29de7d6) Minor fix codes pass Check (b65e314) Updated tests (733e2ec) Updated tests (c9ed47b) Updated tests (97e18e5) update NameClusters function test (128fbb4) update NameClusters function test (3f90257) update NameClusters function test (c88161e) update test-Metadata_Table.R (a37474b) update test-Metadata_Table.R (4257cc6) update test-Metadata_Table.R (7b2f599) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (78fc249) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (cce3673) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (986e82b) small changes 3D plotter testing (74364db) small changes 3D plotter testing (a60aa38) small changes 3D plotter testing (7ac6a75) changed heatmap test added library heatmap (cb33cf2) changed heatmap test added library heatmap (bcab3c2) changed heatmap test added library heatmap (20f7260) revised test dual labeling (b5caf02) revised test dual labeling (0f39220) revised test dual labeling (d1b47d6) new doc dotplot (b986ccc) new doc dotplot (800edc4) new doc dotplot (acd4514) changes test added color option (493b745) changes test added color option (b66d7fa) changes test added color option (69c3c15) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8863d0d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (63fc3f6) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8fa25f6) add original citation Pseudobulk.R (4293f96) add original citation Pseudobulk.R (53add2e) add original citation Pseudobulk.R (7b99980) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (9abcb98) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (940e610) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (fb13a18) add functions heatmap, dotplot, 3d-tsne dual-labeling (0ed4df7) add functions heatmap, dotplot, 3d-tsne dual-labeling (74fe2ad) add functions heatmap, dotplot, 3d-tsne dual-labeling (44338d2) update ModScore Pseudobulk DESCRIPTION (aefedde) update ModScore Pseudobulk DESCRIPTION (abe0919) update ModScore Pseudobulk DESCRIPTION (ec95f0c) fix NAMESPACE @importFrom methods empty (756de4e) fix NAMESPACE @importFrom methods empty (2f2bd5a) fix NAMESPACE @importFrom methods empty (5984060) Update Description (3dcc872) Update Description (968b204) Update Description (1f05120) Merge pull request #6 NIDAP-Community/rui Rui (c09fa3f) Merge pull request #6 NIDAP-Community/rui Rui (5d3d3b2) Merge pull request #6 NIDAP-Community/rui Rui (e71621d) update man docs (bf9fb25) update man docs (c08890f) update man docs (98e86e3) add NameCluster function tests (dbe4d15) add NameCluster function tests (5812a98) add NameCluster function tests (233dd75) update MetadataTable & SampleNames (b3f19d8) update MetadataTable & SampleNames (175fa43) update MetadataTable & SampleNames (1d921a2) drop unused factor levels SO_moduleScore.rds (3a39fcf) drop unused factor levels SO_moduleScore.rds (133d872) drop unused factor levels SO_moduleScore.rds (ea6df85) Jing templates fixtures (08532bf) Jing templates fixtures (9f84531) Jing templates fixtures (150df39) add SampleNames .R .Rd files (9f16588) add SampleNames .R .Rd files (780b298) add SampleNames .R .Rd files (446d631) update MetadataTable (615afdc) update MetadataTable (44abfce) update MetadataTable (a27296a) Unit test added 3d tsne function (3ab8d75) Unit test added 3d tsne function (6dc17bd) Unit test added 3d tsne function (e032618) rui update 1 (9011356) rui update 1 (81793d8) rui update 1 (7006ac8) add man/MetadataTable.Rd (af8eedf) add man/MetadataTable.Rd (7830b05) add man/MetadataTable.Rd (61457e8) upload fixtures/SO_moduleScore.rds (78caf56) upload fixtures/SO_moduleScore.rds (07bc42d) upload fixtures/SO_moduleScore.rds (b3b3dc4) correct DESCRIPTION tibble (57847f5) correct DESCRIPTION tibble (fe89882) correct DESCRIPTION tibble (90dd394) update DESCRIPTION (f55cf25) update DESCRIPTION (fcf6d26) update DESCRIPTION (7d3e4ef) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (be5cff8) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (0d74815) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (58aa02a) add MetadataTable function (42c3569) add MetadataTable function (50e3af0) add MetadataTable function (09b995d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (01921d5) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (795043f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (70082b0) removed NAMESPACE repo (dc422fa) removed NAMESPACE repo (d528f76) removed NAMESPACE repo (f7f5da5) removed Rcheck.txt (8b70481) removed Rcheck.txt (e0a6384) removed Rcheck.txt (e23003a) Added Git ignore update R check results, 11_16_2022 (ce18e14) Added Git ignore update R check results, 11_16_2022 (e705893) Added Git ignore update R check results, 11_16_2022 (1d8a95c) Update DESCRIPTION (7fdea8e) Update DESCRIPTION (0d266f4) Update DESCRIPTION (5effd23) Update cc.genes calls (797aca1) Update cc.genes calls (3db02b2) Update cc.genes calls (65f805b) Update cc.genes calls (8cd8b03) Update cc.genes calls (82a4244) Update cc.genes calls (ea8e671) Update library call (423fbe9) Update library call (f52a89c) Update library call (a3d302b) Update namespace (a4230b7) Update namespace (d35dc0e) Update namespace (0a8e2a9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (272c0ec) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8558d4f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (83f6f23) Update namespace (9960214) Update namespace (3d85b8d) Update namespace (b8c8b0e) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (33820ce) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (770cb6a) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (12b4ce3) Adjusted png render method NIDAP display (0b9e4d2) Adjusted png render method NIDAP display (9968f1f) Adjusted png render method NIDAP display (747b89a) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (bcc1c7f) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (61952ec) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (ac05afc) Update namespace (fdcfd52) Update namespace (f070d8e) Update namespace (fd74f19) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (a3a99b6) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (5c508c3) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (d5113f3) Added license file (186d183) Added license file (a8bd74c) Added license file (1d7ed13) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (fe8164b) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (75ae5fd) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (8908e24) remove GenomeInfoDb (f3bb0e6) remove GenomeInfoDb (2b32d4e) remove GenomeInfoDb (b27279e) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (866a648) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (a30130b) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (b627f06) Initial push filter qc, demo (a843d4d) Initial push filter qc, demo (dcd9fef) Initial push filter qc, demo (462a39d) Update README.md Changed package name (acb154c) Update README.md Changed package name (fdffdf4) Initial commit (6f6b791) Initial commit (7a2591a)","code":""},{"path":[]},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"clone-the-repo","dir":"Articles","previous_headings":"Propose Change","what":"Clone the repo","title":"Contributing to SCWorkflow","text":"member CCBR, can clone repository computer development environment. SCWorkflow large repository may take minutes. Cloning ‘SCWorkflow’… remote: Enumerating objects: 3126, done. remote: Counting objects: 100% (734/734), done. remote: Compressing objects: 100% (191/191), done. remote: Total 3126 (delta 630), reused 545 (delta 543), pack-reused 2392 (1) Receiving objects: 100% (3126/3126), 1.04 GiB | 4.99 MiB/s, done. Resolving deltas: 100% (1754/1754), done. Updating files: 100% (306/306), done.","code":"git clone --single-branch --branch DEV https://github.com/NIDAP-Community/SCWorkflow.git cd SCWorkflow"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"install-dependencies","dir":"Articles","previous_headings":"Propose Change","what":"Install dependencies","title":"Contributing to SCWorkflow","text":"first time cloning repo may install dependencies Check R CMD: R console, make sure package passes R CMD check running: ⚠️ Note: R CMD check doesn’t pass cleanly, ’s good idea ask help continuing.","code":"devtools::check()"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"load-scworkflow","dir":"Articles","previous_headings":"Propose Change","what":"Load SCWorkflow from repo","title":"Contributing to SCWorkflow","text":"R console, load package local repo using:","code":"devtools::load_all()"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"create-branch","dir":"Articles","previous_headings":"Propose Change","what":"Create branch","title":"Contributing to SCWorkflow","text":"Create Git branch pull request (PR). Give branch descriptive name changes make. Example: Use iss-10 ’s specific issue, feature-new-plot new feature. bug fixes small changes, can branch main branch. Success: Switched new branch ‘iss-10’ new features larger changes, branch DEV branch. Success: Switched new branch ‘feature-new-plot’","code":"# Create a new branch from main and switch to it git branch iss-10 git switch iss-10 # Switch to DEV branch, create a new branch, and switch to new branch git switch DEV git branch feature-new-plot git switch feature-new-plot"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"make-changes","dir":"Articles","previous_headings":"Develop","what":"Make your changes","title":"Contributing to SCWorkflow","text":"Now ’re ready edit code, write unit tests, update documentation needed.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"code-style-guidelines","dir":"Articles","previous_headings":"Develop > Make your changes","what":"Code Style Guidelines","title":"Contributing to SCWorkflow","text":"New code follow general guidelines outlined . - Important: Don’t restyle code unrelated PR Tools help: - Use styler package apply styles Key conventions tidyverse style guide:","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"function-organization","dir":"Articles","previous_headings":"Develop > Make your changes","what":"Function Organization","title":"Contributing to SCWorkflow","text":"Structure functions like : Functions follow template. Use roxygen2 documentation:","code":"#' @title Function Title #' @description Brief description of what the function does #' @param param1 Description of first parameter #' @param param2 Description of second parameter #' @details Additional details if needed #' @importFrom package function_name #' @export #' @return Description of what the function returns yourFunction <- function(param1, param2) { ## --------- ## ## Functions ## ## --------- ## ## --------------- ## ## Main Code Block ## ## --------------- ## output_list <- list( object = SeuratObject, plots = list( 'plotTitle1' = p1, 'plotTitle2' = p2 ), data = list( 'dataframeTitle' = df1 ) ) return(output_list) }"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"commit-push","dir":"Articles","previous_headings":"Develop","what":"Commit and Push Your Changes","title":"Contributing to SCWorkflow","text":"Best practices commits: recommend following “atomic commits” principle commit contains one new feature, fix, task. Learn : Atomic Commits Guide","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"check-status","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"1️⃣ Check Status","title":"Contributing to SCWorkflow","text":"Check current state Git working directory staging area:","code":"git status"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"stage-files","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"2️⃣ Stage Files","title":"Contributing to SCWorkflow","text":"Add files changed staging area:","code":"git add path/to/changed/files/"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"make-the-commit","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"3️⃣ Make the Commit","title":"Contributing to SCWorkflow","text":"commit message follow Conventional Commits specification. Briefly, commit start one approved types feat, fix, docs, etc. followed description commit. Take look Conventional Commits specification detailed information write commit messages.","code":"git commit -m 'feat: create function for awesome feature'"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"push-your-changes-to-github","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"4️⃣ Push your changes to GitHub:","title":"Contributing to SCWorkflow","text":"first time pushing branch, may explicitly set upstream branch: recommend pushing commits often backed GitHub. can view files branch GitHub https://github.com/NIDAP-Community/SCWorkflow/tree/<-branch-name> (replace <-branch-name> actual name branch).","code":"git push git push --set-upstream origin iss-10"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"writing-tests","dir":"Articles","previous_headings":"Document and Tests","what":"Writing Tests","title":"Contributing to SCWorkflow","text":"tests matter: changes code also need unit tests demonstrate changes work intended. add tests: Use testthat create unit tests Follow organization described tidyverse test style guide Look existing code package examples","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"documentation","dir":"Articles","previous_headings":"Document and Tests","what":"Documentation","title":"Contributing to SCWorkflow","text":"update documentation: Written new function Changed API existing function Function used vignette update documentation: Use roxygen2 Markdown syntax See R Packages book detailed instructions Update relevant vignettes needed","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"check","dir":"Articles","previous_headings":"Document and Tests","what":"Check Your Work","title":"Contributing to SCWorkflow","text":"🔍 Final validation step: making changes, run following command R console make sure package still passes R CMD check: Goal: checks pass errors, warnings, notes.","code":"devtools::check()"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"create-the-pr","dir":"Articles","previous_headings":"Deploy Feature","what":"1️⃣ Create the PR","title":"Contributing to SCWorkflow","text":"branch ready, create PR GitHub: https://github.com/NIDAP-Community/SCWorkflow/pull/new/ Select branch just pushed: Edit PR title description. title briefly describe change. Follow comments template fill body PR, can delete comments (everything ) go. ’re ready, click ‘Create pull request’ open . Optionally, can mark PR draft ’re yet ready reviewed, change later ’re ready.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"wait-for-a-maintainer-to-review-your-pr","dir":"Articles","previous_headings":"Deploy Feature","what":"2️⃣ Wait for a maintainer to review your PR","title":"Contributing to SCWorkflow","text":"best follow tidyverse code review principles: https://code-review.tidyverse.org/. reviewer may suggest make changes accepting PR order improve code quality style. ’s case, continue make changes branch push GitHub, appear PR. PR approved, maintainer merge issue(s) PR links close automatically. Congratulations thank contribution!","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"after-your-pr-has-been-merged","dir":"Articles","previous_headings":"Deploy Feature","what":"3️⃣ After your PR has been merged","title":"Contributing to SCWorkflow","text":"PR merged, update local clone repo switching DEV branch pulling latest changes: ’s good idea run git pull creating new branch start recent commits main.","code":"git checkout DEV git pull"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"helpful-links-for-more-information","dir":"Articles","previous_headings":"","what":"Helpful links for more information","title":"Contributing to SCWorkflow","text":"contributing guide adapted tidyverse contributing guide GitHub Flow tidyverse style guide tidyverse code review principles reproducible examples R packages book usethis devtools testthat styler roxygen2","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"scworkflow","dir":"Articles","previous_headings":"","what":"SCWorkflow","title":"","text":"CCBR Single-cell RNA-seq Package (SCWorkflow) allows users analyze single-cell RNA-seq datasets starting CellRanger output files (H5 mtx files, etc.).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"installation","dir":"Articles","previous_headings":"SCWorkflow","what":"Installation","title":"","text":"can install SCWorkflow package GitHub : also Docker container available ","code":"# install.packages(\"remotes\") remotes::install_github(\"NIDAP-Community/SCWorkflow\", dependencies = TRUE)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"usage","dir":"Articles","previous_headings":"SCWorkflow","what":"Usage","title":"","text":"Following workflow can perform steps single-cell RNA-seq analysis, : Quality Control: Import, Select, & Rename Samples Filter Cells based QC metrics Combine Samples, Cluster, Normalize Data Batch Correction using Harmony Cell Annotation: SingleR Automated Annotations Module Scores Co-Expression External Annotations Visualizations: Dimensionality Reductions (t-SNE UMAP Plots) colored Marker Expression Metadata Heatmaps Violin Plots Trajectory Differential Expression Analysis Seurat’s FindMarkers() Pseudobulk Aggregation Pathway Analysis Please see introductory vignette quick start tutorial. Take look reference documentation detailed information function package.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"cell-type-annotation-with-singler","dir":"Articles","previous_headings":"","what":"Cell Type Annotation with SingleR","title":"Annotations","text":"function automates cell type annotation single-cell RNA sequencing data employing SingleR [1] method, allocates labels cells within dataset according gene expression profile similarities reference dataset containing cell type labeled samples SingleR automatic annotation method single-cell RNA sequencing data uses given reference dataset samples (single-cell bulk) known labels label new cells test dataset based similarity reference. Two mouse reference datasets (MouseRNAseqData ImmGenData) two human reference datasets (HumanPrimaryCellAtlasData BlueprintEncodeData) CellDex R package [2] currently available.","code":"Anno_SO=annotateCellTypes(object=Comb_SO$object, species = \"Mouse\", reduction.type = \"umap\", legend.dot.size = 2, do.finetuning = FALSE, local.celldex = NULL, use.clusters = NULL )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"add-external-cell-annotations","dir":"Articles","previous_headings":"","what":"Add External Cell Annotations","title":"Annotations","text":"function merge external table cell annotations existing Seurat Object’s metadata table. input external metadata table must column named “Barcode” contains barcodes matching found metadata already present input Seurat Object. output new Seurat Object metadata now includes additional columns external table.","code":"CellType_Anno_Table=read.csv(\"./images/PerCell_Metadata.csv\") ExtAnno_SO=ExternalAnnotation(object = Anno_SO$object, external_metadata = CellType_Anno_Table, seurat_object_filename = \"seurat_object.rds\", barcode_column = \"Barcode\", external_cols_to_add = c(\"Cell Type\"), col_to_viz = \"Cell Type\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"cell-annotation-with-co-expression","dir":"Articles","previous_headings":"","what":"Cell Annotation with Co-Expression","title":"Annotations","text":"function display co-expression two chosen markers Seurat Object. Create metadata column containing annotations cells correspond marker expression thresholds set. function enables users visualize association two selected genes proteins according expression values various samples. association plotted, samples values specified limit can excluded. Users ability customize visualization, including choice visualization type, point size shape, transparency level. Furthermore, tool allows application filters data, setting thresholds, providing annotations notify users cells meet established thresholds. visualization can improved omitting extreme values. tool also facilitates creation heatmap represent density distribution cells exhibit raw gene/protein expression values.","code":"grep('Cd4',rownames(Anno_SO$object@assays$RNA),ignore.case = T,value=T) DLAnno_SO=dualLabeling(object = Anno_SO$object, samples <- c(\"PBS\",\"CD8dep\",\"ENT\",\"NHSIL12\",\"Combo\"), marker.1=\"Nos2\", marker.2=\"Arg1\", marker.1.type = \"SCT\", marker.2.type = \"SCT\", data.reduction = \"both\", point.size = 0.5, point.shape = 16, point.transparency = 0.5, add.marker.thresholds = TRUE, marker.1.threshold = 0.5, marker.2.threshold = 0.5, filter.data = TRUE, marker.1.filter.direction = \"greater than\", marker.2.filter.direction = \"greater than\", apply.filter.1 = TRUE, apply.filter.2 = TRUE, filter.condition = TRUE, parameter.name = \"My_CoExp\", trim.marker.1 = FALSE, trim.marker.2 = FALSE, pre.scale.trim = 0.99, display.unscaled.values = FALSE ) plot(DLAnno_SO$plots$tsne) plot(DLAnno_SO$plots$umap)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"color-by-gene-lists","dir":"Articles","previous_headings":"","what":"Color by Gene Lists","title":"Annotations","text":"function generates plots visualize expression specific markers (genes) single-cell RNA sequencing (scRNA-seq) data. Gene plots generated order appear input list (provided present data). function takes number inputs create detailed plots showing activity certain genes. can customize based specific samples genes interest point transparency. code built-system alert issues chosen inputs. particular gene missing, return empty plot. gene present, perform several steps adjust data better visualization analysis, normalizing data creating reduction plot (type plot helps visualize complex data). code also makes sure display chosen samples, creates caption plot indicating samples shown, colors points based gene activity levels, adjusts plot’s visual elements like transparency, size, labels. haven’t selected specific samples, use available samples data. also checks presence chosen genes data processes ensure uniformity across different cell types. output function detailed figure showing activity chosen genes across different cell types. useful identifying distinct groups cells based gene activity levels.","code":"Marker_Table <- read.csv(\"Marker_Table_demo.csv\") colorByMarkerTable(object=Anno_SO$object, samples.subset=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), samples.to.display=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), marker.table=Marker_Table, cells.of.interest=c(\"Neutrophils\",\"Macrophages\",\"CD8_T\" ), protein.presence = FALSE, assay = \"SCT\", reduction.type = \"umap\", point.transparency = 0.5, point.shape = 16, cite.seq = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"module-score-cell-classification","dir":"Articles","previous_headings":"","what":"Module Score Cell Classification","title":"Annotations","text":"Screens data cells based user-specified cell markers. Outputs seurat object metadata averaged marker scores annotated “Likely_CellType” column. function can used quantify expression marker sets individual cell (optionally) hierarchical manner, helping identify different cell types potential subpopulations. function aids identifying cell types based average gene expression. uses feature Seurat software known AddModuleScore function. function calculates gene expression specific sets records within designated area Seurat object. program forecasts cell identities comparing recorded scores across various gene sets. ability adjust identification process designating cutoff points bimodal distribution parameter known manual threshold. thresholds cutoff considered identification process. Inputs: program takes several inputs. include single-cell RNA sequencing (scRNA-seq) object, selection samples analysis, table gene markers different cell types, optionally, hierarchical table directing order cell classification. Data Preparation: program prepares scRNA-seq object, assigns names samples, selects data based specified samples. Module Score Calculation: program calculates module scores, measure gene set activity expression [3], cell type based provided marker table. Visualization: Density distribution plots colored reduction plots generated help visualize module scores, relationship cell types, sample identities. Thresholding: Users can select threshold values aid classification cells. Cells scores designated threshold labeled “unknown”. Subclass Identification: desired, program can identify subclasses within cell types analyzing subpopulations. Updating Cell Type Labels: program appends “Likely_CellType” column metadata scRNA-seq object, based results module score analysis. Output: updated scRNA-seq object new cell type labels.","code":"MS_object=modScore(object=Anno_SO$object, marker.table=Marker_Table, use_columns = c(\"Neutrophils\",\"Macrophages\",\"CD8_T\" ), ms_threshold=c(\"Neutrophils .25\",\"Macrophages .40\",\"CD8_T .14\"), general.class=c(\"Neutrophils\",\"Macrophages\",\"CD8_T\"), multi.lvl = FALSE, reduction = \"umap\", nbins = 10, gradient.ft.size = 6, violin.ft.size = 6, step.size = 0.1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"rename-clusters-by-cell-type","dir":"Articles","previous_headings":"","what":"Rename Clusters by Cell Type","title":"Annotations","text":"function creates dot plot Cell Types Renamed Clusters outputs Seurat Object new metadata column containing New Cluster Names. Cell Types often determined looking Module Score Cell Classification calls made upstream Module Score Cell Classification (see MS_Celltype metadata column). must provide table column containing unique Cluster IDs upstream clustering analysis (e.g. one SCT_snn_res_* columns input Seurat Object metadata) column containing corresponding New Cluster Names chosen. dot plot display unique Cell Types x-axis Renamed Clusters y-axis. size dots show percentage cells row (Renamed Cluster) classified Cell Type. comparison dot sizes within row may provide insights cluster’s primary Cell Type. new metadata column named “Clusternames” added output Seurat Object contains New Cluster Names. Methodology function creates dot plot visualization cell types metadata category (usually cluster number) given dataset implemented SCWorkflow package. function allows update organize biological data cell clusters Seurat object. changing input labels, can map custom names existing cluster IDs add names new metadata column. also generates dot plot using Seurat’s Dotplot function [4], providing visual representation percentage various cell types within cluster. Typically, cluster can distinctively named predominant cell type seen dotplot. plot’s order can customized clusters cell types. specific order provided, function uses default order. optional parameter allows user make plot interactive. function returns updated Seurat object plot.","code":"clstrTable <- read.table(file = \"./images/Cluster_Names.txt\", sep = '\\t',header = T) RNC_object=nameClusters(object=Anno_SO$object, cluster.identities.table=clstrTable, cluster.numbers= 'OriginalClusterIDs', cluster.names='NewClusterNames', cluster.column =\"SCT_snn_res.0.2\", labels.column = \"mouseRNAseq_main\", order.clusters.by = NULL, order.celltypes.by = NULL, interactive = FALSE ) # DimPlot(MS_object, group.by = \"SCT_snn_res.0.2\", label = T, reduction = 'umap') # DimPlot(MS_object, group.by = \"mouseRNAseq_main\", label = T, reduction = 'umap') ggsave(RNC_object$plots, filename = \"./images/RNC.png\", width = 9, height = 6)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"dot-plot-of-genes-by-metadata","dir":"Articles","previous_headings":"","what":"Dot Plot of Genes by Metadata","title":"Annotations","text":"function creates dot plot average gene expression values set genes cell subpopulations defined metadata annotation columns. input table contains single column genes (“Genes column”) single column category (“Category labels plot” column). values “Category labels plot” column match values provided metadata function (Metadata Category Plot). plot order genes (x-axis, left right) Categories (y-axis, top bottom) order appears input table. category entries omitted plotted. Dotplot size reflect percentage cells expressing gene color reflect average expression gene. table showing values plot (either percentage cells expressing gene, average expression scaled) returned, selected user. Methodology function creates dot plot visualization gene expression metadata given dataset. uses Seurat package create plots. size dot represents percentage cells expressing particular gene (frequency), color dot indicates average gene expression level. function ensures unique valid genes categories used. categories genes found dataset, appropriate warnings issued. plot drawn option reverse x y-axes reverse order metadata categories. colors can also customized. addition plot, function provides tabular format dot plot data, can useful analysis reporting. choice returning either tables representing percent cells expressing gene average expression level genes. function can useful exploratory data analysis visualizing differences gene expression across different conditions groups cells. Aran, D., . P. Looney, L. Liu, E. Wu, V. Fong, . Hsu, S. Chak, et al. 2019. “Reference-based analysis lung single-cell sequencing reveals transitional profibrotic macrophage.” Nat. Immunol. 20 (2): 163–72. http://bioconductor.org/packages/release/data/experiment/html/celldex.html https://satijalab.org/seurat/reference/addmodulescore Hao Y et al. Integrated analysis multimodal single-cell data. Cell. 2021 Jun 24;184(13):3573-3587.e29. doi: 10.1016/j.cell.2021.04.048. Epub 2021 May 31. PMID: 34062119; PMCID: PMC8238499.","code":"FigOut=dotPlotMet(object=Anno_SO$object, metadata=\"orig.ident\", cells=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), markers=Marker_Table$Macrophages, plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"de-with-find-markers","dir":"Articles","previous_headings":"","what":"DE with Find Markers","title":"Differential Expression Analysis","text":"function performs DE (differential expression) analysis merged Seurat object identify expression markers different groups cells (contrasts). analysis uses FindMarkers() function Seurat Workflow. Methodology Differential expression analysis (DEG) fundamental technique single-cell genomics research. goal DEG analysis identify genes exhibit significant changes expression levels different groups cells conditions, thereby uncovering potential markers distinguish groups. function takes merged Seurat object [1] input, expected contain single-cell data multiple samples, along relevant metadata SingleR annotations, provide information cell identity. perform DEG analysis, user can choose various statistical algorithms, MAST [2], wilcox [3], bimod [4], , accommodate different types experimental designs assumptions data. user can control sensitivity analysis setting minimum fold-change gene expression groups considered significant. Additionally, users can specify assay used analysis, whether scaled data (SCT) raw RNA counts. best results, recommended use function well-curated preprocessed single-cell data, ensuring Seurat object contains relevant metadata SingleR annotations. Users carefully select samples contrasts based experimental design research questions. Additionally, exploring different statistical algorithms adjusting threshold can fine-tune DEG analysis reveal accurate gene expression markers. https://satijalab.org/seurat/ https://rglab.github.io/MAST/ Dalgaard, Peter (2008). Introductory Statistics R. Springer Science & Business Media. pp. 99–100 https://en.wikipedia.org/wiki/Multimodal_distribution","code":"DEG_table=degGeneExpressionMarkers(object = Anno_SO$object, samples = c(\"PBS\", \"ENT\", \"NHSIL12\", \"Combo\", \"CD8dep\" ), contrasts = c(\"0-1\"), parameter.to.test = \"SCT_snn_res_0_2\", test.to.use = \"MAST\", log.fc.threshold = 0.25, assay.to.use = \"SCT\", use.spark = F )"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"aggregate-seurat-counts","dir":"Articles","previous_headings":"Pseudo Bulk Method","what":"Aggregate Seurat Counts","title":"Differential Expression Analysis","text":"function first step Pseudobulk analysis scRNA-seq dataset. groups cells based chosen categorical variable(s) Seurat Object’s Metadata aggregates counts gene group. output table aggregate expression rows genes columns values found chosen Pseudobulk variable. select multiple categories aggregate (e.g. Category1: ,B,C Category2: D,E,F), cells grouped combinations category variables (e.g. A_D, A_E, A_F, B_D, B_E, B_F). default, gene counts averaged across cells group.","code":"aggregateCounts(object=so, var.group=var_group, slot=slot)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"statistical-analysis-using-limma","dir":"Articles","previous_headings":"Pseudo Bulk Method","what":"Statistical Analysis using Limma","title":"Differential Expression Analysis","text":"Given matrix (typically log-normalized gene expression) metadata table, run one- two-factor statistical analyses groups using linear mixed effects models limma. Reference. 2 ways treating Donor Patient - one random effect fixed effect Using Mixed Effects Model (Donor random effect): Add Donor column Donor Variable Column add Donor variable Covariate Columns. handled separately Donor Variable Column random effect. Covariate Columns field include variables except Donor. Using Basic Linear Model (Donor fixed effect): can add Donor column covariate Covariate Columns, treated fixed effect. Additional variables can included Covariate Columns Ensure Donor Variable Column left blank. function Beta version undergoing active development. encounter problems, please contact CCBR NCICCBRNIDAP@mail.nih.gov","code":"Pseudobulk_LimmaStats()"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"volcano-plot---enhanced","dir":"Articles","previous_headings":"Visualizations","what":"Volcano Plot - Enhanced","title":"Differential Expression Analysis","text":"function utilizes EnhancedVolcano R Bioconductor package generate publication-ready volcano plots differential expression analyses, offering number customizable visualization options optimizing gene label placement avoid clutter Methodology volcano plot type scatterplot shows statistical significance (P value) versus magnitude change (fold change). enables quick visual identification genes large fold changes also statistically significant. may biologically significant features (genes, isoforms, peptides ). , using highly-configurable function “EnhancedVolcano” produces publication-ready volcano plots. Maria Doyle, 2021 Visualization RNA-Seq results Volcano Plot (Galaxy Training Materials). https://training.galaxyproject.org/training-material/topics/transcriptomics/tutorials/rna-seq-viz--volcanoplot/tutorial.html Online; accessed Mon Aug 01 2022 Batut et al., 2018 Community-Driven Data Analysis Training Biology Cell Systems 10.1016/j.cels.2018.05.012 Blighe, K, S Rana, M Lewis. 2018. EnhancedVolcano: Publication-ready volcano plots enhanced coloring labeling. https://github.com/kevinblighe/EnhancedVolcano.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Overview.html","id":"process-input-data","dir":"Articles","previous_headings":"","what":"Process Input Data","title":"Import Data and Quality Control","text":"package designed work general Seurat Workflow[1]. begin using SCWorkflow tools process h5 files generated Cell Ranger[Reference] software 10x genomics platform create list Seurat Objects corresponding h5 file. Seurat Object basic data structure Seurat Single Cell analysis tool supports standard scRNAseq, CITE-Seq, TCR-Seq assays. Samples prepared cell hashing protocol (HTOs) can also processed produce Seurat Object split corresponding experimental design strategy. h5 files containing multiple samples can also processed create Seurat objects split based values orig.ident column. corresponding Metadata table can used add sample level information Seurat object. table format Sample names first Column sample metadata additional columns. Metadata table can also used rename samples including alternative sample name Column metadata table. Samples can also excluded final Seurat object using REGEX strategy identify samples included/excluded. explain based newnames final Seurat Object contain assay slot log2 normalized counts. QC figures individual samples also produced help evaluate samples quality.","code":"SampleMetadataTable <- read.table(file = \"./images/Sample_Metadata.txt\", sep = '\\t',header = T) files=list.files(path=\"../tests/testthat/fixtures/Chariou/h5files\",full.names = T) SOlist=processRawData(input=files, organism=\"Mouse\", sample.metadata.table=SampleMetadataTable, sample.name.column='Sample_Name', rename.col='Rename', keep=T, file.filter.regex=c(), split.h5=F, cell.hash=F, do.normalize.data=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Overview.html","id":"filter-low-quality-cells","dir":"Articles","previous_headings":"","what":"Filter Low Quality Cells","title":"Import Data and Quality Control","text":"function filter genes cells based multiple metrics available Seurat Object metadata slot. detailed guide single cell quality filtering can found Xi Li, 2021 [2]. First, genes can filtered setting minimum number cells needed keep gene removing VDJ Add descriptiopn VDJ genes. Next, cells can filtered setting thresholds individual metric. Cells meet designated criteria removed final filtered Seurat Object . Filter limits can set using absolute values median absolute deviations (MADs) criteria. absolute MAD values set single filter, least extreme value (.e. lowest value upper limits highest value lower limits) selected. filter values used metric printed log output. filters default values can turned setting limits NA. individual filtering criteria used tool listed . total number molecules detected within cell (nCount_RNA) number genes detected cell (nFeature_RNA) complexity genes ( log10(nFeature_RNA)/log10(nCount_RNA) Percent mitochondrial Genes Percent counts top 20 Genes Doublets calculated scDblFinder (using package default parameters) [3] function return filtered Seurat Object various figures showing metrics filtering. figures can used help evaluate effects filtering criteria whether filtering limits need adjusted.","code":"SO_filtered=filterQC(object=SOlist$object, ## Filter Genes min.cells = 20, filter.vdj.genes=F, ## Filter Cells nfeature.limits=c(NA,NA), mad.nfeature.limits=c(5,5), ncounts.limits=c(NA,NA), mad.ncounts.limits=c(5,5), mitoch.limits = c(NA,25), mad.mitoch.limits = c(NA,3), complexity.limits = c(NA,NA), mad.complexity.limits = c(5,NA), topNgenes.limits = c(NA,NA), mad.topNgenes.limits = c(5,5), n.topgnes=20, do.doublets.fitler=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Overview.html","id":"combine-normalize-and-cluster-data","dir":"Articles","previous_headings":"","what":"Combine, Normalize, and Cluster Data","title":"Import Data and Quality Control","text":"functions combines multiple sample level Seurat Objects single Seurat Object normalizes combined dataset. multi-dimensionality data summarized set “principal components” visualized UMAP tSNE projections. graph-based clustering approach identify cell clusters data. 1. Hao Y et al. Integrated analysis multimodal single-cell data. Cell. 2021 Jun 24;184(13):3573-3587.e29. doi: 10.1016/j.cell.2021.04.048. Epub 2021 May 31. PMID: 34062119; PMCID: PMC8238499. 2. Heumos, L., Schaar, .C., Lance, C. et al. Best practices single-cell analysis across modalities. Nat Rev Genet (2023). https://doi.org/10.1038/s41576-023-00586-w 3. Germain P, Lun , Macnair W, Robinson M (2021). “Doublet identification single-cell sequencing data using scDblFinder.” f1000research. doi:10.12688/f1000research.73600.1.","code":"Comb_SO=combineNormalize( object=SO_filtered$object, # Nomralization variables npcs = 21, SCT.level=\"Merged\", vars.to.regress = c(\"percent.mt\"), # FindVariableFeatures nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 100000, selection.method = 'vst', # Dim Reduction only.var.genes = FALSE, draw.umap = TRUE, draw.tsne = TRUE, seed.for.pca = 42, seed.for.tsne = 1, seed.for.umap = 42, # Clustering Varables clust.res.low = 0.2, clust.res.high = 1.2, clust.res.bin = 0.2, # Select PCs methods.pca = NULL, var.threshold = 0.1, pca.reg.plot = FALSE, jackstraw = FALSE, jackstraw.dims=5, # Other exclude.sample = NULL, cell.count.limit= 35000, reduce.so = FALSE, project.name = 'scRNAProject', cell.hashing.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"process-input-data","dir":"Articles","previous_headings":"","what":"Process Input Data","title":"Import Data and Quality Control","text":"package designed work general Seurat Workflow. begin using SCWorkflow tools process h5 files generated Cell Ranger software 10x genomics platform create list Seurat Objects[1] corresponding h5 file. Seurat Object basic data structure Seurat Single Cell analysis tool supports standard scRNAseq, CITE-Seq, TCR-Seq assays. Samples prepared cell hashing protocol (HTOs) can also processed produce Seurat Object split corresponding experimental design strategy. h5 files containing multiple samples can also processed create Seurat objects split based values orig.ident column. corresponding Metadata table can used add sample level information Seurat object. table format Sample names first Column sample metadata additional columns. Metadata table can also used rename samples including alternative sample name Column metadata table. Samples can also excluded final Seurat object using REGEX strategy identify samples included/excluded. explain based newnames final Seurat Object contain assay slot log2 normalized counts. QC figures individual samples also produced help evaluate samples quality.","code":"SampleMetadataTable <- read.table(file = \"./images/Sample_Metadata.txt\", sep = '\\t',header = T) files=list.files(path=\"../tests/testthat/fixtures/Chariou/h5files\",full.names = T) SOlist=processRawData(input=files, sample.metadata.table=SampleMetadataTable, sample.name.column='Sample_Name', organism=\"Mouse\", rename.col='Rename', keep=T, file.filter.regex=c(), split.h5=F, cell.hash=F, tcr.summarize.topN=10, do.normalize.data=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"filter-low-quality-cells","dir":"Articles","previous_headings":"","what":"Filter Low Quality Cells","title":"Import Data and Quality Control","text":"function filter genes cells based multiple metrics available Seurat Object metadata slot. detailed guide single cell quality filtering can found Xi Li, 2021 [2]. First, genes can filtered setting minimum number cells needed keep gene removing VDJ Add descriptiopn VDJ genes. Next, cells can filtered setting thresholds individual metric. Cells meet designated criteria removed final filtered Seurat Object . Filter limits can set using absolute values median absolute deviations (MADs) criteria. absolute MAD values set single filter, least extreme value (.e. lowest value upper limits highest value lower limits) selected. filter values used metric printed log output. filters default values can turned setting limits NA. individual filtering criteria used tool listed . total number molecules detected within cell (nCount_RNA) number genes detected cell (nFeature_RNA) complexity genes ( log10(nFeature_RNA)/log10(nCount_RNA) Percent mitochondrial Genes Percent counts top 20 Genes Doublets calculated scDblFinder (using package default parameters) [3] function return filtered Seurat Object various figures showing metrics filtering. figures can used help evaluate effects filtering criteria whether filtering limits need adjusted.","code":"SO_filtered=filterQC(object=SOlist$object, ## Filter Genes min.cells = 20, filter.vdj.genes=F, ## Filter Cells nfeature.limits=c(NA,NA), mad.nfeature.limits=c(5,5), ncounts.limits=c(NA,NA), mad.ncounts.limits=c(5,5), mitoch.limits = c(NA,25), mad.mitoch.limits = c(NA,3), complexity.limits = c(NA,NA), mad.complexity.limits = c(5,NA), topNgenes.limits = c(NA,NA), mad.topNgenes.limits = c(5,5), n.topgnes=20, do.doublets.fitler=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"combine-normalize-and-cluster-data","dir":"Articles","previous_headings":"","what":"Combine, Normalize, and Cluster Data","title":"Import Data and Quality Control","text":"functions combines multiple sample level Seurat Objects single Seurat Object normalizes combined dataset. multi-dimensionality data summarized set “principal components” visualized UMAP tSNE projections. graph-based clustering approach identify cell clusters data. Hao Y et al. Integrated analysis multimodal single-cell data. Cell. 2021 Jun 24;184(13):3573-3587.e29. doi: 10.1016/j.cell.2021.04.048. Epub 2021 May 31. PMID: 34062119; PMCID: PMC8238499. Heumos, L., Schaar, .C., Lance, C. et al. Best practices single-cell analysis across modalities. Nat Rev Genet (2023). https://doi.org/10.1038/s41576-023-00586-w Germain P, Lun , Macnair W, Robinson M (2021). “Doublet identification single-cell sequencing data using scDblFinder.” f1000research. doi:10.12688/f1000research.73600.1.","code":"Comb_SO=combineNormalize( object=SO_filtered$object, # Nomralization variables npcs = 21, SCT.level=\"Merged\", vars.to.regress = c(\"percent.mt\"), # FindVariableFeatures nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 100000, selection.method = 'vst', # Dim Reduction only.var.genes = FALSE, draw.umap = TRUE, draw.tsne = TRUE, seed.for.pca = 42, seed.for.tsne = 1, seed.for.umap = 42, # Clustering Varables clust.res.low = 0.2, clust.res.high = 1.2, clust.res.bin = 0.2, # Select PCs methods.pca = NULL, var.threshold = 0.1, pca.reg.plot = FALSE, jackstraw = FALSE, jackstraw.dims=5, # Other exclude.sample = NULL, cell.count.limit= 35000, reduce.so = FALSE, project.name = 'scRNAProject', cell.hashing.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-SubsetReclust.html","id":"subset-seurat-object","dir":"Articles","previous_headings":"","what":"Subset Seurat Object","title":"Subset and Recluster","text":"function subsets Seurat object. Select metadata column values matching cells pass forward analysis.","code":"filter_SO=filterSeuratObjectByMetadata( object = Anno_SO$object, samples.to.include = c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\"), sample.name = 'orig.ident', category.to.filter = 'immgen_main', values.to.filter = c('Monocytes','Macrophages','DC'), keep.or.remove = FALSE, greater.less.than = \"greater than\", colors = c( \"aquamarine3\", \"salmon1\", \"lightskyblue3\"), seed = 10, cut.off = 0.5, legend.position = \"right\", reduction = \"umap\", plot.as.interactive.plot = FALSE, legend.symbol.size = 2, dot.size = 0.1, number.of.legend.columns = 1, dot.size.highlighted.cells = 0.5, use.cite.seq.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-SubsetReclust.html","id":"recluster-seurat-object","dir":"Articles","previous_headings":"","what":"Recluster Seurat Object","title":"Subset and Recluster","text":"function provides mechanism re-clustering filtered Seurat object, common task single-cell RNA sequencing analysis. function provides options choose number principal components, range clustering resolution, type dimensionality reduction, several parameters. function finds variable features performs Principal Component Analysis (PCA). Next, dimensionality reduction performed using UMAP t-SNE based PCA, followed identification nearest neighbors. performs clustering different resolutions within provided range, creating new clustering columns Seurat object. also retains old clustering information, plots clusters resolution returns list containing re-clustered Seurat object grid clustering plots. function can helpful experimenting different clustering parameters especially filtering visually inspect results. Methodology function uses methods Seurat package [1]. Seurat uses graph-based clustering method inspired previous strategies, particularly Macosko et al [3]. uses methods like SNN-Cliq PhenoGraph [4.5], represent cells graph structure based similarities feature expression patterns. aim divide graph highly connected communities clusters. process begins building K-nearest neighbor (KNN) graph using Euclidean distance PCA space. algorithm refines edge weights cells according local neighborhood overlap, calculated using Jaccard similarity measure. performed using predefined dimensions dataset, first 10 Principal Components (PCs). cluster cells, Seurat uses modularity optimization techniques like Louvain [4] algorithm SLM [5]. ‘resolution’ parameter can adjusted control granularity downstream clustering; higher resolution results clusters. single-cell datasets approximately 3K cells, recommended range parameter 0.4 1.2, larger datasets typically require higher resolution. Seurat Clustering method https://satijalab.org/seurat/articles/pbmc3k_tutorial.html Macosko EZ, Basu , Satija R, Nemesh J, Shekhar K, Goldman M, Tirosh , Bialas AR, Kamitaki N, Martersteck EM, Trombetta JJ, Weitz DA, Sanes JR, Shalek AK, Regev , McCarroll SA. Highly Parallel Genome-wide Expression Profiling Individual Cells Using Nanoliter Droplets. Cell. 2015 May 21;161(5):1202-1214. Xu, Chen, Zhengchang Su. Identification cell types single-cell transcriptomes using novel clustering method. Bioinformatics 31.12 (2015): 1974-1980. Levine, Jacob H., et al. Data-driven phenotypic dissection AML reveals progenitor-like cells correlate prognosis. Cell 162.1 (2015): 184-197. Blondel, Vincent D., et al. Fast unfolding communities large networks.”Journal statistical mechanics: theory experiment 2008.10 (2008): P10008. Waltman, Ludo, Nees Jan Van Eck. smart local moving algorithm large-scale modularity-based community detection. European physical journal B 86 (2013): 1-14","code":"reClust_SO=reclusterSeuratObject( object = filter_SO$object, prepend.txt = \"old\", old.columns.to.save=c(\"orig_ident\",\"Sample_Name\",\"nCount_RNA\",\"nFeature_RNA\",\"percent_mt\", \"log10GenesPerUMI\",\"S_Score\",\"G2M_Score\",\"Phase\",\"CC_Difference\",\"Treatment\", \"pct_counts_in_top_N_genes\",\"Doublet\",\"nCount_SCT\",\"nFeature_SCT\", \"mouseRNAseq_main\",\"mouseRNAseq\",\"immgen_main\",\"immgen\" ), number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"umap\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"use-scworkflow-container","dir":"Articles","previous_headings":"","what":"Use SCWorkflow Container","title":"Getting Started","text":"SCWorkflow docker container available Biowulf can used RStudio organize rune SCWorkflow package. need 2 shells (terminals) set RStudio Biowulf.","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"log-in-to-biowulf","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"1. Log in to Biowulf","title":"Getting Started","text":"Open terminal login biowulf call interactive session","code":"ssh username@helix.nih.gov sinteractive --tunnel --time=12:00:00 --mem=50g --cpus-per-task=16 --gres=lscratch:50"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"get-the-port-number-for-termal-2","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"2. Get the PORT number for termal 2","title":"Getting Started","text":"","code":"echo $PORT1 example port is 46137"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"load-the-container","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"3. Load the Container","title":"Getting Started","text":"single cell container emulate environments NIDAP","code":"source /data/CCBR/NIDAP/container_singlecell.sh"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"connect-your-local-shell-to-the-rstudio-server-on-biowulf-using-ssh-tunneling-","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"4. Connect your local shell to the RStudio server on Biowulf using SSH tunneling.","title":"Getting Started","text":"Use $PORT number terminal 1 (step 2).","code":"ssh -N -L $PORT:localhost:$PORT yourusername@biowulf.nih.gov login with nih password"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"open-rstudio-in-your-local-web-browser","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"5. Open RStudio in your local web browser","title":"Getting Started","text":"Open web browser go : Use $PORT number terminal 1 (step 2) open Rstudio browser connected biowulf container opened step 3.","code":"localhost:$PORT"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"log-into-helix","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"1. Log into Helix","title":"Getting Started","text":"","code":"ssh username@helix.nih.gov"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"connect-to-rstuido-server-to-copy-files-to-biowulf","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"3. connect to Rstuido Server to copy files to Biowulf","title":"Getting Started","text":"","code":"sftp username@ nciws-d2335-v.nci.nih.gov"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"copy-files-to-biowulf","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"4. copy files to biowulf","title":"Getting Started","text":"Examples: files: Rscipts:","code":"mget -r * mget -r *R"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"install-package","dir":"Articles","previous_headings":"","what":"Install Package","title":"Getting Started","text":"general use SCWorkflow can installed Rlibrary","code":"# install.packages(\"remotes\") # remotes::install_github(\"NIDAP-Community/SCWorkflow\", dependencies = TRUE) library(SCWorkflow)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"color-by-metadata","dir":"Articles","previous_headings":"","what":"Color by Metadata","title":"Visualizations","text":"Use Function color dimensionality reduction (TSNE & UMAP) different columns Metadata Table. can select one columns Metadata Table, column selected, function produce plot (t-SNE & UMAP) using data column color cells. function visualizes plot based selected metadata. Users can customize want visualize data, including type visualization used, size shape points, level transparency.","code":"FigOut=plotMetadata( object=Anno_SO$object, samples.to.include=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), metadata.to.plot=c('SCT_snn_res.0.4','Phase'), columns.to.summarize=NULL, summarization.cut.off = 5, reduction.type = \"umap\", use.cite.seq = FALSE, show.labels = FALSE, legend.text.size = 1, legend.position = \"right\", dot.size = 0.01 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"plot-3d-dimensionality-reduction","dir":"Articles","previous_headings":"","what":"Plot 3D Dimensionality Reduction","title":"Visualizations","text":"Function creates 3D interactive UMAP t-SNE plot. plot saved output folder HTML file can downloaded. function designed generate 3D t-SNE visualization based given Seurat Object. output includes interactive plot dataframe containing t-SNE coordinates. function accepts several parameters, Seurat Object, metadata column color, metadata column labeling, dot size plot, legend display option, colors color variable, filename saving plot, number principal components t-SNE calculations, option save plot widget HTML file. Initially, function executes t-SNE Seurat Object obtain 3D coordinates. Subsequently, constructs dataframe Plotly visualization, incorporating t-SNE coordinates, color variable, label variable. function generates 3D scatter plot using t-SNE coordinates. Finally, function saves plot embedded Plotly image HTML file. Methodology t-Distributed Stochastic Neighbor Embedding (t-SNE) sophisticated dimensionality reduction technique frequently employed visualization high-dimensional data [1]. effectively displays relationships individual cells based gene expression profiles. compute t-SNE, algorithm constructs probability distribution representing similarities data points high-dimensional space. Subsequently, generates lower-dimensional representation, typically two three dimensions, wherein distances data points reflect similarities high-dimensional space. algorithm employs iterative process adjust positions cells lower-dimensional space, aiming minimize discrepancies original high-dimensional similarities lower-dimensional space. approach enables algorithm capture global local structures within data, effectively revealing clusters groups similar cells.","code":"FigOut=tSNE3D( object=Anno_SO$object, color.variable='SCT_snn_res.0.4', label.variable='SCT_snn_res.0.4', dot.size = 4, legend = TRUE, colors = c(\"darkblue\",\"purple4\",\"green\",\"red\",\"darkcyan\", \"magenta2\",\"orange\",\"yellow\",\"black\"), filename = \"plot.html\", save.plot = FALSE, npcs = 15 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"color-by-genes","dir":"Articles","previous_headings":"","what":"Color by Genes","title":"Visualizations","text":"function visualizes gene expression intensities provided Genes across cells. gene found dataset, Log report . Otherwise, see one plot (TSNE UMAP, choice) per gene name provided. intensity red color relative expression gene cell. Final Potomac Compatible Version: v98. Sugarloaf V1: v103. [View Methodology function visualizes expression values chosen gene protein different samples. Users can customize want visualize data, including type visualization used, size shape points, level transparency.","code":"FigOut=colorByGene( object=Anno_SO$object, samples.to.include=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), gene='Itgam', reduction.type = \"umap\", number.of.rows = 0, return.seurat.object = FALSE, color = \"red\", point.size = 1, point.shape = 16, point.transparency = 0.5, use.cite.seq.data = FALSE, assay = \"SCT\")"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"violin-plot-from-seurat-object","dir":"Articles","previous_headings":"","what":"Violin Plot from Seurat Object","title":"Visualizations","text":"Function allows generation customized violin plots visualize transcriptional changes interactions single-cell RNA-seq data, providing insights cellular heterogeneity dynamics within dataset. Methodology Function organizes data based specific groups choose Seurat Object metadata. gathers information activity levels specific genes ’re interested . can, wish, change names order groups based column specify data. feature lets tailor analysis closely needs. code also function removes odd data points might distort results, adjusts data make easier visualize jittered points overlaying boxplot displaying quantile information. , code creates violin plots, allows see activity levels genes vary within group [2]. graph customizable, letting set various options limit values vertical axis, displaying individual data points, converting scales logarithmic, showing boxplots. can choose plot looks - whether ’s laid like grid, rows, customized labels.","code":"FigOut=violinPlot_mod( object=Anno_SO$object, assay='SCT', slot='scale.data', genes=c('Cd163','Cd38'), group='SCT_snn_res.0.4', facet_by = \"\", filter_outliers = F, outlier_low = 0.05, outlier_high = 0.95, jitter_points = TRUE, jitter_dot_size = 1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"heatmap","dir":"Articles","previous_headings":"","what":"Heatmap","title":"Visualizations","text":"Function provides comprehensive method visualizing single cell transcript /protein expression data form heatmap. data obtained Seurat object, user can specify set genes analysis. Function allows optional ordering metadata (categorical) gene/protein expression levels. Visualization customization options include color choices heatmap, addition gene protein annotations, optional arrangement metadata. Key features include: - Options adding gene protein annotations, metadata arrangement, specifying row column names. - Customizable visualization settings including font sizes rows, columns, legend, row height, heatmap colors. - Ability trim outlier data, perform z-scaling rows, set row order. Function returns heatmap plot along underlying data used generate . also allows user set seed color generation specify outlier data parameters. function particularly useful exploratory data analysis preliminary data visualization single cell studies. Methodology method, two hierarchical clustering processes performed: one rows one columns dataset unless ordered annotations. Hierarchical clustering method cluster analysis aims build hierarchy clusters. result tree-like diagram called dendrogram, similar data points (e.g., genes samples) joined together clusters “branches”, based mathematical measure similarity Euclidean Manhattan distance. heatmap produced package called ComplexHeatmap [3] presents data matrix rows represent individual genes (proteins, metabolites, etc.) columns represent different samples (e.g., tissue samples, cells, experimental conditions). color position grid corresponds expression level gene particular sample, one color representing upregulation (higher expression), another representing downregulation (lower expression), usually neutral color representing change. allows easy visual interpretation patterns correlations data.","code":"FigOut=heatmapSC( object=Anno_SO$object, sample.names=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), metadata='SCT_snn_res.0.4', transcripts=c('Cd163','Cd38','Itgam','Cd4','Cd8a','Pdcd1','Ctla4'), use_assay = 'SCT', proteins = NULL, heatmap.color = \"Bu Yl Rd\", plot.title = \"Heatmap\", add.gene.or.protein = FALSE, protein.annotations = NULL, rna.annotations = NULL, arrange.by.metadata = TRUE, add.row.names = TRUE, add.column.names = FALSE, row.font = 5, col.font = 5, legend.font = 5, row.height = 15, set.seed = 6, scale.data = TRUE, trim.outliers = TRUE, trim.outliers.percentage = 0.01, order.heatmap.rows = FALSE, row.order = c() )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"dot-plot-of-genes-by-metadata","dir":"Articles","previous_headings":"","what":"Dot Plot of Genes by Metadata","title":"Visualizations","text":"function creates dot plot average gene expression values set genes cell subpopulations defined metadata annotation columns. input table contains single column genes (“Genes column”) single column category (“Category labels plot” column). values “Category labels plot” column match values provided metadata function (Metadata Category Plot). plot order genes (x-axis, left right) Categories (y-axis, top bottom) order appears input table. category entries omitted plotted. Dotplot size reflect percentage cells expressing gene color reflect average expression gene. table showing values plot (either percentage cells expressing gene, average expression scaled) returned, selected user. Methodology function creates dot plot visualization gene expression metadata given dataset. uses Seurat package create plots. size dot represents percentage cells expressing particular gene (frequency), color dot indicates average gene expression level. function ensures unique valid genes categories used. categories genes found dataset, appropriate warnings issued. plot drawn option reverse x y-axes reverse order metadata categories. colors can also customized. addition plot, function provides tabular format dot plot data, can useful analysis reporting. choice returning either tables representing percent cells expressing gene average expression level genes. function can useful exploratory data analysis visualizing differences gene expression across different conditions groups cells. Seurat package Dotplot Documentation https://satijalab.org/seurat/reference/dotplot Seurat Documentation t-SNE Analysis https://satijalab.org/seurat/reference/runtsne https://ggplot2.tidyverse.org/reference/ Complex Heatmap Reference Book https://jokergoo.github.io/ComplexHeatmap-reference/book/","code":"FigOut=dotPlotMet( object=Anno_SO$object, metadata='SCT_snn_res.0.4', cells=unique(Anno_SO$object$SCT_snn_res.0.4), markers=c('Itgam','Cd163','Cd38','Cd4','Cd8a','Pdcd1','Ctla4'), plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Maggie Cam. Author. Thomas Meyer. Author, maintainer. Jing Bian. Author. Alexandra Michalowski. Author. Alexei Lobanov. Author. Philip Homan. Author. Rui . Author.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Cam M, Meyer T, Bian J, Michalowski , Lobanov , Homan P, R (2025). SCWorkflow: SCWorkflow NIDAP. R package version 1.0.2.","code":"@Manual{, title = {SCWorkflow: SCWorkflow from NIDAP}, author = {Maggie Cam and Thomas Meyer and Jing Bian and Alexandra Michalowski and Alexei Lobanov and Philip Homan and Rui He}, year = {2025}, note = {R package version 1.0.2}, }"},{"path":"https://nidap-community.github.io/SCWorkflow/index.html","id":null,"dir":"","previous_headings":"","what":"SCWorkflow from NIDAP","title":"SCWorkflow from NIDAP","text":"R package Single Cell analysis Single Cell Workflow streamlines analysis multimodal Single Cell RNA-Seq data produced 10x Genomics. can run docker container, biologists, user-friendly web-based interactive notebooks (NIDAP, Palantir Foundry). Much based Seurat workflow Bioconductor, supports CITE-Seq data. incorporates cell identification step (ModScore) utilizes module scores obtained Seurat also includes Harmony batch correction. documentation see detailed Docs Website Future Developments include addition support multiomics (TCR-Seq, ATAC-Seq) single cell data integration spatial transcriptomics data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":null,"dir":"Reference","previous_headings":"","what":"Annotating cell types using SingleR module — annotateCellTypes","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"SingleR automatic annotation method single-cell RNA sequencing (scRNAseq) data (Aran et al. 2019). Given reference dataset samples (single-cell bulk) known labels, labels new cells test dataset based similarity reference.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"","code":"annotateCellTypes( object, species = \"Mouse\", reduction.type = \"umap\", legend.dot.size = 2, do.finetuning = FALSE, local.celldex = NULL, use.clusters = NULL )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"object Object class Seurat (combined Seurat Object PC reduction performed) species species samples (\"Human\" \"Mouse\"). Default \"Mouse\" reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\") legend.dot.size size colored dots chart legend. Default 2 .finetuning Performs SingleR fine-tuning function. Default FALSE local.celldex Provide local copy CellDex library. Default NULL use.clusters Provide cluster identities cell. Default NULL","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"Seurat object additional metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"function Step 5 basic Single-Cell RNA-seq workflow. starting point downstream visualization, subsetting, analysis. takes combined seurat object input, one created Combined&Renormalized function end Filter&QC Path","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"template appends sample metadata input table Seurat object, creating new metadata columns labeling cells sample new metadata values.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"","code":"appendMetadataToSeuratObject(object, metadata.to.append, sample.name.column)"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"object input Seurat Object list Seurat Objects wish add metadata. metadata..append table sample metadata want append already-existing metadata within input Seurat Object(s). sample.name.column column input metadata..append table contains sample names matching orig.idents input object(s).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"Function returns Seurat Object Objects additional metadata columns containing appended metadata now annotated cell sample name (orig.ident).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"template appends sample metadata input table Seurat object, creating new metadata columns labeling cells sample new metadata values.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":null,"dir":"Reference","previous_headings":"","what":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"see one plot (TSNE UMAP, choice) per gene name provided. intensity red color relative expression gene cell","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"","code":"colorByGene( object, samples.to.include, gene, reduction.type = \"umap\", number.of.rows = 0, return.seurat.object = FALSE, color = \"red\", point.size = 1, point.shape = 16, point.transparency = 0.5, use.cite.seq.data = FALSE, assay = \"SCT\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"object Object class Seurat samples..include Samples included analysis gene Genes like visualize reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"umap\" number..rows number rows want arrange plots return.seurat.object Set FALSE want geneset (Seurat object) returned color color want use heatmap (default \"red\") point.size size points representing cell visualization. Default 1 point.shape code point shape (R \"pch\" argument). Default 16 point.transparency Set transparency. Default 0.5 use.cite.seq.data TRUE like plot Antibody clusters CITEseq instead scRNA. assay Select Assay Plot (default SCT)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"Seurat object additional metadata gene table plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"function must run downstream Sample Names function, well provided combined Seurat Object one produced SingleR Cell Annotation function","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":null,"dir":"Reference","previous_headings":"","what":"Color by Gene List — colorByMarkerTable","title":"Color by Gene List — colorByMarkerTable","text":"Returns panel reduction plots colored marker expression","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color by Gene List — colorByMarkerTable","text":"","code":"colorByMarkerTable( object, samples.subset, samples.to.display, manual.genes = c(), marker.table, cells.of.interest, protein.presence = FALSE, assay = \"SCT\", slot = \"scale.data\", reduction.type = \"umap\", point.transparency = 0.5, point.shape = 16, cite.seq = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color by Gene List — colorByMarkerTable","text":"object Seurat-class object samples.subset List samples subset data samples..display List samples depict dimension plot, samples list colored gray background marker.table Table marker genes celltype (column names table), append \"_prot\" \"_neg\" proteins negative markers cells..interest Celltypes geneset_dataframe screen protein.presence Set TRUE protein markers used assay Assay extract gene expression data (Default: \"SCT\") reduction.type Choose among tsne, umap, pca (Default: \"umap\") point.transparency Set lower values see points dimension plot (Default: 0.5) point.shape Change shape points visualization (Default: 16) cite.seq Set TRUE use CITE-seq embedding dimension reduction","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color by Gene List — colorByMarkerTable","text":"arranged grob dimension reduction plots colored individual marker expression","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Color by Gene List — colorByMarkerTable","text":"Takes gene table inputted user, displays panel tsne, umap, pca colored marker expression. panel organized similar format gene table, omission genes found data","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":null,"dir":"Reference","previous_headings":"","what":"Combine & Normalize — combineNormalize","title":"Combine & Normalize — combineNormalize","text":"Scales Normalizes data, Combines samples, runs Dimensional Reduction, Clusters, returns combined Seurat Object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Combine & Normalize — combineNormalize","text":"","code":"combineNormalize( object, npcs = 30, SCT.level = \"Merged\", vars.to.regress = NULL, nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 1e+05, selection.method = \"vst\", only.var.genes = FALSE, draw.umap = TRUE, draw.tsne = TRUE, seed.for.pca = 42, seed.for.tsne = 1, seed.for.umap = 42, clust.res.low = 0.2, clust.res.high = 1.2, clust.res.bin = 0.2, methods.pca = \"none\", var.threshold = 0.1, pca.reg.plot = FALSE, jackstraw = FALSE, jackstraw.dims = 5, exclude.sample = NULL, cell.count.limit = 35000, reduce.so = FALSE, project.name = \"scRNAProject\", cell.hashing.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Combine & Normalize — combineNormalize","text":"object list seurat objects sample. npcs Select number principal components analysis. Please see elbow plot previous template figure number PCs explains variance cut-. example, elbow plot point (15,0.02), means 15 PCs encapsulate 98% variance data.(Default: 30) SCT.level Select stage apply SCtransform nomalization. Merged: Merge samples apply SCTransfrom merged object. Sample: Apply SCTranform individual samples merge single Seurat object. (Default: \"Merged\") vars..regress Subtract (‘regress ’) source heterogeneity data. example, Subtract mitochondrial effects, input \"percent.mt.\" Options: percent.mt, nCount.RNA, S.Score, G2M.Score, CC.Difference. (Default: NULL) nfeatures Number variable features. (Default: 2000) low.cut Set low cutoff calculate feature means Seurat::FindVariableFeatures. (Default: 0.1) high.cut Set high cutoff calculate feature means Seurat::FindVariableFeatures. (Default: 8) low.cut.disp Set low cutoff calculate feature dispersions Seurat::FindVariableFeatures.(Default: 1) high.cut.disp Set high cutoff calculate feature dispersions Seurat::FindVariableFeatures. (Default: 100000) selection.method Method choose top variable features. Options: vst, mean.var.plot, dispersion. (Default: 'vst') .var.genes dataset larger ~40k filtered cells, set TRUE. TRUE, variable genes available downstream analysis. dataset larger number cells set \"Conserve Memory Max Cell Limit\" \"Variable Genes\" automatically set TRUE. (Default: FALSE) draw.umap TRUE, draw UMAP plot. (Default: TRUE) draw.tsne TRUE, draw TSNE plot. (Default: TRUE) seed..pca Set random seed PCA calculation. (Default: 42) seed..tsne Set random seed TSNE calculation. (Default: 1) seed..umap Set random seed UMAP calculation. (Default: 42) clust.res.low Select minimum resolution clustering plots. lower set , FEWER clusters generated. (Default: 0.2) clust.res.high Select maximum resolution clustering. higher set number, clusters produced. (Default: 1.2) clust.res.bin Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. (Default: 0.2) methods.pca Methods available: Marchenko-Pastur: use eigenvalue null upper bound URD, Elbow: Find threshold percent change variation consecutive PCs less X% (set var.threshold). none selected (regardless selections) plot generated. (Default: 'none') var.threshold Elbow method, set percent change threshold variation consecutive PCs. (Default: 0.1) pca.reg.plot Opt visualize effect regression variables PCA plot. plot create PCA plots without regression variables applied can used help determine regression necessary properly normalize data. (Default: FALSE) jackstraw Opt visualize data Jackstraw plot. Jackstraw plot can add description elbow plot compute intensive process may suitable larger datasets. (Default: FALSE) jackstraw.dims Recommended max 10.(Default: 5) exclude.sample Exclude unwanted samples merge step. Include sample names removed. want exclude several samples, separate sample number comma (e.g. sample1,sample2,sample3,sample4). (Default: NULL) cell.count.limit total number cell exceeds limit conserve memory option SCTransform used return Variable Genes. (Default: 35000) reduce.Remove additional assays input Seurat Objects except original RNA Assay. option used input Seurat Object created outside NIDAP pipeline. (Default: FALSE) project.name Add project name Seurat object metadata. (Default: 'scRNAProject') cell.hashing.data Set \"TRUE\" using cell-hashed data. (Default: FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Combine & Normalize — combineNormalize","text":"Seurat Objects QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Combine & Normalize — combineNormalize","text":"Step 3 basic Single-Cell RNA-seq workflow. template summarize multi-dimensionality data set \"principal components\" allow easier analysis.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":null,"dir":"Reference","previous_headings":"","what":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"function performs DEG (differential expression genes) analysis merged Seurat object identify expression markers different groups cells (contrasts).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"","code":"degGeneExpressionMarkers( object, samples, contrasts, parameter.to.test = \"orig_ident\", test.to.use = \"MAST\", log.fc.threshold = 0.25, use.spark = FALSE, assay.to.use = \"SCT\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"object Seurat-class object samples Samples included analysis contrasts Contrasts \"-B\" format parameter..test Select metadata column like use perform DEG analysis construct contrasts . Default \"orig_ident\" test..use kind algorithm like use perform DEG analysis. Default MAST algorithm (wilcox,bimod,roc,t,negbinom,poisson,LR,MAST,DESeq2). log.fc.threshold minimum log fold-change contrasts like analyze. Default 0.25 use.spark Opt use Spark parallelize computations. Default FALSE assay..use assay use DEG analysis. Default SCT, can use linearly scaled data selecting RNA instead","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"dataframe DEG.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"recommended input merged Seurat object SingleR annotations, along associated sample names metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":null,"dir":"Reference","previous_headings":"","what":"Dotplot of Gene Expression by Metadata — dotPlotMet","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"function uses Dotplot function Seurat plots average gene expression values percent expressed set genes.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"","code":"dotPlotMet( object, metadata, cells, markers, plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"object Seurat Object metadata Metadata column Seurat Object plot cells Vector metadata category factors plot found metadata column. Order plotting follow exact order entered. markers Vector genes plot. Order plotting follow exact order entered plot.reverse TRUE, set metadata categories x-axis genes y-axis (default FALSE) cell.reverse.sort TRUE, Reverse plot order metadata category factors (default FALSE) dot.color Dot color (default \"dark blue\")","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"Dotplot markers cell types.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"method provides dotplot showing percent frequency gene-positive cells size dot degree expression color dot.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"method provides visualization coexpression 2 genes (proteins) additional methods filtering cells gene expression values thresholds set one markers. method allows filtering (optional) Seurat object using manually set expression thresholds.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"","code":"dualLabeling( object, samples, marker.1, marker.2, marker.1.type = \"SCT\", marker.2.type = \"SCT\", data.reduction = \"both\", point.size = 0.5, point.shape = 16, point.transparency = 0.5, add.marker.thresholds = TRUE, marker.1.threshold = 0.5, marker.2.threshold = 0.5, filter.data = TRUE, marker.1.filter.direction = \"greater than\", marker.2.filter.direction = \"greater than\", apply.filter.1 = TRUE, apply.filter.2 = TRUE, filter.condition = TRUE, parameter.name = \"My_CoExp\", trim.marker.1 = FALSE, trim.marker.2 = FALSE, pre.scale.trim = 0.99, display.unscaled.values = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"object Seurat-class object samples Samples included analysis marker.1 First gene/marker coexpression analysis marker.2 Second gene/marker coexpression analysis marker.1.type Slot use first marker. Choices \"SCT\", \"protein\",\"HTO\" (default \"SCT\") marker.2.type Slot use second marker. Choices \"SCT\", \"protein\",\"HTO\" (default \"SCT\") data.reduction Dimension Reduction method use image. Options \"umap\" \"tsne\" (default \"umap\") point.size Point size image (default 0.5) point.shape Point shape image (default 16) point.transparency Point transparency image (default 0.5) add.marker.thresholds Add marker thresholds plot (default FALSE) marker.1.threshold Threshold set first marker (default 0.5) marker.2.threshold Threshold set second marker (default 0.5) filter.data Add new parameter column metadata annotating marker thresholds applied (default TRUE) apply.filter.1 TRUE, apply first filter (default TRUE) apply.filter.2 TRUE, apply second filter (default TRUE) filter.condition TRUE, apply filters 1 2 take intersection. FALSE, apply filters take union. parameter.name Name metadata column new marker filters (Default \"Marker\") trim.marker.1 Trim top bottom percentile marker 1 signal pre-scale trim values () remove extremely low high values (Default TRUE) trim.marker.2 Trim top bottom percentile marker 2 signal pre-scale trim values () remove extremely low high values (Default TRUE) pre.scale.trim Set trimming percentile values (Defalut 0.99) display.unscaled.values Set TRUE want view unscaled gene/protein expression values (Default FALSE) M1.filter.direction Annotate cells gene expression levels marker 1 using marker 1 threshold. Choices \"greater \" \"less \" (default \"greater \") M2.filter.direction Annotate cells gene expression levels marker 2 using marker 2 threshold. Choices \"greater \" \"less \" (default \"greater \") density.heatmap Creates additional heatmap showing density distribution cells. (Default FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"seurat object optional additional metadata cells positive negative gene markers, coexpression plot contingency table showing sum cells filtered.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter & QC Samples — filterQC","title":"Filter & QC Samples — filterQC","text":"Filters cells Genes sample generates QC Plots evaluate data filtering.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter & QC Samples — filterQC","text":"","code":"filterQC( object, min.cells = 20, filter.vdj.genes = F, nfeature.limits = c(NA, NA), mad.nfeature.limits = c(5, 5), ncounts.limits = c(NA, NA), mad.ncounts.limits = c(5, 5), mitoch.limits = c(NA, 25), mad.mitoch.limits = c(NA, 3), complexity.limits = c(NA, NA), mad.complexity.limits = c(5, NA), topNgenes.limits = c(NA, NA), mad.topNgenes.limits = c(5, 5), n.topgnes = 20, do.doublets.fitler = T, plot.outliers = \"None\", group.column = NA, nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 1e+05, selection.method = \"vst\", npcs = 30, vars_to_regress = NULL, seed.for.PCA = 42, seed.for.TSNE = 1, seed.for.UMAP = 42 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter & QC Samples — filterQC","text":"object list seurat objects sample. min.cells Filter genes found less number cells. E.g. Setting 20 remove genes found fewer 3 cells sample. (Default: 20) filter.vdj.genes FALSE remove VDJ genes scRNA transcriptome assay. prevent clustering bias T-cells clonotype. recommended also TCR-seq. (Default: FALSE) nfeature.limits Filter cells number genes found cell exceed selected lower upper limits. Usage c(lower limit, Upper Limit). E.g. setting c(200,1000) remove cells fewer 200 genes 1000 genes sample. (Default: c(NA, NA)) mad.nfeature.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated median gene number cells sample. Usage c(lower limit, Upper Limit) E.g. setting c(3,5) remove cells 3 absolute deviations less median 5 absolute deviations greater median. (Default: c(5,5)) ncounts.limits Filter cells total number molecules (umi) detected within cell exceed selected limits. Usage c(lower limit, Upper Limit). E.g. setting c(200,100000) remove cells fewer 200 greater 100000 molecules. (Default: c(NA, NA)) mad.ncounts.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated median number molecules cells sample. Usage c(lower limit, Upper Limit) E.g. setting c(3,5) remove cells 3 absolute deviations less median 5 absolute deviations greater median. (Default: c(5,5)) mitoch.limits Filter cells whose proportion mitochondrial genes exceed selected lower upper limits. Usage c(lower limit, Upper Limit). E.g. setting c(0,8) set lower limit removes cells 8% mitochondrial RNA. (Default: c(NA,25)) mad.mitoch.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated Median percentage mitochondrial RNA cells sample. Usage c(lower limit, Upper Limit). E.g. setting c(NA,3) set lower limit remove cells 3 absolute deviations greater median. (Default: c(NA,3)) complexity.limits Complexity represents Number genes detected per UMI. genes detected per UMI, complex data. Filter cells whose Complexity exceed selected lower upper limits. Cells high number UMIs low number genes dying cells, also represent population low complexity cell type (.e red blood cells). suggest set lower limit 0.8 samples suspected RBC contamination. Usage c(lower limit, Upper Limit). E.g. setting c(0.8,0) set upper limit removes cells complexity less 0.8. (Default: c(NA,NA)) mad.complexity.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated Median complexity cells sample. Usage c(lower limit, Upper Limit). E.g. setting c(5,NA) set upper limit remove cells 5 absolute deviations less median. (Default: c(5,NA)) topNgenes.limits Filter Cells based percentage total counts top N highly expressed genes. Outlier cells high percentage counts just genes removed. considerations outlined \"complexity.limits\" taken filter. Usage c(lower limit, Upper Limit). E.g. setting c(NA,50) set lower limit remove cells greater 50% reads top N genes. (Default: c(NA,NA)) n.topgnes Select number top highly expressed genes used calculate percentage reads found genes. E.g. value 20 calculates percentage reads found top 20 highly expressed Genes. (Default: 20) .doublets.fitler Use scDblFinder identify remove doublet cells. Doublets defined two cells sequenced cellular barcode, example, captured droplet. (Default: TRUE) mad.topNgenes.limitsSet Filter limits based many Median Absolute Deviations outlier cell . Calculated Median percentage counts top N Genes. Usage c(lower limit, Upper Limit). E.g. setting c(5,5) remove cells 5 absolute deviations greater 5 absolute deviations less median percentage. (Default: c(5,5))","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter & QC Samples — filterQC","text":"Seurat Object QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter & QC Samples — filterQC","text":"Step 2 basic Single-Cell RNA-seq workflow. Multiple cell gene filters can selected remove poor quality data noise. Workflows can use downstream Seurat Object. tool typically second step Single Cell Workflow.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"Filter subset Seurat object based metadata column","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"","code":"filterSeuratObjectByMetadata( object, samples.to.include, sample.name, category.to.filter, values.to.filter, keep.or.remove = TRUE, greater.less.than = \"greater than\", seed = 10, cut.off = 0.5, legend.position = \"top\", reduction = \"umap\", plot.as.interactive.plot = FALSE, legend.symbol.size = 2, colors = c(\"aquamarine3\", \"salmon1\", \"lightskyblue3\", \"plum3\", \"darkolivegreen3\", \"goldenrod1\", \"burlywood2\", \"gray70\", \"firebrick2\", \"steelblue\", \"palegreen4\", \"orchid4\", \"darkorange1\", \"yellow\", \"sienna\", \"palevioletred1\", \"gray60\", \"cyan4\", \"darkorange3\", \"mediumpurple3\", \"violetred2\", \"olivedrab\", \"darkgoldenrod2\", \"darkgoldenrod\", \"gray40\", \"palegreen3\", \"thistle3\", \"khaki1\", \"deeppink2\", \"chocolate3\", \"paleturquoise3\", \"wheat1\", \"lightsteelblue\", \"salmon\", \"sandybrown\", \"darkolivegreen2\", \"thistle2\", \"gray85\", \"orchid3\", \"darkseagreen1\", \"lightgoldenrod1\", \"lightskyblue2\", \"dodgerblue3\", \"darkseagreen3\", \"forestgreen\", \"lightpink2\", \"mediumpurple4\", \"lightpink1\", \"thistle\", \"navajowhite\", \"lemonchiffon\", \"bisque2\", \"mistyrose\", \"gray95\", \"lightcyan3\", \"peachpuff2\", \"lightsteelblue2\", \"lightyellow2\", \"moccasin\", \"gray80\", \"antiquewhite2\", \"lightgrey\"), dot.size = 0.1, number.of.legend.columns = 1, dot.size.highlighted.cells = 0.5, use.cite.seq.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"object dataset containing SingleR annotated/merged seurat object samples..include Select samples include sample.name Sample Name Column category..filter kind metadata want subset . one column Metadata table values..filter One values want filter keep..remove TRUE filter selected values, FALSE filter selected values. Default TRUE greater.less.Decide want keep cells threshold. Default \"greater \" seed Set seed colors cut.cut-want use greater /less filter. Default os 0.5 legend.position Select \"none\" legend takes much space plot. Default \"top\" reduction kind clustering visualization like use summary plot (umap, tsne, pca, protein_tsne, protein_umap, protein_pca). Default \"umap\" plot..interactive.plot TRUE interactive, FALSE static legend.symbol.size legend symbol size. Default 2 colors User-selected colors palette 62 unique colors ColorBrewer. dot.size Size dots TSNE/UMAP projection plot. Default 0.1 number..legend.columns Default 1. legend long, provide legend columns dot.size.highlighted.cells Dot size cells -filter plot highlighted. Default 0.5 use.cite.seq.data TRUE like plot Antibody clusters CITEseq instead scRNA.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"subset Seurat object","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"downstream template loaded Step 5 pipeline (SingleR Annotations Seurat Object)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":null,"dir":"Reference","previous_headings":"","what":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"method provides heatmap single cell data Seurat object given set genes optionally orders various metadata /gene protein expression levels. Method based ComplexHeatmap::pheatmap","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"","code":"heatmapSC( object, sample.names, metadata, transcripts, use_assay = \"SCT\", proteins = NULL, heatmap.color = \"Bu Yl Rd\", plot.title = \"Heatmap\", add.gene.or.protein = FALSE, protein.annotations = NULL, rna.annotations = NULL, arrange.by.metadata = TRUE, add.row.names = TRUE, add.column.names = FALSE, row.font = 5, col.font = 5, legend.font = 5, row.height = 15, set.seed = 6, scale.data = TRUE, trim.outliers = TRUE, trim.outliers.percentage = 0.01, order.heatmap.rows = FALSE, row.order = c() )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"object Seurat-class object sample.names Sample names metadata Metadata column plot transcripts Transcripts plot proteins Proteins plot (default NULL) heatmap.color Color heatmap. Choices \"Cyan Mustard\", \"Blue Red\", \"Red Vanilla\", \"Violet Pink\", \"Bu Yl Rd\", \"Bu Wt Rd\" (default \"Bu Yl Rd\") plot.title Title plot (default \"Heatmap\") add.gene..protein Add Gene protein annotations (default FALSE) protein.annotations Protein annotations add (defulat NULL) rna.annotations Gene annotations add (default NULL) arrange..metadata Arrange metadata (default TRUE) add.row.names Add row names (default TRUE) add.column.names Add column names (default FALSE) row.font Font size rows (default 5) col.font Font size columns (default 5) legend.font Font size legend (default 5) row.height Height row. NA, adjust plot size (default 15) set.seed Seed colors (default 6) scale.data Perform z-scaling rows (default TRUE) trim.outliers Remove outlier data (default TRUE) trim.outliers.percentage Set outlier percentage (default 0.01) order.heatmap.rows Order heatmap rows (default FALSE) row.order Gene vector set row order. NULL, use cluster order (default NULL)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"function returns heatmap plot data underlying heatmap.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":null,"dir":"Reference","previous_headings":"","what":"Compute ModScore — modScore","title":"Compute ModScore — modScore","text":"Returns Seurat-class object metadata containing ModuleScores Likely_CellType calls","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Compute ModScore — modScore","text":"","code":"modScore( object, marker.table, use_columns, ms_threshold, general.class, multi.lvl = FALSE, lvl.df = NULL, reduction = \"tsne\", nbins = 10, gradient.ft.size = 6, violin.ft.size = 6, step.size = 0.1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Compute ModScore — modScore","text":"object Seurat-class object marker.table table lists gene/protein markers categories cells want detect. table formatted cell type(s) column names, marker(s) entries column. Requires SCT@data present within Seurat Object use_columns Select specific columns within Marker Table analyze. Markers unselected columns included. ms_threshold Allow user-specified module score thresholds. Provide one threshold Celltype included \"use_columns\" parameter. Celltype, provide Celltype name, space, type threshold Celltype. threshold must number 0.0 1.0. E.g. \"Tcells 0.2\", \"Macrophages 0.37\". best results, follow steps: (1) Set thresholds 0.0 preliminary view data. (2) Use resulting visualizations estimate correct thresholds Celltype. (3) Adjust thresholds based saw visualizations. (4) Re-run template new thresholds. (5) Review visualizations repeat Steps 1-5 think thresholds can improved. general.class Select classes (.e. columns) Marker Table represent General Classes. general class class subtype another class. multi.lvl set True multiple subclasses cells like classify. Note: requires manual entry table columns specifying levels comparisons. column table represent one level subclass within General Classes. value within column two Class names separated dash (-) showing General--SubClass relationship. Example: classify T-cells attempt classify T-cells either CD8 CD4 T-cells, write column named \"Level_1\", add \"T_cell-CD8_T\" \"T_cell-CD4_T\" column. Note example, \"T_cell\" General Class \"CD8_T\" \"CD4_T\" . lvl.df Dataframe containing levels information well parent-children designation (E.g. Tcells-CD4). Required Multi Level Classification turned .#' reduction Choose among tsne, umap, pca (Default: tsne) nbins Number bins storing control features analyzing average expression (Default: 10) gradient.ft.size Set size axis labels gradient density plot ModuleScore distribution (Default: 6) violin.ft.size Set size axis labels violin plot ModuleScore distribution (Default: 6) step.size Set step size distribution plots (Default: 0.1)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Compute ModScore — modScore","text":"List containing annotated dimension plot ModuleScore distribution cell marker gene, Seurat Object cell classification metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Compute ModScore — modScore","text":"Analyzed features binned based averaged expression; control features randomly selected bin.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":null,"dir":"Reference","previous_headings":"","what":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"Maps custom cluster names Seurat Object cluster IDs adds cluster names new metadata column called Clusternames. Provides dotplot percentage cell types within cluster.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"","code":"nameClusters( object, cluster.identities.table, cluster.numbers, cluster.names, cluster.column, labels.column, order.clusters.by = NULL, order.celltypes.by = NULL, interactive = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"object Seurat-class object cluster IDs column cell type column present cluster.numbers Vector containing cluster numbers match (numeric) cluster ID's cluster.column Seurat Object metadata cluster.names Vector containing custom cluster labels cluster.column Column name containing cluster ID metadata slot object labels.column Column name containing labels (usually cell type) metadata slot object order.clusters.Vector containing order clusters graph. Can contain subset cluster numbers plot match least values cluster.column. NULL, use default order (default NULL) order.celltypes.Vector containing order cell types graph. Can contain subset cell types plot match least values labels.column. NULL, use default order (default NULL) interactive TRUE, draw plotly plot (default FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"Returns Seurat-class object updated meta.data slot containing custom cluster annotation plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":null,"dir":"Reference","previous_headings":"","what":"Harmony Batch Correction from Singular Value Decomposed PCA — object","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"Adjusts cell embeddings gene expression data account variations due user specified variable","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"","code":"object"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"object class Seurat 3000 rows 2000 columns.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"seurat_object Seurat-class object nvar Number variable genes subset gene expression data (Default: 2000) genes..add Add genes might found among variably expressed genes group..var variable accounted running batch correction npc Number principal components use running Harmony (Default: 20)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"list: adj.object harmony-adjusted gene expression (SCT slot) adj.tsne: harmonized tSNE plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"Runs singular value decomposition pearson residuals (SCT scale.data) obtain PCA embeddings. Performs harmony decomposed embedding adjusts decomposed gene expression values harmonized embedding.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":null,"dir":"Reference","previous_headings":"","what":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"palantir_api_call Utility function 3D tSNE Coordinate Template v 75#'","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"","code":"palantir_api_call(service, path, token, data, method)"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"service NIDAP API service call path path NIDAP API service token NIDAP user toekn. data Data uploaded NIDAP API calls. method Method used, including POST, GET, DELETE","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"return content API calls","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":null,"dir":"Reference","previous_headings":"","what":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"column selected, template produce plot (UMAP/TSNE/PCA; choice) using data column color cells","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"","code":"plotMetadata( object, samples.to.include, metadata.to.plot, columns.to.summarize, summarization.cut.off = 5, reduction.type = \"tsne\", use.cite.seq = FALSE, show.labels = FALSE, legend.text.size = 1, legend.position = \"right\", dot.size = 0.01 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"object combined Seurat Object metadata plot samples..include samples like include metadata..plot metadata columns Metadata table like plot columns..summarize columns like summarize summarization.cut.Select number categories want display, marking cells \".\" Default 5 reduction.type kind visualization like use plot cells metadata (tsne, umap, pca). Default tsne use.cite.seq TRUE like plot Antibody clusters CITEseq instead scRNA. Default FALSE show.labels Whether add labels reduction map. Default FALSE legend.text.size Customize size legend text charts. Default 1 legend.position Select want align legend. Default \"right\" dot.size size dots displayed plot. Default os 0.01","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"data.frame extracted Seurat object plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"downstream template Single-cell RNA-seq workflow (requires dataset Filter/QC/SingleR annotations run first)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":null,"dir":"Reference","previous_headings":"","what":"Process Raw Data — processRawData","title":"Process Raw Data — processRawData","text":"Creates list Seurat Objects h5 files. log normalize produce QC figures individual samples","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Process Raw Data — processRawData","text":"","code":"processRawData( input, sample.metadata.table = NULL, sample.name.column = NULL, organism, rename.col = NULL, keep = T, file.filter.regex = c(), split.h5 = F, cell.hash = F, tcr.summarize.topN = 10, do.normalize.data = T )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Process Raw Data — processRawData","text":"input Input can vector .h5 files, list seurat objects sample. TCRseq Metadata .csv files can also included added corrisponding sample seurat object. Vector files include entire file path. sample.metadata.table table sample metadata want append already-existing metadata within input Seurat Object(s). (optional) sample.name.column column input metadata..append table contains sample names matching orig.idents input object(s). (optional) organism Please select species. Choices Human Mouse. (Default: Human). rename.col Select column name metadata table contains new samples name (optional). keep TRUE, keep files pattern found sample name. FALSE, remove files pattern found sample name. pattern set file.filter.regex parameter (). file.filter.regex Pattern regular expression sample name. Use 'keep' parameter keep remove fi les contain pattern. samples renamed set regular expression based new names split.h5 TRUE, split H5 individual files. (Default: FALSE) cell.hash TRUE, dataset contains cell hashtags. (Default: FALSE) tcr.summarize.topN Select number top identified TCR clonotypes included summary column. clonotypes top N populated classified \"\". (Default: 10) .normalize.data TRUE counts table log2 normalized. input contains counts already normalzed set FALSE. (Default: TRUE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Process Raw Data — processRawData","text":"Seurat Object QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Process Raw Data — processRawData","text":"Step 1 basic Single-Cell RNA-seq workflow. Returns data Seurat Object, basic data structure Seurat Single Cell analysis.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"template reclusters filtered Seurat object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"","code":"reclusterFilteredSeuratObject( object, prepend.txt = \"old\", old.columns.to.save, number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"tsne\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"object input Seurat Object. prepend.txt Text prepend old columns make unique new. Default \"old\". old.columns..save Old seurat clustering columns (e.g. SCT_snn_res.0.4) save. number..pcs Select number principal components analysis. Set 0 automatically decide. Default 50. cluster.resolution.low.range Select minimum resolution clustering plots. lower set , FEWER clusters generated. Default 0.2. cluster.resolution.high.range Select maximum resolution clustering plots. higher set , clusters generated. Default 1.2. cluster.resolution.range.bins Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. Default 0.2. reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"tsne\".","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"Function returns reclustered Seurat Object new clustering columns renamed original clustering columns, along plot new dimsensionality reduction.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"method reclusters filtered , preserving original SCT clustering columns prepended prefix, making new SCT clustering columns based reclustering. image returned reclustered project.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Recluster Seurat Object. — reclusterSeuratObject","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"template reclusters Seurat object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"","code":"reclusterSeuratObject( object, prepend.txt = \"old\", old.columns.to.save, number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"tsne\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"object input Seurat Object. prepend.txt Text prepend old columns make unique new. Default \"old\". old.columns..save Old seurat clustering columns (e.g. SCT_snn_res.0.4) save. number..pcs Select number principal components analysis. Set 0 automatically decide. Default 50. cluster.resolution.low.range Select minimum resolution clustering plots. lower set , FEWER clusters generated. Default 0.2. cluster.resolution.high.range Select maximum resolution clustering plots. higher set , clusters generated. Default 1.2. cluster.resolution.range.bins Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. Default 0.2. reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"tsne\".","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"Function returns reclustered Seurat Object new clustering columns renamed original clustering columns, along plot new dimsensionality reduction.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"method reclusters input , preserving original SCT clustering columns prepended prefix, making new SCT clustering columns based reclustering. image returned reclustered project.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"method provides visualization 3D-tSNE plot given Seurat Object returns plotly plot dataframe TSNE coordinates. optionally saves plotly image embedded html file.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"","code":"tSNE3D( object, color.variable, label.variable, dot.size = 4, legend = TRUE, colors = c(\"darkblue\", \"purple4\", \"green\", \"red\", \"darkcyan\", \"magenta2\", \"orange\", \"yellow\", \"black\"), filename = \"plot.html\", save.plot = FALSE, npcs = 15 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"object Seurat-class object color.variable Metadata column Seurat Object use color label.variable Metadata column Seurat Object use label dot.size Dot size plot (default 4) legend TRUE, show legend (default TRUE) colors Colors used color.variable filename Filename saving plot (default \"plot.html\") save.plot Save plot widget html file (default FALSE) npcs Number principal components used tSNE calculations (default 15)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":null,"dir":"Reference","previous_headings":"","what":"Violin Plot by Metadata — violinPlot_mod","title":"Violin Plot by Metadata — violinPlot_mod","text":"Create violin plot gene expression data across groups","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Violin Plot by Metadata — violinPlot_mod","text":"","code":"violinPlot_mod( object, assay, slot, genes, group, facet_by = \"\", filter_outliers = F, outlier_low = 0.05, outlier_high = 0.95, jitter_points, jitter_dot_size )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Violin Plot by Metadata — violinPlot_mod","text":"object Seurat-class object assay Assay extract gene expression data (Default: SCT) slot Slot extract gene expression data (Default: scale.data) group.Split violin plot based metadata group group.subset Include specific subset group.genes..interest Genes visualize violin plot filter.outliers Filter outliers data (TRUE/FALSE) scale.data Scale data 0 1 (TRUE/FALSE) log.scale.data Transform data onto log10 scale (TRUE/FALSE) reorder.ident Numeric data ordered naturally default. Toggling option order groups match group list non-numeric, effect otherwise. rename.ident Give alternative names group.displayed graph ylimit Y-axis limit plot.style Choose grid, labeled, row outlier.low.lim Filter lower bound outliers (Default = 0.1) outlier..lim Filter upper bound outliers (Default = 0.9) jitter.points Scatter points plot (TRUE/FALSE) jitter.width Set spread jittered points jitter.dot.size Set size individual points print.outliers Print outliers points graph may redundant jitter","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Violin Plot by Metadata — violinPlot_mod","text":"violin ggplot2 object","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Violin Plot by Metadata — violinPlot_mod","text":"Takes list genes inputted user, displays violin plots genes across groups slot-assay (optional) outliers removed. Can also choose scale transform expression data.","code":""}]
+[{"path":[]},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"feature","dir":"","previous_headings":"v1.0.3 (in development)","what":"Feature","title":"CHANGELOG","text":"Visualizes cell population frequencies absolute counts across multiple groups Generates alluvial flow bar plots faceted box plots Supports custom group ordering color palettes Added ggalluvial dependency flow visualizations Generated JSON template using json2r.prompt.md instructions","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"fix","dir":"","previous_headings":"v1.0.2 (2024-02-01)","what":"Fix","title":"CHANGELOG","text":"fix: update package name action file (00c816c)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"unknown","dir":"","previous_headings":"v1.0.2 (2024-02-01)","what":"Unknown","title":"CHANGELOG","text":"Merge pull request #53 NIDAP-Community/dev fix: update package name action file (1ea1b0c) Merge pull request #52 NIDAP-Community/CDupdate fix: update package name action file (3956593)","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"build","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Build","title":"CHANGELOG","text":"build: update conda recipe action file (32f800c)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"documentation","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Documentation","title":"CHANGELOG","text":"docs(version): Automatic development release (0548007) docs: Adding changelog (34b1e0b) docs(version): Automatic development release (184b4f9) docs(version): Automatic development release (b8b41d3) docs(version): Automatic development release (f420a3b) docs(version): Automatic development release (8b5cc98)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"feature-1","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Feature","title":"CHANGELOG","text":"feat: Update test-annotation supress warnings (3d5cf8f) feat: test (4c4cee7) feat: test (c8274f9) feat: test (3aff107) feat: test harmony (6c2830b) feat: enable CD (3696c4b)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"fix-1","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Fix","title":"CHANGELOG","text":"fix: add skip CI harmony (55c1c0d) fix: Suppress warning celldex, move CI handle test Harmony, add png page creation (406594a) fix: Revise version format (7992d22) fix: update readme (d8d4013)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"test","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Test","title":"CHANGELOG","text":"test: Adding variant Action skip (b0bea4c) test: update meta.ymal (1abd118) test: update meta.ymal (46ba936) test: mute line42 test-Process_Raw_Data (75dbd06)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/CHANGELOG.html","id":"unknown-1","dir":"","previous_headings":"v1.0.1 (2024-02-01)","what":"Unknown","title":"CHANGELOG","text":"Merge pull request #51 NIDAP-Community/dev Update test files Harmony Annotation, add GitHub page image (5c19124) Merge pull request #50 NIDAP-Community/CDupdate fix: add skip CI harmony (3268a82) Merge pull request #49 NIDAP-Community/CDupdate fix: Suppress warning celldex, move CI handle test Harmony, … (30de884) Merge pull request #47 NIDAP-Community/dev Update CD (76e59b4) Merge pull request #46 NIDAP-Community/CDupdate docs: Adding changelog (7c5bcf2) Merge pull request #45 NIDAP-Community/dev Update repo structure CD implementation (ca27382) Merge pull request #44 NIDAP-Community/CDupdate Update repo structure Continuous Deployment implementation (fab9424) Merge remote-tracking branch 'origin/main' dev (c850a61) Merge pull request #43 NIDAP-Community/revert-42-testCD2 Revert \"Test cd2\" (dbd1511) Revert \"Test cd2\" (82c3208) Merge pull request #42 ruiheesi/testCD2 Test cd2 (696718c) Merge pull request #17 ruiheesi/release_dev Release dev (93dac20) Merge pull request #16 ruiheesi/dev Dev (f094e92) Merge pull request #15 ruiheesi/testCD2 Test cd2 (89850c1) Merge remote-tracking branch 'origin/dev' testCD2 (429581c) feat :test (10b3e05) Merge pull request #14 ruiheesi/dev Dev (c932c71) Merge pull request #13 ruiheesi/testCD2 Test cd2 (da01ac7) Merge pull request #12 ruiheesi/release_dev Release dev (447457a) Merge pull request #11 ruiheesi/dev Dev (e4a2987) Merge pull request #10 ruiheesi/testCD2 fix: update readme (a3f0d9c) Merge pull request #9 ruiheesi/release_dev Release dev (4026e1a) Merge pull request #8 ruiheesi/dev Dev (4364548) Merge pull request #7 ruiheesi/testCD test: update meta.ymal (fe470f9) Merge pull request #6 ruiheesi/dev Dev (4e75a9f) Merge pull request #5 ruiheesi/testCD test: update meta.ymal (caed439) Merge pull request #4 ruiheesi/dev Dev (9f27de1) Merge pull request #3 ruiheesi/testCD test: mute line42 test-Process_Raw_Data (abef880) Merge pull request #1 ruiheesi/testCD feat: enable CD (0194dd9) Merge pull request #38 NIDAP-Community/main Updating dev avoid potential lost progress (8936388) Merge pull request #37 NIDAP-Community/8_4_tutorial 8 4 tutorial (c640c8f) Merge branch '8_4_tutorial' https://github.com/NIDAP-Community/SCWorkflow 8_4_tutorial (be8b11f) Just tutorial (b667bb0) test (d8bc63c) Fixing visualization \"\" plot (d7bb90f) Merge pull request #36 NIDAP-Community/dev Dev (0b66085) Merge pull request #35 NIDAP-Community/heatmap_fix Fix heatmap (49f0486) Fix heatmap (db3ee4e) Merge pull request #34 NIDAP-Community/release_6_15_test Update DESCRIPTION file author info short package description (31a4d13) Merge pull request #33 NIDAP-Community/update_DES Update DESCRIPTION file (df2abd7) Update DESCRIPTION file (5e43253) Adding auto-generated files (14ff346) Merge pull request #31 NIDAP-Community/release_6_13 Update 6 13 Alexei (e2297c6) Merge pull request #30 NIDAP-Community/release_test Run unit tests (407ca8f) Merge pull request #28 NIDAP-Community/main Update (2891614) Merge pull request #27 NIDAP-Community/phil_6_6_no_NG Modify package function load (370522e) Including \"NULL\" \"seurat_cluster\" tests (8cb6a23) Introducing \"cluster\" variable functionality (e26f2aa) Modify package function load (fe7ad65) Adding auto-generated files (e65ad6b) Merge pull request #26 NIDAP-Community/release_test Passed tests (4a40802) Merge pull request #25 NIDAP-Community/phil_6_6_no_NG Run unit test (4979266) Update Plot_Metadata (573b57a) Update ModuleScore (4367b28) Update NAMESPACE (77240ed) Merge changes (b9226e0) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE tests/testthat/fixtures/downsample_SO.R (d4b92fe) update documentation (19b7179) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (ca74b58) delete old files (b5b2d1d) Removed test-Pseudobulk_DEG.R test-Sample_Names.R (877fa28) Removed test-Meta_Data.R (975face) Merge branch 'main' phil_6_6_no_NG (f638db9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (77c1f03) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need update violinPlot subset function (41f805e) update violinPlot subset function (0609899) Remove old tests (6ca9164) udate PBMC sing Filtered rds (516a9df) Fix Test Error (7641655) fix Test error (e97494a) Merge branch 'main' phil_6_6_no_NG (d7fd7c8) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (1e52f51) Setting add.gene..protein TRUE - error FALSE (2e0a153) Merge branch 'main' phil_6_6_no_NG (d61ce1d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (cd90fbb) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b44581b) bug fix heatmap sort annotation (8d09781) Merge branch 'main' phil_6_6_no_NG (986bcdf) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8fab93f) changed select_crobject selectCRObject (b7446a6) Update Seurate importing method process raw (846ac5d) Trigger check update latest main (2b575eb) Merge branch 'main' phil_6_6_no_NG (aab0562) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b786ed1) Removed gene Seurat (d5d17ac) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (e7f08eb) Bug fix dual labeling (9eede5b) Fixed bug Dual Labeling added one plot output (contingency table) (0b17248) Test direct import seurat process raw (3bd763b) Trigger action, updated process raw import Seurat (2e46082) Trigger action, updated cc.gene (84acd38) Trigger action, updated NAMESPACE (a968d2d) Trigger action (b38dd32) Trigger action (05e9be4) Update NAMESPACE (d7015e6) Merge branch 'main' phil_6_6_no_NG (d9ba725) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (5559288) Trigger unit tests (99ae357) Add Filtered rds (666c3d8) update Variable descriptions (43e05f5) update Variable descriptions (3fd169b) reverting clusters barcodes merging (f561e2f) Trigger unit test (a668ef9) Trigger unit test (1c48c37) Merge branch 'main' phil_6_6_no_NG (ada4aab) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (aa254f1) Update NAMESPACE (dc6152b) rn h5 test (d398586) Fixing \"\" cluster label (18bbdc8) Removing \"latent variable\" test script (1839cdd) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE R/Combine_and_Renormalize.R R/Filter_and_QC.R R/PCA_and_Normalization.R R/Post_filter_QC_Plots.R tests/testthat/fixtures/NSCLC_Single/NSCLC_Single_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLC_Single_Filtered_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLCsingle_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/NSCLC_Single/NSCLCsingle_Filtered_SO_downsample.rds tests/testthat/fixtures/PBMC_Single/PBMC_Single_Filtered_PCA_Norm_SO_downsample.rds tests/testthat/fixtures/PBMC_Single/PBMC_Single_Filtered_SO_downsample.rds tests/testthat/fixtures/downsample_SO.R tests/testthat/test_Combine_and_Renormalize.R tests/testthat/test_Filter_and_QC.R tests/testthat/test_PCA_and_Normalization.R tests/testthat/test_Post_Filter_QC.R (92eae54) FiltQC Variable Descriptions (4aa0674) New RAW filtQC CombNorm (7aa1a24) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: NAMESPACE R/Post_filter_QC_Plots.R tests/testthat/test_Post_Filter_QC.R (4fd27d2) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: man/Combine_and_Renormalize.Rd man/Post_filter_QC.Rd (159af06) skip ci reticulate pacakge (549f205) skip ci reticulate pacakge (75412d7) Edited snapshot tests (a316ad3) Edited snapshot tests (cf00505) update pseudobulk helper (fd0a506) update pseudobulk helper (7f8060e) add pseudobulk helper test scripts (122f072) add pseudobulk helper test scripts (27a49ec) update functions tests (c7ddbf8) update functions tests (c201dd7) Removing \"latent var\" replacing second.clust (67c3aea) Removing \"latent var\" replacing second.clust (9c16231) Quick test CI (e71339c) Quick test CI (73c62ca) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (b600bf0) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8bb7502) Added color selection 3D-tsne Plotter (2882b76) Added color selection 3D-tsne Plotter (f7decbc) Added \"cached\" CellDex option (2cabb8d) Added \"cached\" CellDex option (c913672) fixed NAMESPACE conflicts (f2aa02f) fixed NAMESPACE conflicts (797ab6d) Changed pheatmap ComplexHeatmap::pheatmap (5c9316b) Changed pheatmap ComplexHeatmap::pheatmap (414723d) Code Review (03f4392) Code Review (b2724c8) Removed LICENCE file description (e2affa9) Removed LICENCE file description (8c3154e) Minor fixes R CMD CHECK (134523f) Minor fixes R CMD CHECK (c1eb410) Fix syntax error line 200, fix syntax error \"=\" \"==\" (2916381) Fix syntax error line 200, fix syntax error \"=\" \"==\" (d909584) Helper Recluster, Sprint 7 compliant. (d5181f9) Helper Recluster, Sprint 7 compliant. (8f28252) New test Recluster correct name. (bf252e2) New test Recluster correct name. (0d88348) Old file w bad name gone. New file good. (e903ca0) Old file w bad name gone. New file good. (0e0d81e) Re-arranged new Sprint 7 formatting functions. (2c07bcb) Re-arranged new Sprint 7 formatting functions. (e670fe9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need push updated code main (20f0ab7) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main need push updated code main (189075c) push updated scripts main (ed4b682) push updated scripts main (f70b090) Restructured according new requirements (94b0170) Restructured according new requirements (797d5be) Restructured according new requirements (495be93) Restructured according new requirements (7e53872) Restructured according new requirements (6043df1) Restructured according new requirements (5efd01d) Restructured according new requirements (8465a9e) Restructured according new requirements (75be9d0) Restructured according new requirements (8c4739b) Restructured according new requirements (8a39e82) Restructured according new requirements (2ccad56) Restructured according new requirements (4770cf7) Restructured according new requirements (8762e39) Restructured according new requirements (c21ca07) Restructured according new requirements (b9dfed4) Restructured according new requirements (9cc27d3) Restructured according new requirements (656b12e) Restructured according new requirements (2989dbe) Restructured according new requirements (bf8dcb1) Restructured according new requirements (d11a692) Restructured according new requirements (95693f6) Restructured according new requirements (da04b19) Restructured according new requirements (6dca0bf) Restructured according new requirements (de6b4da) Restructured according new requirements (8f4ea59) Restructured according new requirements (1741342) Restructured according new requirements (f522e45) Restructured according new requirements (dc8cfe2) Restructured according new requirements (b2235b0) Restructured according new requirements (6f4bd6d) Delete test-DegGeneExpressionMarkers.R Replaced newer, renamed version (237eacf) Delete test-DegGeneExpressionMarkers.R Replaced newer, renamed version (ee510b7) Accepted changes Namespace (b0ef9e7) Accepted changes Namespace (70d880f) Removed ticks dotplot code (d6599be) Removed ticks dotplot code (3b4a6e0) Added select dplyr import (1311aae) Added select dplyr import (c860639) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8759676) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (28e310b) Added snapshot file tests Name clusters (1a0c530) Added snapshot file tests Name clusters (de98847) Added snapshot tests heatmap (3f138a4) Added snapshot tests heatmap (1fe2d7b) Additional snapshot file tests dual labeling (8d92fcf) Additional snapshot file tests dual labeling (580ab8d) Additional tests dotplot metadata (fbc3ada) Additional tests dotplot metadata (b7f6c45) Adding expect snapshot file tests 3D-tSNE plotter (8f33e2b) Adding expect snapshot file tests 3D-tSNE plotter (661102c) Formatting changes helper-dual labeling (8f5da99) Formatting changes helper-dual labeling (266dec8) Formatting changes helper - Name clusters (5a6079f) Formatting changes helper - Name clusters (cfc8b69) Formatting changes helper-Heatmap (abd3f09) Formatting changes helper-Heatmap (1ca0e49) Formatting changes helper-dotplot Metadata (321e619) Formatting changes helper-dotplot Metadata (69653cb) Formatting changes helper 3D-tSNE (8be697c) Formatting changes helper 3D-tSNE (c1835c2) Formatting changes Dotplot Metadata (7dbbc99) Formatting changes Dotplot Metadata (d994b6c) Code changes Name clusters formatting (70a9fc2) Code changes Name clusters formatting (bca98aa) Formatting changes Heatmap.R (e1bd5c7) Formatting changes Heatmap.R (f47e847) Add files via upload replace image file (7bf9b80) Add files via upload replace image file (542b65d) Update README.md additional text (700ad07) Update README.md additional text (2e0feec) Update README.md Added image. (7694f8d) Update README.md Added image. (f28a6a7) Add files via upload Workflow image (f93175b) Add files via upload Workflow image (433a89d) Create README.md (70aa926) Create README.md (0b318e5) formatting dual labeling (2e7d12c) formatting dual labeling (f782199) format 3D-tSNE function (fe97cb0) format 3D-tSNE function (4ae1381) Update gitflow-R-action.yml (9bdcf6c) Update gitflow-R-action.yml (7799784) update Dotplot conflict (0ea5f42) update Dotplot conflict (e99ac9b) Update (aa71a29) Update (3dfcdb5) Adding action files dockerfiles (d215fdb) Adding action files dockerfiles (1cbab8e) Resolving git conflict Recluster. (0c70bdb) Resolving git conflict Recluster. (28d7b96) committing -progress Sugarloaf updates Recluster template. (ed03d46) committing -progress Sugarloaf updates Recluster template. (446af26) changed fixture filenames (71ebc2f) changed fixture filenames (6e3284c) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (f5590de) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (219746d) edit code formatting (1a7a120) edit code formatting (2676adc) Initial TestThat Recluster Includes tests 5 datasets testing type, well one test MouseTEC tests UMAP instead default TSNE. (4da52a7) Initial TestThat Recluster Includes tests 5 datasets testing type, well one test MouseTEC tests UMAP instead default TSNE. (da7c560) Initial R4 functionalization. (7558379) Initial R4 functionalization. (84acb8c) Add files via upload Initial release (3eca944) Add files via upload Initial release (deafd1c) Add files via upload Initial release (77b96a6) Add files via upload Initial release (91b7594) Add files via upload Initial commit (4a74c89) Add files via upload Initial commit (9d694ae) Add files via upload Initial release (fa2e7c3) Add files via upload Initial release (25d5857) Add files via upload Initial release (69d1dcf) Add files via upload Initial release (900ab4c) Delete DEG_Gene_Expression_Markers.R (5496f85) Delete DEG_Gene_Expression_Markers.R (fe406ea) Add files via upload Initial release (ea9b264) Add files via upload Initial release (45fd8d2) Add files via upload Initial release (c2e8e8c) Add files via upload Initial release (fee817b) Add files via upload Initial release (55fd6c9) Add files via upload Initial release (a59a2bc) Add files via upload Initial release (ad72a95) Add files via upload Initial release (aac8353) Add files via upload Initial release (a0c5606) Add files via upload Initial release (c31a9f2) Delete DeletMeAgain (d2436b6) Delete DeletMeAgain (4514dae) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (9ce4628) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (2a53ebc) CommLine Test (82aa0fa) CommLine Test (811846c) Delete Delete.Following orders (6b41c15) Delete Delete.Following orders (1f82ca7) Add files via upload DELETE IMMEDIATELY!!! (986326c) Add files via upload DELETE IMMEDIATELY!!! (ea68f0a) Initial release (2c12ea5) Initial release (a294bd3) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (a276a80) Recover code past commit (184c917) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main update function parameter names. (83fbdd1) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main update function parameter names. (6f46e6e) reformat function parameter names (0dfca6c) reformat function parameter names (c81712f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (eac38ce) Merge pull request #9 NIDAP-Community/Rui_resolve_conflict Resolve conflicts (7fa7db9) Merge pull request #9 NIDAP-Community/Rui_resolve_conflict Resolve conflicts (7839aba) Resolve conflicts (d516cd2) Resolve conflicts (8c776b1) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (0a5942a) Update main local branch (b27d7af) Merge pull request #8 NIDAP-Community/phi_test Phi test (2d5e7ec) Merge pull request #8 NIDAP-Community/phi_test Phi test (87fdb1a) resolve conflict (b4d8548) resolve conflict (a3ddae1) Merge branch 'main' phi_test (e22b5e6) Add ignore h5 files gitignore (55c3167) resolve conflicts (43976ba) resolve error (d59173b) Update current directory (f7e242b) Downsampled CITEseq (bdfa1f3) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Correct CITEseq Downsmple (4d643f4) correct CITEseq Downsample (3f032fd) helper script 3D-tsne (12ee9f3) helper script 3D-tsne (30b7146) helper script 3D-tsne (a901830) new tests (1ce5664) new tests (29d75bc) new tests (9cb29d2) unit test Jing templates (bb48481) unit test Jing templates (63a6636) unit test Jing templates (97d74ca) NSCLCmulti (3d42d4a) NSCLCmulti (540bdf3) NSCLCmulti (6e8e596) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (e851077) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (072096f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Update Chariou Single R BRCA combin Renormalize (1a8fbf8) BRCA comb_Renorm (5e3985b) BRCA comb_Renorm (9fb63a3) BRCA comb_Renorm (6d4c05a) unit tests Name Clusters (95cf6f5) unit tests Name Clusters (c7ed110) unit tests Name Clusters (43859bd) unit test dual labeling (46dd45e) unit test dual labeling (3f07269) unit test dual labeling (5c85127) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (b8b1eda) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (09c8f46) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main merging new changes (729b051) unit tests heatmap, dotplot (7659b83) unit tests heatmap, dotplot (b81287c) unit tests heatmap, dotplot (5414455) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (152cf11) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (b0ea506) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main adding NSCLC_Single SOs (d83c561) NSCLC_single (df265cd) NSCLC_single (ad62924) NSCLC_single (7d0b242) add dotplot tests (57166ba) add dotplot tests (b2bd01e) add dotplot tests (69fec28) unit test Dotplot (a94f7ba) unit test Dotplot (13fb938) unit test Dotplot (9c67e81) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (b09cb64) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (d266d5e) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main new error messaging added (c0aaa1b) new error messaging dotplot (9742c5f) new error messaging dotplot (a9bf495) new error messaging dotplot (93a3a06) changes dotplot (1849346) changes dotplot (b52dc29) changes dotplot (d4c0824) Charou (dccaf54) Charou (95b3421) Charou (1f3ca66) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (c58b92e) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (8a845be) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main Conflicts: .gitignore DESCRIPTION tests/testthat/test_Filter_and_QC.R (bb18f4c) TEC (08d1f47) TEC (11f66b3) TEC (c40054d) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (e7ac125) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (0027492) NAMESPACE removed merge conda package build requires NAMESPACE file added, ignored dev cycle. (4f3bbc8) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (02999db) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (6ec32fa) Merge pull request #7 NIDAP-Community/dev_release_dec_13_22 Dev release dec 13 22 (2e0f434) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (4384dd1) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (eeb7741) Initial Commit sprint 5 Functions. Including change DESCRIPTION file (90120cb) Minor fix codes pass Check (3b4f7ee) Minor fix codes pass Check (29de7d6) Minor fix codes pass Check (b65e314) Updated tests (733e2ec) Updated tests (c9ed47b) Updated tests (97e18e5) update NameClusters function test (128fbb4) update NameClusters function test (3f90257) update NameClusters function test (c88161e) update test-Metadata_Table.R (a37474b) update test-Metadata_Table.R (4257cc6) update test-Metadata_Table.R (7b2f599) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (78fc249) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (cce3673) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (986e82b) small changes 3D plotter testing (74364db) small changes 3D plotter testing (a60aa38) small changes 3D plotter testing (7ac6a75) changed heatmap test added library heatmap (cb33cf2) changed heatmap test added library heatmap (bcab3c2) changed heatmap test added library heatmap (20f7260) revised test dual labeling (b5caf02) revised test dual labeling (0f39220) revised test dual labeling (d1b47d6) new doc dotplot (b986ccc) new doc dotplot (800edc4) new doc dotplot (acd4514) changes test added color option (493b745) changes test added color option (b66d7fa) changes test added color option (69c3c15) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8863d0d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (63fc3f6) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8fa25f6) add original citation Pseudobulk.R (4293f96) add original citation Pseudobulk.R (53add2e) add original citation Pseudobulk.R (7b99980) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (9abcb98) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (940e610) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (fb13a18) add functions heatmap, dotplot, 3d-tsne dual-labeling (0ed4df7) add functions heatmap, dotplot, 3d-tsne dual-labeling (74fe2ad) add functions heatmap, dotplot, 3d-tsne dual-labeling (44338d2) update ModScore Pseudobulk DESCRIPTION (aefedde) update ModScore Pseudobulk DESCRIPTION (abe0919) update ModScore Pseudobulk DESCRIPTION (ec95f0c) fix NAMESPACE @importFrom methods empty (756de4e) fix NAMESPACE @importFrom methods empty (2f2bd5a) fix NAMESPACE @importFrom methods empty (5984060) Update Description (3dcc872) Update Description (968b204) Update Description (1f05120) Merge pull request #6 NIDAP-Community/rui Rui (c09fa3f) Merge pull request #6 NIDAP-Community/rui Rui (5d3d3b2) Merge pull request #6 NIDAP-Community/rui Rui (e71621d) update man docs (bf9fb25) update man docs (c08890f) update man docs (98e86e3) add NameCluster function tests (dbe4d15) add NameCluster function tests (5812a98) add NameCluster function tests (233dd75) update MetadataTable & SampleNames (b3f19d8) update MetadataTable & SampleNames (175fa43) update MetadataTable & SampleNames (1d921a2) drop unused factor levels SO_moduleScore.rds (3a39fcf) drop unused factor levels SO_moduleScore.rds (133d872) drop unused factor levels SO_moduleScore.rds (ea6df85) Jing templates fixtures (08532bf) Jing templates fixtures (9f84531) Jing templates fixtures (150df39) add SampleNames .R .Rd files (9f16588) add SampleNames .R .Rd files (780b298) add SampleNames .R .Rd files (446d631) update MetadataTable (615afdc) update MetadataTable (44abfce) update MetadataTable (a27296a) Unit test added 3d tsne function (3ab8d75) Unit test added 3d tsne function (6dc17bd) Unit test added 3d tsne function (e032618) rui update 1 (9011356) rui update 1 (81793d8) rui update 1 (7006ac8) add man/MetadataTable.Rd (af8eedf) add man/MetadataTable.Rd (7830b05) add man/MetadataTable.Rd (61457e8) upload fixtures/SO_moduleScore.rds (78caf56) upload fixtures/SO_moduleScore.rds (07bc42d) upload fixtures/SO_moduleScore.rds (b3b3dc4) correct DESCRIPTION tibble (57847f5) correct DESCRIPTION tibble (fe89882) correct DESCRIPTION tibble (90dd394) update DESCRIPTION (f55cf25) update DESCRIPTION (fcf6d26) update DESCRIPTION (7d3e4ef) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (be5cff8) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (0d74815) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (58aa02a) add MetadataTable function (42c3569) add MetadataTable function (50e3af0) add MetadataTable function (09b995d) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (01921d5) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (795043f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (70082b0) removed NAMESPACE repo (dc422fa) removed NAMESPACE repo (d528f76) removed NAMESPACE repo (f7f5da5) removed Rcheck.txt (8b70481) removed Rcheck.txt (e0a6384) removed Rcheck.txt (e23003a) Added Git ignore update R check results, 11_16_2022 (ce18e14) Added Git ignore update R check results, 11_16_2022 (e705893) Added Git ignore update R check results, 11_16_2022 (1d8a95c) Update DESCRIPTION (7fdea8e) Update DESCRIPTION (0d266f4) Update DESCRIPTION (5effd23) Update cc.genes calls (797aca1) Update cc.genes calls (3db02b2) Update cc.genes calls (65f805b) Update cc.genes calls (8cd8b03) Update cc.genes calls (82a4244) Update cc.genes calls (ea8e671) Update library call (423fbe9) Update library call (f52a89c) Update library call (a3d302b) Update namespace (a4230b7) Update namespace (d35dc0e) Update namespace (0a8e2a9) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (272c0ec) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (8558d4f) Merge branch 'main' https://github.com/NIDAP-Community/SCWorkflow main (83f6f23) Update namespace (9960214) Update namespace (3d85b8d) Update namespace (b8c8b0e) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (33820ce) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (770cb6a) Merge pull request #5 NIDAP-Community/initial_filter_qc Adjusted png render method NIDAP display (12b4ce3) Adjusted png render method NIDAP display (0b9e4d2) Adjusted png render method NIDAP display (9968f1f) Adjusted png render method NIDAP display (747b89a) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (bcc1c7f) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (61952ec) Merge pull request #4 NIDAP-Community/initial_filter_qc Update namespace (ac05afc) Update namespace (fdcfd52) Update namespace (f070d8e) Update namespace (fd74f19) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (a3a99b6) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (5c508c3) Merge pull request #3 NIDAP-Community/initial_filter_qc Added license file (d5113f3) Added license file (186d183) Added license file (a8bd74c) Added license file (1d7ed13) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (fe8164b) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (75ae5fd) Merge pull request #2 NIDAP-Community/initial_filter_qc remove GenomeInfoDb (8908e24) remove GenomeInfoDb (f3bb0e6) remove GenomeInfoDb (2b32d4e) remove GenomeInfoDb (b27279e) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (866a648) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (a30130b) Merge pull request #1 NIDAP-Community/initial_filter_qc Initial push filter qc, demo (b627f06) Initial push filter qc, demo (a843d4d) Initial push filter qc, demo (dcd9fef) Initial push filter qc, demo (462a39d) Update README.md Changed package name (acb154c) Update README.md Changed package name (fdffdf4) Initial commit (6f6b791) Initial commit (7a2591a)","code":""},{"path":[]},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"clone-the-repo","dir":"Articles","previous_headings":"Propose Change","what":"Clone the repo","title":"Contributing to SCWorkflow","text":"member CCBR, can clone repository computer development environment. SCWorkflow large repository may take minutes. Cloning ‘SCWorkflow’… remote: Enumerating objects: 3126, done. remote: Counting objects: 100% (734/734), done. remote: Compressing objects: 100% (191/191), done. remote: Total 3126 (delta 630), reused 545 (delta 543), pack-reused 2392 (1) Receiving objects: 100% (3126/3126), 1.04 GiB | 4.99 MiB/s, done. Resolving deltas: 100% (1754/1754), done. Updating files: 100% (306/306), done.","code":"git clone --single-branch --branch DEV https://github.com/NIDAP-Community/SCWorkflow.git cd SCWorkflow"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"install-dependencies","dir":"Articles","previous_headings":"Propose Change","what":"Install dependencies","title":"Contributing to SCWorkflow","text":"first time cloning repo may install dependencies Check R CMD: R console, make sure package passes R CMD check running: ⚠️ Note: R CMD check doesn’t pass cleanly, ’s good idea ask help continuing.","code":"devtools::check()"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"load-scworkflow","dir":"Articles","previous_headings":"Propose Change","what":"Load SCWorkflow from repo","title":"Contributing to SCWorkflow","text":"R console, load package local repo using:","code":"devtools::load_all()"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"create-branch","dir":"Articles","previous_headings":"Propose Change","what":"Create branch","title":"Contributing to SCWorkflow","text":"Create Git branch pull request (PR). Give branch descriptive name changes make. Example: Use iss-10 ’s specific issue, feature-new-plot new feature. bug fixes small changes, can branch main branch. Success: Switched new branch ‘iss-10’ new features larger changes, branch DEV branch. Success: Switched new branch ‘feature-new-plot’","code":"# Create a new branch from main and switch to it git branch iss-10 git switch iss-10 # Switch to DEV branch, create a new branch, and switch to new branch git switch DEV git branch feature-new-plot git switch feature-new-plot"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"make-changes","dir":"Articles","previous_headings":"Develop","what":"Make your changes","title":"Contributing to SCWorkflow","text":"Now ’re ready edit code, write unit tests, update documentation needed.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"code-style-guidelines","dir":"Articles","previous_headings":"Develop > Make your changes","what":"Code Style Guidelines","title":"Contributing to SCWorkflow","text":"New code follow general guidelines outlined . - Important: Don’t restyle code unrelated PR Tools help: - Use styler package apply styles Key conventions tidyverse style guide:","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"function-organization","dir":"Articles","previous_headings":"Develop > Make your changes","what":"Function Organization","title":"Contributing to SCWorkflow","text":"Structure functions like : Functions follow template. Use roxygen2 documentation:","code":"#' @title Function Title #' @description Brief description of what the function does #' @param param1 Description of first parameter #' @param param2 Description of second parameter #' @details Additional details if needed #' @importFrom package function_name #' @export #' @return Description of what the function returns yourFunction <- function(param1, param2) { ## --------- ## ## Functions ## ## --------- ## ## --------------- ## ## Main Code Block ## ## --------------- ## output_list <- list( object = SeuratObject, plots = list( 'plotTitle1' = p1, 'plotTitle2' = p2 ), data = list( 'dataframeTitle' = df1 ) ) return(output_list) }"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"commit-push","dir":"Articles","previous_headings":"Develop","what":"Commit and Push Your Changes","title":"Contributing to SCWorkflow","text":"Best practices commits: recommend following “atomic commits” principle commit contains one new feature, fix, task. Learn : Atomic Commits Guide","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"check-status","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"1️⃣ Check Status","title":"Contributing to SCWorkflow","text":"Check current state Git working directory staging area:","code":"git status"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"stage-files","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"2️⃣ Stage Files","title":"Contributing to SCWorkflow","text":"Add files changed staging area:","code":"git add path/to/changed/files/"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"make-the-commit","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"3️⃣ Make the Commit","title":"Contributing to SCWorkflow","text":"commit message follow Conventional Commits specification. Briefly, commit start one approved types feat, fix, docs, etc. followed description commit. Take look Conventional Commits specification detailed information write commit messages.","code":"git commit -m 'feat: create function for awesome feature'"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"push-your-changes-to-github","dir":"Articles","previous_headings":"Develop > Step-by-Step Process:","what":"4️⃣ Push your changes to GitHub:","title":"Contributing to SCWorkflow","text":"first time pushing branch, may explicitly set upstream branch: recommend pushing commits often backed GitHub. can view files branch GitHub https://github.com/NIDAP-Community/SCWorkflow/tree/<-branch-name> (replace <-branch-name> actual name branch).","code":"git push git push --set-upstream origin iss-10"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"writing-tests","dir":"Articles","previous_headings":"Document and Tests","what":"Writing Tests","title":"Contributing to SCWorkflow","text":"tests matter: changes code also need unit tests demonstrate changes work intended. add tests: Use testthat create unit tests Follow organization described tidyverse test style guide Look existing code package examples","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"documentation","dir":"Articles","previous_headings":"Document and Tests","what":"Documentation","title":"Contributing to SCWorkflow","text":"update documentation: Written new function Changed API existing function Function used vignette update documentation: Use roxygen2 Markdown syntax See R Packages book detailed instructions Update relevant vignettes needed","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"check","dir":"Articles","previous_headings":"Document and Tests","what":"Check Your Work","title":"Contributing to SCWorkflow","text":"🔍 Final validation step: making changes, run following command R console make sure package still passes R CMD check: Goal: checks pass errors, warnings, notes.","code":"devtools::check()"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"create-the-pr","dir":"Articles","previous_headings":"Deploy Feature","what":"1️⃣ Create the PR","title":"Contributing to SCWorkflow","text":"branch ready, create PR GitHub: https://github.com/NIDAP-Community/SCWorkflow/pull/new/ Select branch just pushed: Edit PR title description. title briefly describe change. Follow comments template fill body PR, can delete comments (everything ) go. ’re ready, click ‘Create pull request’ open . Optionally, can mark PR draft ’re yet ready reviewed, change later ’re ready.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"wait-for-a-maintainer-to-review-your-pr","dir":"Articles","previous_headings":"Deploy Feature","what":"2️⃣ Wait for a maintainer to review your PR","title":"Contributing to SCWorkflow","text":"best follow tidyverse code review principles: https://code-review.tidyverse.org/. reviewer may suggest make changes accepting PR order improve code quality style. ’s case, continue make changes branch push GitHub, appear PR. PR approved, maintainer merge issue(s) PR links close automatically. Congratulations thank contribution!","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"after-your-pr-has-been-merged","dir":"Articles","previous_headings":"Deploy Feature","what":"3️⃣ After your PR has been merged","title":"Contributing to SCWorkflow","text":"PR merged, update local clone repo switching DEV branch pulling latest changes: ’s good idea run git pull creating new branch start recent commits main.","code":"git checkout DEV git pull"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html","id":"helpful-links-for-more-information","dir":"Articles","previous_headings":"","what":"Helpful links for more information","title":"Contributing to SCWorkflow","text":"contributing guide adapted tidyverse contributing guide GitHub Flow tidyverse style guide tidyverse code review principles reproducible examples R packages book usethis devtools testthat styler roxygen2","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/Intro.html","id":"scworkflow","dir":"Articles","previous_headings":"","what":"SCWorkflow","title":"","text":"CCBR Single-cell RNA-seq Package (SCWorkflow) allows users analyze single-cell RNA-seq datasets starting CellRanger output files (H5 mtx files, etc.).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/Intro.html","id":"installation","dir":"Articles","previous_headings":"SCWorkflow","what":"Installation","title":"","text":"can install SCWorkflow package GitHub : also Docker container available ","code":"# install.packages(\"remotes\") remotes::install_github(\"NIDAP-Community/SCWorkflow\", dependencies = TRUE)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/Intro.html","id":"usage","dir":"Articles","previous_headings":"SCWorkflow","what":"Usage","title":"","text":"Following workflow can perform steps single-cell RNA-seq analysis, : Quality Control: Import, Select, & Rename Samples Filter Cells based QC metrics Combine Samples, Cluster, Normalize Data Batch Correction using Harmony Cell Annotation: SingleR Automated Annotations Module Scores Co-Expression External Annotations Visualizations: Dimensionality Reductions (t-SNE UMAP Plots) colored Marker Expression Metadata Heatmaps Violin Plots Trajectory Differential Expression Analysis Seurat’s FindMarkers() Pseudobulk Aggregation Pathway Analysis Please see introductory vignette quick start tutorial. Take look reference documentation detailed information function package.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"scworkflow","dir":"Articles","previous_headings":"","what":"SCWorkflow","title":"SCWorkflow-Intro","text":"CCBR Single-cell RNA-seq Package (SCWorkflow) allows users analyze single-cell RNA-seq datasets starting CellRanger output files (H5 mtx files, etc.).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"installation","dir":"Articles","previous_headings":"SCWorkflow","what":"Installation","title":"SCWorkflow-Intro","text":"can install SCWorkflow package GitHub : also Docker container available ","code":"# install.packages(\"remotes\") remotes::install_github(\"NIDAP-Community/SCWorkflow\", dependencies = TRUE)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/README.html","id":"usage","dir":"Articles","previous_headings":"SCWorkflow","what":"Usage","title":"SCWorkflow-Intro","text":"Following workflow can perform steps single-cell RNA-seq analysis, : Quality Control: Import, Select, & Rename Samples Filter Cells based QC metrics Combine Samples, Cluster, Normalize Data Batch Correction using Harmony Cell Annotation: SingleR Automated Annotations Module Scores Co-Expression External Annotations Visualizations: Dimensionality Reductions (t-SNE UMAP Plots) colored Marker Expression Metadata Heatmaps Violin Plots Trajectory Differential Expression Analysis Seurat’s FindMarkers() Pseudobulk Aggregation Pathway Analysis Please see introductory vignette quick start tutorial. Take look reference documentation detailed information function package.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"cell-type-annotation-with-singler","dir":"Articles","previous_headings":"","what":"Cell Type Annotation with SingleR","title":"Annotations","text":"function automates cell type annotation single-cell RNA sequencing data employing SingleR [1] method, allocates labels cells within dataset according gene expression profile similarities reference dataset containing cell type labeled samples SingleR automatic annotation method single-cell RNA sequencing data uses given reference dataset samples (single-cell bulk) known labels label new cells test dataset based similarity reference. Two mouse reference datasets (MouseRNAseqData ImmGenData) two human reference datasets (HumanPrimaryCellAtlasData BlueprintEncodeData) CellDex R package [2] currently available.","code":"Anno_SO=annotateCellTypes(object=Comb_SO$object, species = \"Mouse\", reduction.type = \"umap\", legend.dot.size = 2, do.finetuning = FALSE, local.celldex = NULL, use.clusters = NULL )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"add-external-cell-annotations","dir":"Articles","previous_headings":"","what":"Add External Cell Annotations","title":"Annotations","text":"function merge external table cell annotations existing Seurat Object’s metadata table. input external metadata table must column named “Barcode” contains barcodes matching found metadata already present input Seurat Object. output new Seurat Object metadata now includes additional columns external table.","code":"CellType_Anno_Table=read.csv(\"./images/PerCell_Metadata.csv\") ExtAnno_SO=ExternalAnnotation(object = Anno_SO$object, external_metadata = CellType_Anno_Table, seurat_object_filename = \"seurat_object.rds\", barcode_column = \"Barcode\", external_cols_to_add = c(\"Cell Type\"), col_to_viz = \"Cell Type\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"cell-annotation-with-co-expression","dir":"Articles","previous_headings":"","what":"Cell Annotation with Co-Expression","title":"Annotations","text":"function display co-expression two chosen markers Seurat Object. Create metadata column containing annotations cells correspond marker expression thresholds set. function enables users visualize association two selected genes proteins according expression values various samples. association plotted, samples values specified limit can excluded. Users ability customize visualization, including choice visualization type, point size shape, transparency level. Furthermore, tool allows application filters data, setting thresholds, providing annotations notify users cells meet established thresholds. visualization can improved omitting extreme values. tool also facilitates creation heatmap represent density distribution cells exhibit raw gene/protein expression values.","code":"grep('Cd4',rownames(Anno_SO$object@assays$RNA),ignore.case = T,value=T) DLAnno_SO=dualLabeling(object = Anno_SO$object, samples <- c(\"PBS\",\"CD8dep\",\"ENT\",\"NHSIL12\",\"Combo\"), marker.1=\"Nos2\", marker.2=\"Arg1\", marker.1.type = \"SCT\", marker.2.type = \"SCT\", data.reduction = \"both\", point.size = 0.5, point.shape = 16, point.transparency = 0.5, add.marker.thresholds = TRUE, marker.1.threshold = 0.5, marker.2.threshold = 0.5, filter.data = TRUE, marker.1.filter.direction = \"greater than\", marker.2.filter.direction = \"greater than\", apply.filter.1 = TRUE, apply.filter.2 = TRUE, filter.condition = TRUE, parameter.name = \"My_CoExp\", trim.marker.1 = FALSE, trim.marker.2 = FALSE, pre.scale.trim = 0.99, display.unscaled.values = FALSE ) plot(DLAnno_SO$plots$tsne) plot(DLAnno_SO$plots$umap)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"color-by-gene-lists","dir":"Articles","previous_headings":"","what":"Color by Gene Lists","title":"Annotations","text":"function generates plots visualize expression specific markers (genes) single-cell RNA sequencing (scRNA-seq) data. Gene plots generated order appear input list (provided present data). function takes number inputs create detailed plots showing activity certain genes. can customize based specific samples genes interest point transparency. code built-system alert issues chosen inputs. particular gene missing, return empty plot. gene present, perform several steps adjust data better visualization analysis, normalizing data creating reduction plot (type plot helps visualize complex data). code also makes sure display chosen samples, creates caption plot indicating samples shown, colors points based gene activity levels, adjusts plot’s visual elements like transparency, size, labels. haven’t selected specific samples, use available samples data. also checks presence chosen genes data processes ensure uniformity across different cell types. output function detailed figure showing activity chosen genes across different cell types. useful identifying distinct groups cells based gene activity levels.","code":"Marker_Table <- read.csv(\"Marker_Table_demo.csv\") colorByMarkerTable(object=Anno_SO$object, samples.subset=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), samples.to.display=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), marker.table=Marker_Table, cells.of.interest=c(\"Neutrophils\",\"Macrophages\",\"CD8_T\" ), protein.presence = FALSE, assay = \"SCT\", reduction.type = \"umap\", point.transparency = 0.5, point.shape = 16, cite.seq = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"module-score-cell-classification","dir":"Articles","previous_headings":"","what":"Module Score Cell Classification","title":"Annotations","text":"Screens data cells based user-specified cell markers. Outputs seurat object metadata averaged marker scores annotated “Likely_CellType” column. function can used quantify expression marker sets individual cell (optionally) hierarchical manner, helping identify different cell types potential subpopulations. function aids identifying cell types based average gene expression. uses feature Seurat software known AddModuleScore function. function calculates gene expression specific sets records within designated area Seurat object. program forecasts cell identities comparing recorded scores across various gene sets. ability adjust identification process designating cutoff points bimodal distribution parameter known manual threshold. thresholds cutoff considered identification process. Inputs: program takes several inputs. include single-cell RNA sequencing (scRNA-seq) object, selection samples analysis, table gene markers different cell types, optionally, hierarchical table directing order cell classification. Data Preparation: program prepares scRNA-seq object, assigns names samples, selects data based specified samples. Module Score Calculation: program calculates module scores, measure gene set activity expression [3], cell type based provided marker table. Visualization: Density distribution plots colored reduction plots generated help visualize module scores, relationship cell types, sample identities. Thresholding: Users can select threshold values aid classification cells. Cells scores designated threshold labeled “unknown”. Subclass Identification: desired, program can identify subclasses within cell types analyzing subpopulations. Updating Cell Type Labels: program appends “Likely_CellType” column metadata scRNA-seq object, based results module score analysis. Output: updated scRNA-seq object new cell type labels.","code":"MS_object=modScore(object=Anno_SO$object, marker.table=Marker_Table, use_columns = c(\"Neutrophils\",\"Macrophages\",\"CD8_T\" ), ms_threshold=c(\"Neutrophils .25\",\"Macrophages .40\",\"CD8_T .14\"), general.class=c(\"Neutrophils\",\"Macrophages\",\"CD8_T\"), multi.lvl = FALSE, reduction = \"umap\", nbins = 10, gradient.ft.size = 6, violin.ft.size = 6, step.size = 0.1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"rename-clusters-by-cell-type","dir":"Articles","previous_headings":"","what":"Rename Clusters by Cell Type","title":"Annotations","text":"function creates dot plot Cell Types Renamed Clusters outputs Seurat Object new metadata column containing New Cluster Names. Cell Types often determined looking Module Score Cell Classification calls made upstream Module Score Cell Classification (see MS_Celltype metadata column). must provide table column containing unique Cluster IDs upstream clustering analysis (e.g. one SCT_snn_res_* columns input Seurat Object metadata) column containing corresponding New Cluster Names chosen. dot plot display unique Cell Types x-axis Renamed Clusters y-axis. size dots show percentage cells row (Renamed Cluster) classified Cell Type. comparison dot sizes within row may provide insights cluster’s primary Cell Type. new metadata column named “Clusternames” added output Seurat Object contains New Cluster Names. Methodology function creates dot plot visualization cell types metadata category (usually cluster number) given dataset implemented SCWorkflow package. function allows update organize biological data cell clusters Seurat object. changing input labels, can map custom names existing cluster IDs add names new metadata column. also generates dot plot using Seurat’s Dotplot function [4], providing visual representation percentage various cell types within cluster. Typically, cluster can distinctively named predominant cell type seen dotplot. plot’s order can customized clusters cell types. specific order provided, function uses default order. optional parameter allows user make plot interactive. function returns updated Seurat object plot.","code":"clstrTable <- read.table(file = \"./images/Cluster_Names.txt\", sep = '\\t',header = T) RNC_object=nameClusters(object=Anno_SO$object, cluster.identities.table=clstrTable, cluster.numbers= 'OriginalClusterIDs', cluster.names='NewClusterNames', cluster.column =\"SCT_snn_res.0.2\", labels.column = \"mouseRNAseq_main\", order.clusters.by = NULL, order.celltypes.by = NULL, interactive = FALSE ) # DimPlot(MS_object, group.by = \"SCT_snn_res.0.2\", label = T, reduction = 'umap') # DimPlot(MS_object, group.by = \"mouseRNAseq_main\", label = T, reduction = 'umap') ggsave(RNC_object$plots, filename = \"./images/RNC.png\", width = 9, height = 6)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html","id":"dot-plot-of-genes-by-metadata","dir":"Articles","previous_headings":"","what":"Dot Plot of Genes by Metadata","title":"Annotations","text":"function creates dot plot average gene expression values set genes cell subpopulations defined metadata annotation columns. input table contains single column genes (“Genes column”) single column category (“Category labels plot” column). values “Category labels plot” column match values provided metadata function (Metadata Category Plot). plot order genes (x-axis, left right) Categories (y-axis, top bottom) order appears input table. category entries omitted plotted. Dotplot size reflect percentage cells expressing gene color reflect average expression gene. table showing values plot (either percentage cells expressing gene, average expression scaled) returned, selected user. Methodology function creates dot plot visualization gene expression metadata given dataset. uses Seurat package create plots. size dot represents percentage cells expressing particular gene (frequency), color dot indicates average gene expression level. function ensures unique valid genes categories used. categories genes found dataset, appropriate warnings issued. plot drawn option reverse x y-axes reverse order metadata categories. colors can also customized. addition plot, function provides tabular format dot plot data, can useful analysis reporting. choice returning either tables representing percent cells expressing gene average expression level genes. function can useful exploratory data analysis visualizing differences gene expression across different conditions groups cells. Aran, D., . P. Looney, L. Liu, E. Wu, V. Fong, . Hsu, S. Chak, et al. 2019. “Reference-based analysis lung single-cell sequencing reveals transitional profibrotic macrophage.” Nat. Immunol. 20 (2): 163–72. http://bioconductor.org/packages/release/data/experiment/html/celldex.html https://satijalab.org/seurat/reference/addmodulescore Hao Y et al. Integrated analysis multimodal single-cell data. Cell. 2021 Jun 24;184(13):3573-3587.e29. doi: 10.1016/j.cell.2021.04.048. Epub 2021 May 31. PMID: 34062119; PMCID: PMC8238499.","code":"FigOut=dotPlotMet(object=Anno_SO$object, metadata=\"orig.ident\", cells=c(\"PBS\",\"ENT\",\"NHSIL12\", \"Combo\",\"CD8dep\" ), markers=Marker_Table$Macrophages, plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"de-with-find-markers","dir":"Articles","previous_headings":"","what":"DE with Find Markers","title":"Differential Expression Analysis","text":"function performs DE (differential expression) analysis merged Seurat object identify expression markers different groups cells (contrasts). analysis uses FindMarkers() function Seurat Workflow. Methodology Differential expression analysis (DEG) fundamental technique single-cell genomics research. goal DEG analysis identify genes exhibit significant changes expression levels different groups cells conditions, thereby uncovering potential markers distinguish groups. function takes merged Seurat object [1] input, expected contain single-cell data multiple samples, along relevant metadata SingleR annotations, provide information cell identity. perform DEG analysis, user can choose various statistical algorithms, MAST [2], wilcox [3], bimod [4], , accommodate different types experimental designs assumptions data. user can control sensitivity analysis setting minimum fold-change gene expression groups considered significant. Additionally, users can specify assay used analysis, whether scaled data (SCT) raw RNA counts. best results, recommended use function well-curated preprocessed single-cell data, ensuring Seurat object contains relevant metadata SingleR annotations. Users carefully select samples contrasts based experimental design research questions. Additionally, exploring different statistical algorithms adjusting threshold can fine-tune DEG analysis reveal accurate gene expression markers. https://satijalab.org/seurat/ https://rglab.github.io/MAST/ Dalgaard, Peter (2008). Introductory Statistics R. Springer Science & Business Media. pp. 99–100 https://en.wikipedia.org/wiki/Multimodal_distribution","code":"DEG_table=degGeneExpressionMarkers(object = Anno_SO$object, samples = c(\"PBS\", \"ENT\", \"NHSIL12\", \"Combo\", \"CD8dep\" ), contrasts = c(\"0-1\"), parameter.to.test = \"SCT_snn_res_0_2\", test.to.use = \"MAST\", log.fc.threshold = 0.25, assay.to.use = \"SCT\", use.spark = F )"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"aggregate-seurat-counts","dir":"Articles","previous_headings":"Pseudo Bulk Method","what":"Aggregate Seurat Counts","title":"Differential Expression Analysis","text":"function first step Pseudobulk analysis scRNA-seq dataset. groups cells based chosen categorical variable(s) Seurat Object’s Metadata aggregates counts gene group. output table aggregate expression rows genes columns values found chosen Pseudobulk variable. select multiple categories aggregate (e.g. Category1: ,B,C Category2: D,E,F), cells grouped combinations category variables (e.g. A_D, A_E, A_F, B_D, B_E, B_F). default, gene counts averaged across cells group.","code":"aggregateCounts(object=so, var.group=var_group, slot=slot)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"statistical-analysis-using-limma","dir":"Articles","previous_headings":"Pseudo Bulk Method","what":"Statistical Analysis using Limma","title":"Differential Expression Analysis","text":"Given matrix (typically log-normalized gene expression) metadata table, run one- two-factor statistical analyses groups using linear mixed effects models limma. Reference. 2 ways treating Donor Patient - one random effect fixed effect Using Mixed Effects Model (Donor random effect): Add Donor column Donor Variable Column add Donor variable Covariate Columns. handled separately Donor Variable Column random effect. Covariate Columns field include variables except Donor. Using Basic Linear Model (Donor fixed effect): can add Donor column covariate Covariate Columns, treated fixed effect. Additional variables can included Covariate Columns Ensure Donor Variable Column left blank. function Beta version undergoing active development. encounter problems, please contact CCBR NCICCBRNIDAP@mail.nih.gov","code":"Pseudobulk_LimmaStats()"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html","id":"volcano-plot---enhanced","dir":"Articles","previous_headings":"Visualizations","what":"Volcano Plot - Enhanced","title":"Differential Expression Analysis","text":"function utilizes EnhancedVolcano R Bioconductor package generate publication-ready volcano plots differential expression analyses, offering number customizable visualization options optimizing gene label placement avoid clutter Methodology volcano plot type scatterplot shows statistical significance (P value) versus magnitude change (fold change). enables quick visual identification genes large fold changes also statistically significant. may biologically significant features (genes, isoforms, peptides ). , using highly-configurable function “EnhancedVolcano” produces publication-ready volcano plots. Maria Doyle, 2021 Visualization RNA-Seq results Volcano Plot (Galaxy Training Materials). https://training.galaxyproject.org/training-material/topics/transcriptomics/tutorials/rna-seq-viz--volcanoplot/tutorial.html Online; accessed Mon Aug 01 2022 Batut et al., 2018 Community-Driven Data Analysis Training Biology Cell Systems 10.1016/j.cels.2018.05.012 Blighe, K, S Rana, M Lewis. 2018. EnhancedVolcano: Publication-ready volcano plots enhanced coloring labeling. https://github.com/kevinblighe/EnhancedVolcano.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"process-input-data","dir":"Articles","previous_headings":"","what":"Process Input Data","title":"Import Data and Quality Control","text":"package designed work general Seurat Workflow. begin using SCWorkflow tools process h5 files generated Cell Ranger software 10x genomics platform create list Seurat Objects[1] corresponding h5 file. Seurat Object basic data structure Seurat Single Cell analysis tool supports standard scRNAseq, CITE-Seq, TCR-Seq assays. Samples prepared cell hashing protocol (HTOs) can also processed produce Seurat Object split corresponding experimental design strategy. h5 files containing multiple samples can also processed create Seurat objects split based values orig.ident column. corresponding Metadata table can used add sample level information Seurat object. table format Sample names first Column sample metadata additional columns. Metadata table can also used rename samples including alternative sample name Column metadata table. Samples can also excluded final Seurat object using REGEX strategy identify samples included/excluded. explain based newnames final Seurat Object contain assay slot log2 normalized counts. QC figures individual samples also produced help evaluate samples quality.","code":"SampleMetadataTable <- read.table(file = \"./images/Sample_Metadata.txt\", sep = '\\t',header = T) files=list.files(path=\"../tests/testthat/fixtures/Chariou/h5files\",full.names = T) SOlist=processRawData(input=files, sample.metadata.table=SampleMetadataTable, sample.name.column='Sample_Name', organism=\"Mouse\", rename.col='Rename', keep=T, file.filter.regex=c(), split.h5=F, cell.hash=F, tcr.summarize.topN=10, do.normalize.data=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"filter-low-quality-cells","dir":"Articles","previous_headings":"","what":"Filter Low Quality Cells","title":"Import Data and Quality Control","text":"function filter genes cells based multiple metrics available Seurat Object metadata slot. detailed guide single cell quality filtering can found Xi Li, 2021 [2]. First, genes can filtered setting minimum number cells needed keep gene removing VDJ Add descriptiopn VDJ genes. Next, cells can filtered setting thresholds individual metric. Cells meet designated criteria removed final filtered Seurat Object . Filter limits can set using absolute values median absolute deviations (MADs) criteria. absolute MAD values set single filter, least extreme value (.e. lowest value upper limits highest value lower limits) selected. filter values used metric printed log output. filters default values can turned setting limits NA. individual filtering criteria used tool listed . total number molecules detected within cell (nCount_RNA) number genes detected cell (nFeature_RNA) complexity genes ( log10(nFeature_RNA)/log10(nCount_RNA) Percent mitochondrial Genes Percent counts top 20 Genes Doublets calculated scDblFinder (using package default parameters) [3] function return filtered Seurat Object various figures showing metrics filtering. figures can used help evaluate effects filtering criteria whether filtering limits need adjusted.","code":"SO_filtered=filterQC(object=SOlist$object, ## Filter Genes min.cells = 20, filter.vdj.genes=F, ## Filter Cells nfeature.limits=c(NA,NA), mad.nfeature.limits=c(5,5), ncounts.limits=c(NA,NA), mad.ncounts.limits=c(5,5), mitoch.limits = c(NA,25), mad.mitoch.limits = c(NA,3), complexity.limits = c(NA,NA), mad.complexity.limits = c(5,NA), topNgenes.limits = c(NA,NA), mad.topNgenes.limits = c(5,5), n.topgnes=20, do.doublets.fitler=T )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html","id":"combine-normalize-and-cluster-data","dir":"Articles","previous_headings":"","what":"Combine, Normalize, and Cluster Data","title":"Import Data and Quality Control","text":"functions combines multiple sample level Seurat Objects single Seurat Object normalizes combined dataset. multi-dimensionality data summarized set “principal components” visualized UMAP tSNE projections. graph-based clustering approach identify cell clusters data. Hao Y et al. Integrated analysis multimodal single-cell data. Cell. 2021 Jun 24;184(13):3573-3587.e29. doi: 10.1016/j.cell.2021.04.048. Epub 2021 May 31. PMID: 34062119; PMCID: PMC8238499. Heumos, L., Schaar, .C., Lance, C. et al. Best practices single-cell analysis across modalities. Nat Rev Genet (2023). https://doi.org/10.1038/s41576-023-00586-w Germain P, Lun , Macnair W, Robinson M (2021). “Doublet identification single-cell sequencing data using scDblFinder.” f1000research. doi:10.12688/f1000research.73600.1.","code":"Comb_SO=combineNormalize( object=SO_filtered$object, # Nomralization variables npcs = 21, SCT.level=\"Merged\", vars.to.regress = c(\"percent.mt\"), # FindVariableFeatures nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 100000, selection.method = 'vst', # Dim Reduction only.var.genes = FALSE, draw.umap = TRUE, draw.tsne = TRUE, seed.for.pca = 42, seed.for.tsne = 1, seed.for.umap = 42, # Clustering Varables clust.res.low = 0.2, clust.res.high = 1.2, clust.res.bin = 0.2, # Select PCs methods.pca = NULL, var.threshold = 0.1, pca.reg.plot = FALSE, jackstraw = FALSE, jackstraw.dims=5, # Other exclude.sample = NULL, cell.count.limit= 35000, reduce.so = FALSE, project.name = 'scRNAProject', cell.hashing.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-SubsetReclust.html","id":"subset-seurat-object","dir":"Articles","previous_headings":"","what":"Subset Seurat Object","title":"Subset and Recluster","text":"function subsets Seurat object. Select metadata column values matching cells pass forward analysis.","code":"filter_SO=filterSeuratObjectByMetadata( object = Anno_SO$object, samples.to.include = c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\"), sample.name = 'orig.ident', category.to.filter = 'immgen_main', values.to.filter = c('Monocytes','Macrophages','DC'), keep.or.remove = FALSE, greater.less.than = \"greater than\", colors = c( \"aquamarine3\", \"salmon1\", \"lightskyblue3\"), seed = 10, cut.off = 0.5, legend.position = \"right\", reduction = \"umap\", plot.as.interactive.plot = FALSE, legend.symbol.size = 2, dot.size = 0.1, number.of.legend.columns = 1, dot.size.highlighted.cells = 0.5, use.cite.seq.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-SubsetReclust.html","id":"recluster-seurat-object","dir":"Articles","previous_headings":"","what":"Recluster Seurat Object","title":"Subset and Recluster","text":"function provides mechanism re-clustering filtered Seurat object, common task single-cell RNA sequencing analysis. function provides options choose number principal components, range clustering resolution, type dimensionality reduction, several parameters. function finds variable features performs Principal Component Analysis (PCA). Next, dimensionality reduction performed using UMAP t-SNE based PCA, followed identification nearest neighbors. performs clustering different resolutions within provided range, creating new clustering columns Seurat object. also retains old clustering information, plots clusters resolution returns list containing re-clustered Seurat object grid clustering plots. function can helpful experimenting different clustering parameters especially filtering visually inspect results. Methodology function uses methods Seurat package [1]. Seurat uses graph-based clustering method inspired previous strategies, particularly Macosko et al [3]. uses methods like SNN-Cliq PhenoGraph [4.5], represent cells graph structure based similarities feature expression patterns. aim divide graph highly connected communities clusters. process begins building K-nearest neighbor (KNN) graph using Euclidean distance PCA space. algorithm refines edge weights cells according local neighborhood overlap, calculated using Jaccard similarity measure. performed using predefined dimensions dataset, first 10 Principal Components (PCs). cluster cells, Seurat uses modularity optimization techniques like Louvain [4] algorithm SLM [5]. ‘resolution’ parameter can adjusted control granularity downstream clustering; higher resolution results clusters. single-cell datasets approximately 3K cells, recommended range parameter 0.4 1.2, larger datasets typically require higher resolution. Seurat Clustering method https://satijalab.org/seurat/articles/pbmc3k_tutorial.html Macosko EZ, Basu , Satija R, Nemesh J, Shekhar K, Goldman M, Tirosh , Bialas AR, Kamitaki N, Martersteck EM, Trombetta JJ, Weitz DA, Sanes JR, Shalek AK, Regev , McCarroll SA. Highly Parallel Genome-wide Expression Profiling Individual Cells Using Nanoliter Droplets. Cell. 2015 May 21;161(5):1202-1214. Xu, Chen, Zhengchang Su. Identification cell types single-cell transcriptomes using novel clustering method. Bioinformatics 31.12 (2015): 1974-1980. Levine, Jacob H., et al. Data-driven phenotypic dissection AML reveals progenitor-like cells correlate prognosis. Cell 162.1 (2015): 184-197. Blondel, Vincent D., et al. Fast unfolding communities large networks.”Journal statistical mechanics: theory experiment 2008.10 (2008): P10008. Waltman, Ludo, Nees Jan Van Eck. smart local moving algorithm large-scale modularity-based community detection. European physical journal B 86 (2013): 1-14","code":"reClust_SO=reclusterSeuratObject( object = filter_SO$object, prepend.txt = \"old\", old.columns.to.save=c(\"orig_ident\",\"Sample_Name\",\"nCount_RNA\",\"nFeature_RNA\",\"percent_mt\", \"log10GenesPerUMI\",\"S_Score\",\"G2M_Score\",\"Phase\",\"CC_Difference\",\"Treatment\", \"pct_counts_in_top_N_genes\",\"Doublet\",\"nCount_SCT\",\"nFeature_SCT\", \"mouseRNAseq_main\",\"mouseRNAseq\",\"immgen_main\",\"immgen\" ), number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"umap\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"use-scworkflow-container","dir":"Articles","previous_headings":"","what":"Use SCWorkflow Container","title":"Getting Started","text":"SCWorkflow docker container available Biowulf can used RStudio organize rune SCWorkflow package. need 2 shells (terminals) set RStudio Biowulf.","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"log-in-to-biowulf","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"1. Log in to Biowulf","title":"Getting Started","text":"Open terminal login biowulf call interactive session","code":"ssh username@helix.nih.gov sinteractive --tunnel --time=12:00:00 --mem=50g --cpus-per-task=16 --gres=lscratch:50"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"get-the-port-number-for-termal-2","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"2. Get the PORT number for termal 2","title":"Getting Started","text":"","code":"echo $PORT1 example port is 46137"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"load-the-container","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"3. Load the Container","title":"Getting Started","text":"single cell container emulate environments NIDAP","code":"source /data/CCBR/NIDAP/container_singlecell.sh"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"connect-your-local-shell-to-the-rstudio-server-on-biowulf-using-ssh-tunneling-","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"4. Connect your local shell to the RStudio server on Biowulf using SSH tunneling.","title":"Getting Started","text":"Use $PORT number terminal 1 (step 2).","code":"ssh -N -L $PORT:localhost:$PORT yourusername@biowulf.nih.gov login with nih password"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"open-rstudio-in-your-local-web-browser","dir":"Articles","previous_headings":"Use SCWorkflow Container","what":"5. Open RStudio in your local web browser","title":"Getting Started","text":"Open web browser go : Use $PORT number terminal 1 (step 2) open Rstudio browser connected biowulf container opened step 3.","code":"localhost:$PORT"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"log-into-helix","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"1. Log into Helix","title":"Getting Started","text":"","code":"ssh username@helix.nih.gov"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"connect-to-rstuido-server-to-copy-files-to-biowulf","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"3. connect to Rstuido Server to copy files to Biowulf","title":"Getting Started","text":"","code":"sftp username@ nciws-d2335-v.nci.nih.gov"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"copy-files-to-biowulf","dir":"Articles","previous_headings":"Copy Files from Rstuido server to Helix","what":"4. copy files to biowulf","title":"Getting Started","text":"Examples: files: Rscipts:","code":"mget -r * mget -r *R"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html","id":"install-package","dir":"Articles","previous_headings":"","what":"Install Package","title":"Getting Started","text":"general use SCWorkflow can installed Rlibrary","code":"# install.packages(\"remotes\") # remotes::install_github(\"NIDAP-Community/SCWorkflow\", dependencies = TRUE) library(SCWorkflow)"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"color-by-metadata","dir":"Articles","previous_headings":"","what":"Color by Metadata","title":"Visualizations","text":"Use Function color dimensionality reduction (TSNE & UMAP) different columns Metadata Table. can select one columns Metadata Table, column selected, function produce plot (t-SNE & UMAP) using data column color cells. function visualizes plot based selected metadata. Users can customize want visualize data, including type visualization used, size shape points, level transparency.","code":"FigOut=plotMetadata( object=Anno_SO$object, samples.to.include=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), metadata.to.plot=c('SCT_snn_res.0.4','Phase'), columns.to.summarize=NULL, summarization.cut.off = 5, reduction.type = \"umap\", use.cite.seq = FALSE, show.labels = FALSE, legend.text.size = 1, legend.position = \"right\", dot.size = 0.01 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"plot-3d-dimensionality-reduction","dir":"Articles","previous_headings":"","what":"Plot 3D Dimensionality Reduction","title":"Visualizations","text":"Function creates 3D interactive UMAP t-SNE plot. plot saved output folder HTML file can downloaded. function designed generate 3D t-SNE visualization based given Seurat Object. output includes interactive plot dataframe containing t-SNE coordinates. function accepts several parameters, Seurat Object, metadata column color, metadata column labeling, dot size plot, legend display option, colors color variable, filename saving plot, number principal components t-SNE calculations, option save plot widget HTML file. Initially, function executes t-SNE Seurat Object obtain 3D coordinates. Subsequently, constructs dataframe Plotly visualization, incorporating t-SNE coordinates, color variable, label variable. function generates 3D scatter plot using t-SNE coordinates. Finally, function saves plot embedded Plotly image HTML file. Methodology t-Distributed Stochastic Neighbor Embedding (t-SNE) sophisticated dimensionality reduction technique frequently employed visualization high-dimensional data [1]. effectively displays relationships individual cells based gene expression profiles. compute t-SNE, algorithm constructs probability distribution representing similarities data points high-dimensional space. Subsequently, generates lower-dimensional representation, typically two three dimensions, wherein distances data points reflect similarities high-dimensional space. algorithm employs iterative process adjust positions cells lower-dimensional space, aiming minimize discrepancies original high-dimensional similarities lower-dimensional space. approach enables algorithm capture global local structures within data, effectively revealing clusters groups similar cells.","code":"FigOut=tSNE3D( object=Anno_SO$object, color.variable='SCT_snn_res.0.4', label.variable='SCT_snn_res.0.4', dot.size = 4, legend = TRUE, colors = c(\"darkblue\",\"purple4\",\"green\",\"red\",\"darkcyan\", \"magenta2\",\"orange\",\"yellow\",\"black\"), filename = \"plot.html\", save.plot = FALSE, npcs = 15 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"color-by-genes","dir":"Articles","previous_headings":"","what":"Color by Genes","title":"Visualizations","text":"function visualizes gene expression intensities provided Genes across cells. gene found dataset, Log report . Otherwise, see one plot (TSNE UMAP, choice) per gene name provided. intensity red color relative expression gene cell. Final Potomac Compatible Version: v98. Sugarloaf V1: v103. [View Methodology function visualizes expression values chosen gene protein different samples. Users can customize want visualize data, including type visualization used, size shape points, level transparency.","code":"FigOut=colorByGene( object=Anno_SO$object, samples.to.include=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), gene='Itgam', reduction.type = \"umap\", number.of.rows = 0, return.seurat.object = FALSE, color = \"red\", point.size = 1, point.shape = 16, point.transparency = 0.5, use.cite.seq.data = FALSE, assay = \"SCT\")"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"violin-plot-from-seurat-object","dir":"Articles","previous_headings":"","what":"Violin Plot from Seurat Object","title":"Visualizations","text":"Function allows generation customized violin plots visualize transcriptional changes interactions single-cell RNA-seq data, providing insights cellular heterogeneity dynamics within dataset. Methodology Function organizes data based specific groups choose Seurat Object metadata. gathers information activity levels specific genes ’re interested . can, wish, change names order groups based column specify data. feature lets tailor analysis closely needs. code also function removes odd data points might distort results, adjusts data make easier visualize jittered points overlaying boxplot displaying quantile information. , code creates violin plots, allows see activity levels genes vary within group [2]. graph customizable, letting set various options limit values vertical axis, displaying individual data points, converting scales logarithmic, showing boxplots. can choose plot looks - whether ’s laid like grid, rows, customized labels.","code":"FigOut=violinPlot( object=Anno_SO$object, assay='SCT', layer='scale.data', genes=c('Itgam','Cd38'), group='SCT_snn_res.0.4', facet_by = \"\", filter_outliers = F, outlier_low = 0.05, outlier_high = 0.95, jitter_points = TRUE, jitter_dot_size = 1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"heatmap","dir":"Articles","previous_headings":"","what":"Heatmap","title":"Visualizations","text":"Function provides comprehensive method visualizing single cell transcript /protein expression data form heatmap. data obtained Seurat object, user can specify set genes analysis. Function allows optional ordering metadata (categorical) gene/protein expression levels. Visualization customization options include color choices heatmap, addition gene protein annotations, optional arrangement metadata. Key features include: - Options adding gene protein annotations, metadata arrangement, specifying row column names. - Customizable visualization settings including font sizes rows, columns, legend, row height, heatmap colors. - Ability trim outlier data, perform z-scaling rows, set row order. Function returns heatmap plot along underlying data used generate . also allows user set seed color generation specify outlier data parameters. function particularly useful exploratory data analysis preliminary data visualization single cell studies. Methodology method, two hierarchical clustering processes performed: one rows one columns dataset unless ordered annotations. Hierarchical clustering method cluster analysis aims build hierarchy clusters. result tree-like diagram called dendrogram, similar data points (e.g., genes samples) joined together clusters “branches”, based mathematical measure similarity Euclidean Manhattan distance. heatmap produced package called ComplexHeatmap [3] presents data matrix rows represent individual genes (proteins, metabolites, etc.) columns represent different samples (e.g., tissue samples, cells, experimental conditions). color position grid corresponds expression level gene particular sample, one color representing upregulation (higher expression), another representing downregulation (lower expression), usually neutral color representing change. allows easy visual interpretation patterns correlations data.","code":"FigOut=heatmapSC( object=Anno_SO$object, sample.names=c(\"PBS\",\"ENT\",\"NHSIL12\",\"Combo\",\"CD8dep\" ), metadata='SCT_snn_res.0.4', transcripts=c('Cd163','Cd38','Itgam','Cd4','Cd8a','Pdcd1','Ctla4'), use_assay = 'SCT', proteins = NULL, heatmap.color = \"Bu Yl Rd\", plot.title = \"Heatmap\", add.gene.or.protein = FALSE, protein.annotations = NULL, rna.annotations = NULL, arrange.by.metadata = TRUE, add.row.names = TRUE, add.column.names = FALSE, row.font = 5, col.font = 5, legend.font = 5, row.height = 15, set.seed = 6, scale.data = TRUE, trim.outliers = TRUE, trim.outliers.percentage = 0.01, order.heatmap.rows = FALSE, row.order = c() )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"dot-plot-of-genes-by-metadata","dir":"Articles","previous_headings":"","what":"Dot Plot of Genes by Metadata","title":"Visualizations","text":"function creates dot plot average gene expression values set genes cell subpopulations defined metadata annotation columns. input table contains single column genes (“Genes column”) single column category (“Category labels plot” column). values “Category labels plot” column match values provided metadata function (Metadata Category Plot). plot order genes (x-axis, left right) Categories (y-axis, top bottom) order appears input table. category entries omitted plotted. Dotplot size reflect percentage cells expressing gene color reflect average expression gene. table showing values plot (either percentage cells expressing gene, average expression scaled) returned, selected user. Methodology function creates dot plot visualization gene expression metadata given dataset. uses Seurat package create plots. size dot represents percentage cells expressing particular gene (frequency), color dot indicates average gene expression level. function ensures unique valid genes categories used. categories genes found dataset, appropriate warnings issued. plot drawn option reverse x y-axes reverse order metadata categories. colors can also customized. addition plot, function provides tabular format dot plot data, can useful analysis reporting. choice returning either tables representing percent cells expressing gene average expression level genes. function can useful exploratory data analysis visualizing differences gene expression across different conditions groups cells. Seurat package Dotplot Documentation https://satijalab.org/seurat/reference/dotplot","code":"FigOut=dotPlotMet( object=Anno_SO$object, metadata='SCT_snn_res.0.4', cells=unique(Anno_SO$object$SCT_snn_res.0.4), markers=c('Itgam','Cd163','Cd38','Cd4','Cd8a','Pdcd1','Ctla4'), plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Visualizations.html","id":"compare-cell-populations","dir":"Articles","previous_headings":"","what":"Compare Cell Populations","title":"Visualizations","text":"function compares cell population composition across experimental groups (example sample, treatment, timepoints, donor cohorts) using metadata already stored Seurat object. useful clustering annotation, want quantify specific cell populations shift conditions. function supports Frequency (percent) Counts (absolute cell numbers) modes. biological comparisons unequal total cell recovery across samples, frequency mode preferred interpretation. Counts mode can useful QC yield-focused assessments. Methodology method first aggregates metadata annotation group compute percentages counts. links summaries sample-level metadata generates composition-focused barplot sample-level variability. Together, plots help distinguish overall compositional shifts replicate-level dispersion. Seurat Documentation t-SNE Analysis https://satijalab.org/seurat/reference/runtsne https://ggplot2.tidyverse.org/reference/ Complex Heatmap Reference Book https://jokergoo.github.io/ComplexHeatmap-reference/book/","code":"FigOut=compareCellPopulations( object=Anno_SO$object, metadata.table=Anno_SO$object@meta.data, annotation.column='immgen_main', group.column='Treatment', counts.type = \"Frequency\", group.order = NULL, wrap.ncols = 5 )"},{"path":"https://nidap-community.github.io/SCWorkflow/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Maggie Cam. Author. Thomas Meyer. Author, maintainer. Jing Bian. Author. Alexandra Michalowski. Author. Alexei Lobanov. Author. Philip Homan. Author. Rui . Author.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Cam M, Meyer T, Bian J, Michalowski , Lobanov , Homan P, R (2026). SCWorkflow: SCWorkflow NIDAP. R package version 1.0.2.","code":"@Manual{, title = {SCWorkflow: SCWorkflow from NIDAP}, author = {Maggie Cam and Thomas Meyer and Jing Bian and Alexandra Michalowski and Alexei Lobanov and Philip Homan and Rui He}, year = {2026}, note = {R package version 1.0.2}, }"},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"project-overview","dir":"","previous_headings":"","what":"Project Overview","title":"SCWorkflow AI Coding Instructions","text":"SCWorkflow R package single-cell RNA-seq analysis built Seurat framework. ’s designed analyzing multimodal 10x Genomics data, support CITE-Seq, cell hashing, TCR-seq data. package deployed R package Docker container use NIDAP (Palantir Foundry) Biowulf HPC environments.","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"sequential-workflow-pattern","dir":"","previous_headings":"Core Architecture","what":"Sequential Workflow Pattern","title":"SCWorkflow AI Coding Instructions","text":"Functions follow numbered workflow sequence: 1. processRawData() - Process H5 files Seurat objects 2. filterQC() - Quality control filtering 3. combineNormalize() - Merge samples, normalize, dimension reduction 4. Harmony integration (optional) - Batch correction 5. annotateCellTypes() - Automatic cell type annotation via SingleR 6. Analysis functions - DEG, visualization, clustering","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"seurat-object-as-central-data-structure","dir":"","previous_headings":"Core Architecture","what":"Seurat Object as Central Data Structure","title":"SCWorkflow AI Coding Instructions","text":"functions expect/return Seurat objects primary data containers Functions often modify objects -place return modified versions Metadata heavily used sample tracking analysis parameters Multiple assays supported: RNA, SCT (SCTransform), ADT (CITE-seq), etc.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"function-design-patterns","dir":"","previous_headings":"Core Architecture","what":"Function Design Patterns","title":"SCWorkflow AI Coding Instructions","text":"Comprehensive parameter lists: functions 15-30+ parameters sensible defaults Conditional workflows: Functions check input types (H5 vs Seurat) adapt behavior Multi-sample handling: Functions can process lists Seurat objects file paths Plotting integration: analysis functions return data visualization outputs","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"file-organization","dir":"","previous_headings":"Key Conventions","what":"File Organization","title":"SCWorkflow AI Coding Instructions","text":"R/ contains one function per file, named descriptively (e.g., Process_Raw_Data.R) Function names use camelCase: processRawData(), annotateCellTypes() File names use Snake_Case capitalization: Process_Raw_Data.R","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"parameter-naming-patterns","dir":"","previous_headings":"Key Conventions","what":"Parameter Naming Patterns","title":"SCWorkflow AI Coding Instructions","text":"object - Primary Seurat object input samples..include - Character vector sample subsetting reduction.type - Visualization method (“umap”, “tsne”, “pca”) organism - Species specification (“Human” “Mouse”) Boolean parameters use . separator: .normalize.data, draw.umap","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"documentation-standards","dir":"","previous_headings":"Key Conventions","what":"Documentation Standards","title":"SCWorkflow AI Coding Instructions","text":"Extensive roxygen2 documentation @details sections explaining workflow step numbers @importFrom statements specific function imports @export user-facing functions Parameter descriptions include defaults valid options","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"output-standards","dir":"","previous_headings":"","what":"Output standards","title":"SCWorkflow AI Coding Instructions","text":"Generate R CMD check friendly code. Use roxygen2 exported functions. Add utils::globalVariables() NSE variables. Prefer explicit namespaces (dplyr::, ggplot2::). Avoid side effects tests.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"template-conventions","dir":"","previous_headings":"Output standards","what":"Template conventions","title":"SCWorkflow AI Coding Instructions","text":"JSON templates live inst/extdata/NIDAPjson/. JSON source--truth arguments, defaults, behavior. orderedMustacheKeys defines argument order.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"testing-structure","dir":"","previous_headings":"Output standards","what":"Testing Structure","title":"SCWorkflow AI Coding Instructions","text":"Comprehensive tests/testthat/ unit tests integration tests fixtures/ directory contains real Seurat objects testing Helper functions helper-*.R files test setup Tests follow naming convention: test-Function_Name.R","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"deliverables","dir":"","previous_headings":"Output standards","what":"Deliverables","title":"SCWorkflow AI Coding Instructions","text":"Update CHANGELOG.md, decision_log.md, docs/session_notes.md. Add testthat tests generated function.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"docker-development","dir":"","previous_headings":"Output standards","what":"Docker Development","title":"SCWorkflow AI Coding Instructions","text":"Base image: nciccbr/ccbr_ubuntu_22.04:v4 Conda-based R environment (R 4.3.2) Multi-stage build supporting development production Container designed HPC environments (Biowulf) cloud platforms (NIDAP)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"cicd-integration","dir":"","previous_headings":"Output standards","what":"CI/CD Integration","title":"SCWorkflow AI Coding Instructions","text":"GitFlow-based R package workflow via gitflow-R-action.yml Automatic NIDAP deployment successful builds pkgdown documentation generation Docker image building deployment","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"bioconductorseurat-ecosystem","dir":"","previous_headings":"Critical Dependencies and Integration Points","what":"Bioconductor/Seurat Ecosystem","title":"SCWorkflow AI Coding Instructions","text":"Seurat 4.1.1+: Core framework single-cell analysis SingleR: Automated cell type annotation MAST/limma/edgeR: Differential expression analysis Harmony: Batch effect correction integration","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"external-api-integration","dir":"","previous_headings":"Critical Dependencies and Integration Points","what":"External API Integration","title":"SCWorkflow AI Coding Instructions","text":"palantir_api_call.R: Custom integration Palantir Foundry APIs Designed NIDAP cloud environment deployment Handles authentication data transfer patterns specific NIH infrastructure","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"memory-management-patterns","dir":"","previous_headings":"Critical Dependencies and Integration Points","what":"Memory Management Patterns","title":"SCWorkflow AI Coding Instructions","text":"cell.count.limit parameters (default: 35000) trigger memory conservation .var.genes option reduces memory footprint large datasets SCTransform normalization levels: sample-wise vs merged strategies","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"data-type-handling","dir":"","previous_headings":"Common Debugging Areas","what":"Data Type Handling","title":"SCWorkflow AI Coding Instructions","text":"Functions check H5 vs Seurat object inputs: (input, \"Seurat\") Cell filtering can drastically reduce object sizes - verify cell counts Assay availability: functions may require specific assays (RNA, SCT, ADT)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"visualization-rendering","dir":"","previous_headings":"Common Debugging Areas","what":"Visualization Rendering","title":"SCWorkflow AI Coding Instructions","text":"Plot functions return Seurat objects plot objects reduction.type must match available reductions object Color palettes automatically generated can overridden","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"environment-specific-issues","dir":"","previous_headings":"Common Debugging Areas","what":"Environment-Specific Issues","title":"SCWorkflow AI Coding Instructions","text":"Package designed local R containerized environments File path handling differs NIDAP, Biowulf, local development functions environment-specific conditional logic","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/copilot-instructions.html","id":"quick-start-for-ai-agents","dir":"","previous_headings":"","what":"Quick Start for AI Agents","title":"SCWorkflow AI Coding Instructions","text":"working codebase: 1. Always check input Seurat object: class(object) 2. Verify required reductions exist: object@reductions 3. Check available assays: names(object@assays) 4. Use str(object@meta.data) understand metadata structure 5. Test functions start small datasets tests/testthat/fixtures/","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/decision_log.html","id":null,"dir":"","previous_headings":"","what":"Decision Log","title":"Decision Log","text":"document tracks major design decisions SCWorkflow package.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/decision_log.html","id":"id_2026-02-17-comparecellpopulations-function","dir":"","previous_headings":"","what":"2026-02-17: compareCellPopulations() Function","title":"Decision Log","text":"Context: Need visualizing cell population distributions across experimental groups (treatments, timepoints, conditions). Decision: Implemented dual visualization approach alluvial flow plots box plots. Rationale: - Alluvial flow plots show proportional relationships across groups maintaining visibility sample composition - Box plots provide statistical distribution view individual data points - visualizations complement : flows overall trends, boxes statistical variance - Flexible frequency vs. counts mode supports different analytical needs Implementation Details: - Uses ggalluvial flow visualizations (Sankey-style plots) - ggpubr box plot styling statistical comparisons - Internal helper createAnnoTable() aggregates frequencies/counts sample - Supports custom color palettes auto-generates RColorBrewer - Handles group ordering controlled presentation Alternatives Considered: 1. Single bar plot visualization - rejected insufficient showing sample-level variation 2. Stacked area plots - rejected due difficulty comparing non-adjacent categories 3. Separate samples flow plots - rejected due visual clutter many samples Trade-offs: - Alluvial plots can busy many cell types (>10-15) - Box plots require sufficient samples per group meaningful statistics - Two separate plots increase figure space requirements provide complementary insights Generated : JSON template Compare_Cell_Populations.code-template.json using json2r.prompt.md instructions","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/index.html","id":null,"dir":"","previous_headings":"","what":"SCWorkflow from NIDAP","title":"SCWorkflow from NIDAP","text":"R package Single Cell analysis Single Cell Workflow streamlines analysis multimodal Single Cell RNA-Seq data produced 10x Genomics. can run docker container, biologists, user-friendly web-based interactive notebooks (NIDAP, Palantir Foundry). Much based Seurat workflow Bioconductor, supports CITE-Seq data. incorporates cell identification step (ModScore) utilizes module scores obtained Seurat also includes Harmony batch correction.","code":""},{"path":[]},{"path":"https://nidap-community.github.io/SCWorkflow/index.html","id":"sequential-workflow","dir":"","previous_headings":"Key Functions","what":"Sequential Workflow","title":"SCWorkflow from NIDAP","text":"processRawData() - Process H5 files Seurat objects filterQC() - Quality control filtering combineNormalize() - Merge samples, normalize, dimension reduction Harmony integration (optional) - Batch correction annotateCellTypes() - Automatic cell type annotation via SingleR","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/index.html","id":"analysis--visualization","dir":"","previous_headings":"Key Functions","what":"Analysis & Visualization","title":"SCWorkflow from NIDAP","text":"compareCellPopulations() - Compare cell population distributions across groups degGeneExpressionMarkers() - Differential expression analysis reclusterSeuratObject() / reclusterFilteredSeuratObject() - Subset re-cluster colorByGene(), heatmapSC(), violinPlot_mod() - Visualization functions plotMetadata(), dotPlotMet() - Metadata visualization documentation see detailed Docs Website Future Developments include addition support multiomics (TCR-Seq, ATAC-Seq) single cell data integration spatial transcriptomics data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html","id":null,"dir":"Reference","previous_headings":"","what":"Aggregate Counts (Pseudobulk) — aggregateCounts","title":"Aggregate Counts (Pseudobulk) — aggregateCounts","text":"Compute pseudobulk expression averaging expression across groups defined one metadata columns, return tidy table.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Aggregate Counts (Pseudobulk) — aggregateCounts","text":"","code":"aggregateCounts(object, var.group, slot)"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Aggregate Counts (Pseudobulk) — aggregateCounts","text":"object Seurat-class object. var.group Character vector metadata column names used define pseudobulk groups. multiple columns supplied, interaction columns defines groups. slot Character name assay data layer passed AverageExpression() (e.g., \"data\", \"counts\", \"scale.data\").","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Aggregate Counts (Pseudobulk) — aggregateCounts","text":"data.frame pseudobulk expression columns Gene followed one column per pseudobulk group. Column names sanitized contain alphanumeric/underscore characters.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Aggregate Counts (Pseudobulk) — aggregateCounts","text":"Uses Seurat's AverageExpression() SCT assay compute group-wise average expression feature. Also produces bar plot (via ggplot2/plotly) showing number cells per pseudobulk group warns group contains one cell.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":null,"dir":"Reference","previous_headings":"","what":"Annotating cell types using SingleR module — annotateCellTypes","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"SingleR automatic annotation method single-cell RNA sequencing (scRNAseq) data (Aran et al. 2019). Given reference dataset samples (single-cell bulk) known labels, labels new cells test dataset based similarity reference.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"","code":"annotateCellTypes( object, species = \"Mouse\", reduction.type = \"umap\", legend.dot.size = 2, do.finetuning = FALSE, local.celldex = NULL, use.clusters = NULL )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"object Object class Seurat (combined Seurat Object PC reduction performed) species species samples (\"Human\" \"Mouse\"). Default \"Mouse\" reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\") legend.dot.size size colored dots chart legend. Default 2 .finetuning Performs SingleR fine-tuning function. Default FALSE local.celldex Provide local copy CellDex library. Default NULL use.clusters Provide cluster identities cell. Default NULL","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"Seurat object additional metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Annotating cell types using SingleR module — annotateCellTypes","text":"function Step 5 basic Single-Cell RNA-seq workflow. starting point downstream visualization, subsetting, analysis. takes combined seurat object input, one created Combined&Renormalized function end Filter&QC Path","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"template appends sample metadata input table Seurat object, creating new metadata columns labeling cells sample new metadata values.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"","code":"appendMetadataToSeuratObject(object, metadata.to.append, sample.name.column)"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"object input Seurat Object list Seurat Objects wish add metadata. metadata..append table sample metadata want append already-existing metadata within input Seurat Object(s). sample.name.column column input metadata..append table contains sample names matching orig.idents input object(s).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"Function returns Seurat Object Objects additional metadata columns containing appended metadata now annotated cell sample name (orig.ident).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Append Metadata to Seurat Object. — appendMetadataToSeuratObject","text":"template appends sample metadata input table Seurat object, creating new metadata columns labeling cells sample new metadata values.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":null,"dir":"Reference","previous_headings":"","what":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"see one plot (TSNE UMAP, choice) per gene name provided. intensity red color relative expression gene cell","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"","code":"colorByGene( object, samples.to.include, gene, reduction.type = \"umap\", number.of.rows = 0, return.seurat.object = FALSE, color = \"red\", point.size = 1, point.shape = 16, point.transparency = 0.5, use.cite.seq.data = FALSE, assay = \"SCT\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"object Object class Seurat samples..include Samples included analysis gene Genes like visualize reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"umap\" number..rows number rows want arrange plots return.seurat.object Set FALSE want geneset (Seurat object) returned color color want use heatmap (default \"red\") point.size size points representing cell visualization. Default 1 point.shape code point shape (R \"pch\" argument). Default 16 point.transparency Set transparency. Default 0.5 use.cite.seq.data TRUE like plot Antibody clusters CITEseq instead scRNA. assay Select Assay Plot (default SCT)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"Seurat object additional metadata gene table plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Visualize gene expression for provided Genes across your cells as a heatmap — colorByGene","text":"function must run downstream Sample Names function, well provided combined Seurat Object one produced SingleR Cell Annotation function","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":null,"dir":"Reference","previous_headings":"","what":"Color by Gene List — colorByMarkerTable","title":"Color by Gene List — colorByMarkerTable","text":"Returns panel reduction plots colored marker expression","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color by Gene List — colorByMarkerTable","text":"","code":"colorByMarkerTable( object, samples.subset, samples.to.display, manual.genes = c(), marker.table, cells.of.interest, protein.presence = FALSE, assay = \"SCT\", slot = \"scale.data\", reduction.type = \"umap\", point.transparency = 0.5, point.shape = 16, cite.seq = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color by Gene List — colorByMarkerTable","text":"object Seurat-class object samples.subset List samples subset data samples..display List samples depict dimension plot, samples list colored gray background manual.genes additional list genes display marker.table Table marker genes celltype (column names table), append \"_prot\" \"_neg\" proteins negative markers cells..interest Celltypes geneset_dataframe screen protein.presence Set TRUE protein markers used assay Assay extract gene expression data (Default: \"SCT\") slot Slot within assay extract expression data (Default: \"scale.data\") reduction.type Choose among tsne, umap, pca (Default: \"umap\") point.transparency Set lower values see points dimension plot (Default: 0.5) point.shape Change shape points visualization (Default: 16) cite.seq Set TRUE use CITE-seq embedding dimension reduction","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color by Gene List — colorByMarkerTable","text":"arranged grob dimension reduction plots colored individual marker expression","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Color by Gene List — colorByMarkerTable","text":"Takes gene table inputted user, displays panel tsne, umap, pca colored marker expression. panel organized similar format gene table, omission genes found data","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color by Gene List — colorByMarkerTable","text":"","code":"if (FALSE) { # \\dontrun{ colorByMarkerTable( object = seurat, samples.subset = c(\"mouse1\", \"mouse2\"), samples.to.display = c(\"mouse1\"), marker.table = immuneCellMarkers, cells.of.interest = c(\"CD4\", \"Treg\") ) } # }"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":null,"dir":"Reference","previous_headings":"","what":"Combine & Normalize — combineNormalize","title":"Combine & Normalize — combineNormalize","text":"Scales Normalizes data, Combines samples, runs Dimensional Reduction, Clusters, returns combined Seurat Object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Combine & Normalize — combineNormalize","text":"","code":"combineNormalize( object, npcs = 30, SCT.level = \"Merged\", vars.to.regress = NULL, nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 1e+05, selection.method = \"vst\", only.var.genes = FALSE, draw.umap = TRUE, draw.tsne = TRUE, seed.for.pca = 42, seed.for.tsne = 1, seed.for.umap = 42, clust.res.low = 0.2, clust.res.high = 1.2, clust.res.bin = 0.2, methods.pca = \"none\", var.threshold = 0.1, pca.reg.plot = FALSE, jackstraw = FALSE, jackstraw.dims = 5, exclude.sample = NULL, cell.count.limit = 35000, reduce.so = FALSE, project.name = \"scRNAProject\", cell.hashing.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Combine & Normalize — combineNormalize","text":"object list seurat objects sample. npcs Select number principal components analysis. Please see elbow plot previous template figure number PCs explains variance cut-. example, elbow plot point (15,0.02), means 15 PCs encapsulate 98% variance data.(Default: 30) SCT.level Select stage apply SCtransform nomalization. Merged: Merge samples apply SCTransfrom merged object. Sample: Apply SCTranform individual samples merge single Seurat object. (Default: \"Merged\") vars..regress Subtract (‘regress ’) source heterogeneity data. example, Subtract mitochondrial effects, input \"percent.mt.\" Options: percent.mt, nCount.RNA, S.Score, G2M.Score, CC.Difference. (Default: NULL) nfeatures Number variable features. (Default: 2000) low.cut Set low cutoff calculate feature means Seurat::FindVariableFeatures. (Default: 0.1) high.cut Set high cutoff calculate feature means Seurat::FindVariableFeatures. (Default: 8) low.cut.disp Set low cutoff calculate feature dispersions Seurat::FindVariableFeatures.(Default: 1) high.cut.disp Set high cutoff calculate feature dispersions Seurat::FindVariableFeatures. (Default: 100000) selection.method Method choose top variable features. Options: vst, mean.var.plot, dispersion. (Default: 'vst') .var.genes dataset larger ~40k filtered cells, set TRUE. TRUE, variable genes available downstream analysis. dataset larger number cells set \"Conserve Memory Max Cell Limit\" \"Variable Genes\" automatically set TRUE. (Default: FALSE) draw.umap TRUE, draw UMAP plot. (Default: TRUE) draw.tsne TRUE, draw TSNE plot. (Default: TRUE) seed..pca Set random seed PCA calculation. (Default: 42) seed..tsne Set random seed TSNE calculation. (Default: 1) seed..umap Set random seed UMAP calculation. (Default: 42) clust.res.low Select minimum resolution clustering plots. lower set , FEWER clusters generated. (Default: 0.2) clust.res.high Select maximum resolution clustering. higher set number, clusters produced. (Default: 1.2) clust.res.bin Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. (Default: 0.2) methods.pca Methods available: Marchenko-Pastur: use eigenvalue null upper bound URD, Elbow: Find threshold percent change variation consecutive PCs less X% (set var.threshold). none selected (regardless selections) plot generated. (Default: 'none') var.threshold Elbow method, set percent change threshold variation consecutive PCs. (Default: 0.1) pca.reg.plot Opt visualize effect regression variables PCA plot. plot create PCA plots without regression variables applied can used help determine regression necessary properly normalize data. (Default: FALSE) jackstraw Opt visualize data Jackstraw plot. Jackstraw plot can add description elbow plot compute intensive process may suitable larger datasets. (Default: FALSE) jackstraw.dims Recommended max 10.(Default: 5) exclude.sample Exclude unwanted samples merge step. Include sample names removed. want exclude several samples, separate sample number comma (e.g. sample1,sample2,sample3,sample4). (Default: NULL) cell.count.limit total number cell exceeds limit conserve memory option SCTransform used return Variable Genes. (Default: 35000) reduce.Remove additional assays input Seurat Objects except original RNA Assay. option used input Seurat Object created outside NIDAP pipeline. (Default: FALSE) project.name Add project name Seurat object metadata. (Default: 'scRNAProject') cell.hashing.data Set \"TRUE\" using cell-hashed data. (Default: FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Combine & Normalize — combineNormalize","text":"Seurat Objects QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Combine & Normalize — combineNormalize","text":"Step 3 basic Single-Cell RNA-seq workflow. template summarize multi-dimensionality data set \"principal components\" allow easier analysis.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":null,"dir":"Reference","previous_headings":"","what":"Compare Cell Populations — compareCellPopulations","title":"Compare Cell Populations — compareCellPopulations","text":"Compare cell population distributions across different groups using bar plots box plots. Creates visualizations showing cell type frequencies counts across user-defined groupings.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Compare Cell Populations — compareCellPopulations","text":"","code":"compareCellPopulations( object, metadata.table, annotation.column, group.column, sample.column = \"orig.ident\", counts.type = \"Frequency\", group.order = NULL, seurat.object.filename = \"seurat_object.rds\", wrap.ncols = 5 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Compare Cell Populations — compareCellPopulations","text":"object Seurat object containing single-cell data metadata.table data.frame containing metadata (typically Seurat object's meta.data slot) annotation.column Character string specifying metadata column containing cell type annotations summarize bar plot group.column Character string specifying metadata column defining groups compare (e.g., treatment conditions) sample.column Character string specifying metadata column containing sample identifiers. Default \"orig.ident\" counts.type Character string specifying plot data type: \"Frequency\" (percentages) \"Counts\" (absolute numbers). Default \"Frequency\" group.order Character vector specifying order groups plots. NULL, uses natural order data. Default NULL seurat.object.filename Character string Seurat object filename. Default \"seurat_object.rds\" wrap.ncols Integer specifying number columns facet wrapping box plots. Default 5","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Compare Cell Populations — compareCellPopulations","text":"list containing: Plots - list two ggplot objects: Barplot - Stacked bar plot alluvial flows Boxplot - Faceted box plots cell type (counts.type=\"Frequency\") Table - data.frame cell counts percentages","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Compare Cell Populations — compareCellPopulations","text":"function generates comparative visualizations cell populations Seurat object. can display data either frequency percentages absolute counts, creates stacked bar plots (alluvial flow connections) grouped box plots comparison across samples conditions.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Compare Cell Populations — compareCellPopulations","text":"","code":"if (FALSE) { # \\dontrun{ # Compare cell populations by treatment group results <- compareCellPopulations( object = seurat_obj, metadata.table = seurat_obj@meta.data, annotation.column = \"cell_type\", group.column = \"treatment\", sample.column = \"sample_id\", counts.type = \"Frequency\" ) # Display plots plot(results$Plots$Barplot) plot(results$Plots$Boxplot) # View summary table head(results$Table) } # }"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":null,"dir":"Reference","previous_headings":"","what":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"function performs DEG (differential expression genes) analysis merged Seurat object identify expression markers different groups cells (contrasts).","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"","code":"degGeneExpressionMarkers( object, samples, contrasts, parameter.to.test = \"orig_ident\", test.to.use = \"MAST\", log.fc.threshold = 0.25, use.spark = FALSE, assay.to.use = \"SCT\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"object Seurat-class object samples Samples included analysis contrasts Contrasts \"-B\" format parameter..test Select metadata column like use perform DEG analysis construct contrasts . Default \"orig_ident\" test..use kind algorithm like use perform DEG analysis. Default MAST algorithm (wilcox,bimod,roc,t,negbinom,poisson,LR,MAST,DESeq2). log.fc.threshold minimum log fold-change contrasts like analyze. Default 0.25 use.spark Opt use Spark parallelize computations. Default FALSE assay..use assay use DEG analysis. Default SCT, can use linearly scaled data selecting RNA instead","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"dataframe DEG.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"DEG (Gene Expression Markers) — degGeneExpressionMarkers","text":"recommended input merged Seurat object SingleR annotations, along associated sample names metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":null,"dir":"Reference","previous_headings":"","what":"Dotplot of Gene Expression by Metadata — dotPlotMet","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"function uses Dotplot function Seurat plots average gene expression values percent expressed set genes.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"","code":"dotPlotMet( object, metadata, cells, markers, plot.reverse = FALSE, cell.reverse.sort = FALSE, dot.color = \"darkblue\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"object Seurat Object metadata Metadata column Seurat Object plot cells Vector metadata category factors plot found metadata column. Order plotting follow exact order entered. markers Vector genes plot. Order plotting follow exact order entered plot.reverse TRUE, set metadata categories x-axis genes y-axis (default FALSE) cell.reverse.sort TRUE, Reverse plot order metadata category factors (default FALSE) dot.color Dot color (default \"dark blue\")","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"Dotplot markers cell types.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dotplot of Gene Expression by Metadata — dotPlotMet","text":"method provides dotplot showing percent frequency gene-positive cells size dot degree expression color dot.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"method provides visualization coexpression 2 genes (proteins) additional methods filtering cells gene expression values thresholds set one markers. method allows filtering (optional) Seurat object using manually set expression thresholds.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"","code":"dualLabeling( object, samples, marker.1, marker.2, marker.1.type = \"SCT\", marker.2.type = \"SCT\", data.reduction = \"both\", point.size = 0.5, point.shape = 16, point.transparency = 0.5, add.marker.thresholds = TRUE, marker.1.threshold = 0.5, marker.2.threshold = 0.5, filter.data = TRUE, marker.1.filter.direction = \"greater than\", marker.2.filter.direction = \"greater than\", apply.filter.1 = TRUE, apply.filter.2 = TRUE, filter.condition = TRUE, parameter.name = \"My_CoExp\", trim.marker.1 = FALSE, trim.marker.2 = FALSE, pre.scale.trim = 0.99, display.unscaled.values = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"object Seurat-class object samples Samples included analysis marker.1 First gene/marker coexpression analysis marker.2 Second gene/marker coexpression analysis marker.1.type Slot use first marker. Choices \"SCT\", \"protein\",\"HTO\" (default \"SCT\") marker.2.type Slot use second marker. Choices \"SCT\", \"protein\",\"HTO\" (default \"SCT\") data.reduction Dimension Reduction method use image. Options \"umap\" \"tsne\" (default \"umap\") point.size Point size image (default 0.5) point.shape Point shape image (default 16) point.transparency Point transparency image (default 0.5) add.marker.thresholds Add marker thresholds plot (default FALSE) marker.1.threshold Threshold set first marker (default 0.5) marker.2.threshold Threshold set second marker (default 0.5) filter.data Add new parameter column metadata annotating marker thresholds applied (default TRUE) apply.filter.1 TRUE, apply first filter (default TRUE) apply.filter.2 TRUE, apply second filter (default TRUE) filter.condition TRUE, apply filters 1 2 take intersection. FALSE, apply filters take union. parameter.name Name metadata column new marker filters (Default \"Marker\") trim.marker.1 Trim top bottom percentile marker 1 signal pre-scale trim values () remove extremely low high values (Default TRUE) trim.marker.2 Trim top bottom percentile marker 2 signal pre-scale trim values () remove extremely low high values (Default TRUE) pre.scale.trim Set trimming percentile values (Defalut 0.99) display.unscaled.values Set TRUE want view unscaled gene/protein expression values (Default FALSE) M1.filter.direction Annotate cells gene expression levels marker 1 using marker 1 threshold. Choices \"greater \" \"less \" (default \"greater \") M2.filter.direction Annotate cells gene expression levels marker 2 using marker 2 threshold. Choices \"greater \" \"less \" (default \"greater \") density.heatmap Creates additional heatmap showing density distribution cells. (Default FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plot coexpression of 2 markers using transcript and/or protein expression values — dualLabeling","text":"seurat object optional additional metadata cells positive negative gene markers, coexpression plot contingency table showing sum cells filtered.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter & QC Samples — filterQC","title":"Filter & QC Samples — filterQC","text":"Filters cells Genes sample generates QC Plots evaluate data filtering.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter & QC Samples — filterQC","text":"","code":"filterQC( object, min.cells = 20, filter.vdj.genes = F, nfeature.limits = c(NA, NA), mad.nfeature.limits = c(5, 5), ncounts.limits = c(NA, NA), mad.ncounts.limits = c(5, 5), mitoch.limits = c(NA, 25), mad.mitoch.limits = c(NA, 3), complexity.limits = c(NA, NA), mad.complexity.limits = c(5, NA), topNgenes.limits = c(NA, NA), mad.topNgenes.limits = c(5, 5), n.topgnes = 20, do.doublets.fitler = T, plot.outliers = \"None\", group.column = NA, nfeatures = 2000, low.cut = 0.1, high.cut = 8, low.cut.disp = 1, high.cut.disp = 1e+05, selection.method = \"vst\", npcs = 30, vars_to_regress = NULL, seed.for.PCA = 42, seed.for.TSNE = 1, seed.for.UMAP = 42 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter & QC Samples — filterQC","text":"object list seurat objects sample. min.cells Filter genes found less number cells. E.g. Setting 20 remove genes found fewer 3 cells sample. (Default: 20) filter.vdj.genes FALSE remove VDJ genes scRNA transcriptome assay. prevent clustering bias T-cells clonotype. recommended also TCR-seq. (Default: FALSE) nfeature.limits Filter cells number genes found cell exceed selected lower upper limits. Usage c(lower limit, Upper Limit). E.g. setting c(200,1000) remove cells fewer 200 genes 1000 genes sample. (Default: c(NA, NA)) mad.nfeature.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated median gene number cells sample. Usage c(lower limit, Upper Limit) E.g. setting c(3,5) remove cells 3 absolute deviations less median 5 absolute deviations greater median. (Default: c(5,5)) ncounts.limits Filter cells total number molecules (umi) detected within cell exceed selected limits. Usage c(lower limit, Upper Limit). E.g. setting c(200,100000) remove cells fewer 200 greater 100000 molecules. (Default: c(NA, NA)) mad.ncounts.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated median number molecules cells sample. Usage c(lower limit, Upper Limit) E.g. setting c(3,5) remove cells 3 absolute deviations less median 5 absolute deviations greater median. (Default: c(5,5)) mitoch.limits Filter cells whose proportion mitochondrial genes exceed selected lower upper limits. Usage c(lower limit, Upper Limit). E.g. setting c(0,8) set lower limit removes cells 8% mitochondrial RNA. (Default: c(NA,25)) mad.mitoch.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated Median percentage mitochondrial RNA cells sample. Usage c(lower limit, Upper Limit). E.g. setting c(NA,3) set lower limit remove cells 3 absolute deviations greater median. (Default: c(NA,3)) complexity.limits Complexity represents Number genes detected per UMI. genes detected per UMI, complex data. Filter cells whose Complexity exceed selected lower upper limits. Cells high number UMIs low number genes dying cells, also represent population low complexity cell type (.e red blood cells). suggest set lower limit 0.8 samples suspected RBC contamination. Usage c(lower limit, Upper Limit). E.g. setting c(0.8,0) set upper limit removes cells complexity less 0.8. (Default: c(NA,NA)) mad.complexity.limits Set filter limits based many Median Absolute Deviations outlier cell . Calculated Median complexity cells sample. Usage c(lower limit, Upper Limit). E.g. setting c(5,NA) set upper limit remove cells 5 absolute deviations less median. (Default: c(5,NA)) topNgenes.limits Filter Cells based percentage total counts top N highly expressed genes. Outlier cells high percentage counts just genes removed. considerations outlined \"complexity.limits\" taken filter. Usage c(lower limit, Upper Limit). E.g. setting c(NA,50) set lower limit remove cells greater 50% reads top N genes. (Default: c(NA,NA)) n.topgnes Select number top highly expressed genes used calculate percentage reads found genes. E.g. value 20 calculates percentage reads found top 20 highly expressed Genes. (Default: 20) .doublets.fitler Use scDblFinder identify remove doublet cells. Doublets defined two cells sequenced cellular barcode, example, captured droplet. (Default: TRUE) mad.topNgenes.limitsSet Filter limits based many Median Absolute Deviations outlier cell . Calculated Median percentage counts top N Genes. Usage c(lower limit, Upper Limit). E.g. setting c(5,5) remove cells 5 absolute deviations greater 5 absolute deviations less median percentage. (Default: c(5,5))","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter & QC Samples — filterQC","text":"Seurat Object QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterQC.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter & QC Samples — filterQC","text":"Step 2 basic Single-Cell RNA-seq workflow. Multiple cell gene filters can selected remove poor quality data noise. Workflows can use downstream Seurat Object. tool typically second step Single Cell Workflow.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"Filter subset Seurat object based metadata column","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"","code":"filterSeuratObjectByMetadata( object, samples.to.include, sample.name, category.to.filter, values.to.filter, keep.or.remove = TRUE, greater.less.than = \"greater than\", seed = 10, cut.off = 0.5, legend.position = \"top\", reduction = \"umap\", plot.as.interactive.plot = FALSE, legend.symbol.size = 2, colors = c(\"aquamarine3\", \"salmon1\", \"lightskyblue3\", \"plum3\", \"darkolivegreen3\", \"goldenrod1\", \"burlywood2\", \"gray70\", \"firebrick2\", \"steelblue\", \"palegreen4\", \"orchid4\", \"darkorange1\", \"yellow\", \"sienna\", \"palevioletred1\", \"gray60\", \"cyan4\", \"darkorange3\", \"mediumpurple3\", \"violetred2\", \"olivedrab\", \"darkgoldenrod2\", \"darkgoldenrod\", \"gray40\", \"palegreen3\", \"thistle3\", \"khaki1\", \"deeppink2\", \"chocolate3\", \"paleturquoise3\", \"wheat1\", \"lightsteelblue\", \"salmon\", \"sandybrown\", \"darkolivegreen2\", \"thistle2\", \"gray85\", \"orchid3\", \"darkseagreen1\", \"lightgoldenrod1\", \"lightskyblue2\", \"dodgerblue3\", \"darkseagreen3\", \"forestgreen\", \"lightpink2\", \"mediumpurple4\", \"lightpink1\", \"thistle\", \"navajowhite\", \"lemonchiffon\", \"bisque2\", \"mistyrose\", \"gray95\", \"lightcyan3\", \"peachpuff2\", \"lightsteelblue2\", \"lightyellow2\", \"moccasin\", \"gray80\", \"antiquewhite2\", \"lightgrey\"), dot.size = 0.1, number.of.legend.columns = 1, dot.size.highlighted.cells = 0.5, use.cite.seq.data = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"object dataset containing SingleR annotated/merged seurat object samples..include Select samples include sample.name Sample Name Column category..filter kind metadata want subset . one column Metadata table values..filter One values want filter keep..remove TRUE filter selected values, FALSE filter selected values. Default TRUE greater.less.Decide want keep cells threshold. Default \"greater \" seed Set seed colors cut.cut-want use greater /less filter. Default os 0.5 legend.position Select \"none\" legend takes much space plot. Default \"top\" reduction kind clustering visualization like use summary plot (umap, tsne, pca, protein_tsne, protein_umap, protein_pca). Default \"umap\" plot..interactive.plot TRUE interactive, FALSE static legend.symbol.size legend symbol size. Default 2 colors User-selected colors palette 62 unique colors ColorBrewer. dot.size Size dots TSNE/UMAP projection plot. Default 0.1 number..legend.columns Default 1. legend long, provide legend columns dot.size.highlighted.cells Dot size cells -filter plot highlighted. Default 0.5 use.cite.seq.data TRUE like plot Antibody clusters CITEseq instead scRNA.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"subset Seurat object","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter Seurat Object by Metadata — filterSeuratObjectByMetadata","text":"downstream template loaded Step 5 pipeline (SingleR Annotations Seurat Object)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":null,"dir":"Reference","previous_headings":"","what":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"method provides heatmap single cell data Seurat object given set genes optionally orders various metadata /gene protein expression levels. Method based ComplexHeatmap::pheatmap","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"","code":"heatmapSC( object, sample.names, metadata, transcripts, use_assay = \"SCT\", proteins = NULL, heatmap.color = \"Bu Yl Rd\", plot.title = \"Heatmap\", add.gene.or.protein = FALSE, protein.annotations = NULL, rna.annotations = NULL, arrange.by.metadata = TRUE, add.row.names = TRUE, add.column.names = FALSE, row.font = 5, col.font = 5, legend.font = 5, row.height = 15, set.seed = 6, scale.data = TRUE, trim.outliers = TRUE, trim.outliers.percentage = 0.01, order.heatmap.rows = FALSE, row.order = c() )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"object Seurat-class object sample.names Sample names metadata Metadata column plot transcripts Transcripts plot proteins Proteins plot (default NULL) heatmap.color Color heatmap. Choices \"Cyan Mustard\", \"Blue Red\", \"Red Vanilla\", \"Violet Pink\", \"Bu Yl Rd\", \"Bu Wt Rd\" (default \"Bu Yl Rd\") plot.title Title plot (default \"Heatmap\") add.gene..protein Add Gene protein annotations (default FALSE) protein.annotations Protein annotations add (defulat NULL) rna.annotations Gene annotations add (default NULL) arrange..metadata Arrange metadata (default TRUE) add.row.names Add row names (default TRUE) add.column.names Add column names (default FALSE) row.font Font size rows (default 5) col.font Font size columns (default 5) legend.font Font size legend (default 5) row.height Height row. NA, adjust plot size (default 15) set.seed Seed colors (default 6) scale.data Perform z-scaling rows (default TRUE) trim.outliers Remove outlier data (default TRUE) trim.outliers.percentage Set outlier percentage (default 0.01) order.heatmap.rows Order heatmap rows (default FALSE) row.order Gene vector set row order. NULL, use cluster order (default NULL)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Heatmap of transcript and/or protein expression values in single cells — heatmapSC","text":"function returns heatmap plot data underlying heatmap.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/launch_module_score_app.html","id":null,"dir":"Reference","previous_headings":"","what":"Launch the ModuleScore Shiny App — launch_module_score_app","title":"Launch the ModuleScore Shiny App — launch_module_score_app","text":"Opens interactive app explore ModuleScores adjust thresholds.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/launch_module_score_app.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Launch the ModuleScore Shiny App — launch_module_score_app","text":"","code":"launch_module_score_app()"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/launch_module_score_app.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Launch the ModuleScore Shiny App — launch_module_score_app","text":"result shiny::runApp()","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":null,"dir":"Reference","previous_headings":"","what":"Compute ModScore — modScore","title":"Compute ModScore — modScore","text":"Returns Seurat-class object metadata containing ModuleScores Likely_CellType calls","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Compute ModScore — modScore","text":"","code":"modScore( object, marker.table, group_var = \"orig.ident\", use_columns, ms_threshold, general.class, multi.lvl = FALSE, lvl.df = NULL, reduction = \"tsne\", nbins = 10, gradient.ft.size = 6, violin.ft.size = 6, step.size = 0.1 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Compute ModScore — modScore","text":"object Seurat-class object marker.table table lists gene/protein markers categories cells want detect. table formatted cell type(s) column names, marker(s) entries column. Requires SCT@data present within Seurat Object use_columns Select specific columns within Marker Table analyze. Markers unselected columns included. ms_threshold Allow user-specified module score thresholds. Provide one threshold Celltype included \"use_columns\" parameter. Celltype, provide Celltype name, space, type threshold Celltype. threshold must number 0.0 1.0. E.g. \"Tcells 0.2\", \"Macrophages 0.37\". best results, follow steps: (1) Set thresholds 0.0 preliminary view data. (2) Use resulting visualizations estimate correct thresholds Celltype. (3) Adjust thresholds based saw visualizations. (4) Re-run template new thresholds. (5) Review visualizations repeat Steps 1-5 think thresholds can improved. general.class Select classes (.e. columns) Marker Table represent General Classes. general class class subtype another class. multi.lvl set True multiple subclasses cells like classify. Note: requires manual entry table columns specifying levels comparisons. column table represent one level subclass within General Classes. value within column two Class names separated dash (-) showing General--SubClass relationship. Example: classify T-cells attempt classify T-cells either CD8 CD4 T-cells, write column named \"Level_1\", add \"T_cell-CD8_T\" \"T_cell-CD4_T\" column. Note example, \"T_cell\" General Class \"CD8_T\" \"CD4_T\" . lvl.df Dataframe containing levels information well parent-children designation (E.g. Tcells-CD4). Required Multi Level Classification turned .#' reduction Choose among tsne, umap, pca (Default: tsne) nbins Number bins storing control features analyzing average expression (Default: 10) gradient.ft.size Set size axis labels gradient density plot ModuleScore distribution (Default: 6) violin.ft.size Set size axis labels violin plot ModuleScore distribution (Default: 6) step.size Set step size distribution plots (Default: 0.1)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Compute ModScore — modScore","text":"List containing annotated dimension plot ModuleScore distribution cell marker gene, Seurat Object cell classification metadata","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Compute ModScore — modScore","text":"Analyzed features binned based averaged expression; control features randomly selected bin.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modScore.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Compute ModScore — modScore","text":"","code":"if (FALSE) { # \\dontrun{ modScore( object = seuratObject, marker.table = immuneCellMarkers, use_columns = c(\"CD4_T\", \"Treg\", \"Monocytes\"), ms_threshold = c(\"CD4_T 0.1\", \"Treg 0.4\", \"Monocytes 0.3\"), general.class = c(\"CD4_T\", \"Monocytes\"), multi.lvl = FALSE ) modScore( object = seuratObject, marker.table = immuneCellMarkers, use_columns = c(\"CD4_T\", \"Treg\", \"Monocytes\"), ms_threshold = c(\"CD4_T 0.1\", \"Treg 0.4\", \"Monocytes 0.3\"), general.class = c(\"CD4_T\", \"Monocytes\"), multi.lvl = TRUE, lvl.df = parentChildTable ) } # }"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modscore-imports-011726.html","id":null,"dir":"Reference","previous_headings":"","what":"Helpers for ModuleScore Shiny app — modscore-imports-011726","title":"Helpers for ModuleScore Shiny app — modscore-imports-011726","text":"Precompute module scores per celltype build plots cached data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/modscore-imports.html","id":null,"dir":"Reference","previous_headings":"","what":"Helpers for ModuleScore Shiny app — modscore-imports","title":"Helpers for ModuleScore Shiny app — modscore-imports","text":"Precompute module scores per celltype build plots cached data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":null,"dir":"Reference","previous_headings":"","what":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"Maps custom cluster names Seurat Object cluster IDs adds cluster names new metadata column called Clusternames. Provides dotplot percentage cell types within cluster.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"","code":"nameClusters( object, cluster.identities.table, cluster.numbers, cluster.names, cluster.column, labels.column, order.clusters.by = NULL, order.celltypes.by = NULL, interactive = FALSE )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"object Seurat-class object cluster IDs column cell type column present cluster.numbers Vector containing cluster numbers match (numeric) cluster ID's cluster.column Seurat Object metadata cluster.names Vector containing custom cluster labels cluster.column Column name containing cluster ID metadata slot object labels.column Column name containing labels (usually cell type) metadata slot object order.clusters.Vector containing order clusters graph. Can contain subset cluster numbers plot match least values cluster.column. NULL, use default order (default NULL) order.celltypes.Vector containing order cell types graph. Can contain subset cell types plot match least values labels.column. NULL, use default order (default NULL) interactive TRUE, draw plotly plot (default FALSE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Update metadata slot of Seurat-class object with custom labels and provide plot with percentage of cell types — nameClusters","text":"Returns Seurat-class object updated meta.data slot containing custom cluster annotation plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":null,"dir":"Reference","previous_headings":"","what":"Harmony Batch Correction from Singular Value Decomposed PCA — object","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"Adjusts cell embeddings gene expression data account variations due user specified variable","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"","code":"object"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"object class Seurat 3000 rows 2000 columns.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"seurat_object Seurat-class object nvar Number variable genes subset gene expression data (Default: 2000) genes..add Add genes might found among variably expressed genes group..var variable accounted running batch correction npc Number principal components use running Harmony (Default: 20)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"list: adj.object harmony-adjusted gene expression (SCT slot) adj.tsne: harmonized tSNE plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"Runs singular value decomposition pearson residuals (SCT scale.data) obtain PCA embeddings. Performs harmony decomposed embedding adjusts decomposed gene expression values harmonized embedding.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/object.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Harmony Batch Correction from Singular Value Decomposed PCA — object","text":"","code":"if (FALSE) { # \\dontrun{ harmonyBatchCorrect( object = seurat, nvar = 2000, genes.to.add = c(\"Cd4\", \"Cd8a\"), group.by.var = \"Mouse_Origin\", npc = 20 ) } # }"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":null,"dir":"Reference","previous_headings":"","what":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"palantir_api_call Utility function 3D tSNE Coordinate Template v 75#'","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"","code":"palantir_api_call(service, path, token, data, method)"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"service NIDAP API service call path path NIDAP API service token NIDAP user toekn. data Data uploaded NIDAP API calls. method Method used, including POST, GET, DELETE","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"palantir_api_call Utility function from 3D tSNE Coordinate Template from v 75#' — palantir_api_call","text":"return content API calls","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":null,"dir":"Reference","previous_headings":"","what":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"column selected, template produce plot (UMAP/TSNE/PCA; choice) using data column color cells","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"","code":"plotMetadata( object, samples.to.include, metadata.to.plot, columns.to.summarize, summarization.cut.off = 5, reduction.type = \"tsne\", use.cite.seq = FALSE, show.labels = FALSE, legend.text.size = 1, legend.position = \"right\", dot.size = 0.01 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"object combined Seurat Object metadata plot samples..include samples like include metadata..plot metadata columns Metadata table like plot columns..summarize columns like summarize summarization.cut.Select number categories want display, marking cells \".\" Default 5 reduction.type kind visualization like use plot cells metadata (tsne, umap, pca). Default tsne use.cite.seq TRUE like plot Antibody clusters CITEseq instead scRNA. Default FALSE show.labels Whether add labels reduction map. Default FALSE legend.text.size Customize size legend text charts. Default 1 legend.position Select want align legend. Default \"right\" dot.size size dots displayed plot. Default os 0.01","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"data.frame extracted Seurat object plot","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/plotMetadata.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Plotting (i.e. coloring with) different columns of your Metadata Table — plotMetadata","text":"downstream template Single-cell RNA-seq workflow (requires dataset Filter/QC/SingleR annotations run first)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":null,"dir":"Reference","previous_headings":"","what":"Process Raw Data — processRawData","title":"Process Raw Data — processRawData","text":"Creates list Seurat Objects h5 files. log normalize produce QC figures individual samples","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Process Raw Data — processRawData","text":"","code":"processRawData( input, sample.metadata.table = NULL, sample.name.column = NULL, organism, rename.col = NULL, keep = T, file.filter.regex = c(), split.h5 = F, cell.hash = F, tcr.summarize.topN = 10, do.normalize.data = T )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Process Raw Data — processRawData","text":"input Input can vector .h5 files, list seurat objects sample. TCRseq Metadata .csv files can also included added corrisponding sample seurat object. Vector files include entire file path. sample.metadata.table table sample metadata want append already-existing metadata within input Seurat Object(s). (optional) sample.name.column column input metadata..append table contains sample names matching orig.idents input object(s). (optional) organism Please select species. Choices Human Mouse. (Default: Human). rename.col Select column name metadata table contains new samples name (optional). keep TRUE, keep files pattern found sample name. FALSE, remove files pattern found sample name. pattern set file.filter.regex parameter (). file.filter.regex Pattern regular expression sample name. Use 'keep' parameter keep remove fi les contain pattern. samples renamed set regular expression based new names split.h5 TRUE, split H5 individual files. (Default: FALSE) cell.hash TRUE, dataset contains cell hashtags. (Default: FALSE) tcr.summarize.topN Select number top identified TCR clonotypes included summary column. clonotypes top N populated classified \"\". (Default: 10) .normalize.data TRUE counts table log2 normalized. input contains counts already normalzed set FALSE. (Default: TRUE)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Process Raw Data — processRawData","text":"Seurat Object QC plots","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/processRawData.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Process Raw Data — processRawData","text":"Step 1 basic Single-Cell RNA-seq workflow. Returns data Seurat Object, basic data structure Seurat Single Cell analysis.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"template reclusters filtered Seurat object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"","code":"reclusterFilteredSeuratObject( object, prepend.txt = \"old\", old.columns.to.save, number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"tsne\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"object input Seurat Object. prepend.txt Text prepend old columns make unique new. Default \"old\". old.columns..save Old seurat clustering columns (e.g. SCT_snn_res.0.4) save. number..pcs Select number principal components analysis. Set 0 automatically decide. Default 50. cluster.resolution.low.range Select minimum resolution clustering plots. lower set , FEWER clusters generated. Default 0.2. cluster.resolution.high.range Select maximum resolution clustering plots. higher set , clusters generated. Default 1.2. cluster.resolution.range.bins Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. Default 0.2. reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"tsne\".","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"Function returns reclustered Seurat Object new clustering columns renamed original clustering columns, along plot new dimsensionality reduction.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Recluster Filtered Seurat Object. — reclusterFilteredSeuratObject","text":"method reclusters filtered , preserving original SCT clustering columns prepended prefix, making new SCT clustering columns based reclustering. image returned reclustered project.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":null,"dir":"Reference","previous_headings":"","what":"Recluster Seurat Object. — reclusterSeuratObject","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"template reclusters Seurat object.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"","code":"reclusterSeuratObject( object, prepend.txt = \"old\", old.columns.to.save, number.of.pcs = 50, cluster.resolution.low.range = 0.2, cluster.resolution.high.range = 1.2, cluster.resolution.range.bins = 0.2, reduction.type = \"tsne\" )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"object input Seurat Object. prepend.txt Text prepend old columns make unique new. Default \"old\". old.columns..save Old seurat clustering columns (e.g. SCT_snn_res.0.4) save. number..pcs Select number principal components analysis. Set 0 automatically decide. Default 50. cluster.resolution.low.range Select minimum resolution clustering plots. lower set , FEWER clusters generated. Default 0.2. cluster.resolution.high.range Select maximum resolution clustering plots. higher set , clusters generated. Default 1.2. cluster.resolution.range.bins Select bins cluster plots. example, input 0.2 bin, low/high resolution ranges 0.2 0.6, template produce cluster plots resolutions 0.2, 0.4 0.6. Default 0.2. reduction.type Select kind clustering visualization like use visualize cell type results (\"umap\", \"tsne\", \"pca\"). Default \"tsne\".","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"Function returns reclustered Seurat Object new clustering columns renamed original clustering columns, along plot new dimsensionality reduction.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Recluster Seurat Object. — reclusterSeuratObject","text":"method reclusters input , preserving original SCT clustering columns prepended prefix, making new SCT clustering columns based reclustering. image returned reclustered project.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"method provides visualization 3D-tSNE plot given Seurat Object returns plotly plot dataframe TSNE coordinates. optionally saves plotly image embedded html file.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"","code":"tSNE3D( object, color.variable, label.variable, dot.size = 4, legend = TRUE, colors = c(\"darkblue\", \"purple4\", \"green\", \"red\", \"darkcyan\", \"magenta2\", \"orange\", \"yellow\", \"black\"), filename = \"plot.html\", save.plot = FALSE, npcs = 15 )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot 3D-TSNE given a Seurat Object and returns plotly image — tSNE3D","text":"object Seurat-class object color.variable Metadata column Seurat Object use color label.variable Metadata column Seurat Object use label dot.size Dot size plot (default 4) legend TRUE, show legend (default TRUE) colors Colors used color.variable filename Filename saving plot (default \"plot.html\") save.plot Save plot widget html file (default FALSE) npcs Number principal components used tSNE calculations (default 15)","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":null,"dir":"Reference","previous_headings":"","what":"Violin Plot by Metadata — violinPlot","title":"Violin Plot by Metadata — violinPlot","text":"Create violin plot gene expression data across groups","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Violin Plot by Metadata — violinPlot","text":"","code":"violinPlot( object, assay, layer, genes, group, facet_by = \"\", filter_outliers = F, outlier_low = 0.05, outlier_high = 0.95, jitter_points, jitter_dot_size )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Violin Plot by Metadata — violinPlot","text":"object Seurat-class object assay Assay extract gene expression data (Default: SCT) layer Slot extract gene expression data (Default: scale.data) genes Genes visualize violin plot group Split violin plot based metadata group facet_by Split violin plot based second metadata group filter_outliers Filter outliers data (TRUE/FALSE) outlier_low Filter lower bound outliers (Default = 0.05) outlier_high Filter upper bound outliers (Default = 0.95) jitter_points Scatter points plot (TRUE/FALSE) jitter_dot_size Set size individual points","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Violin Plot by Metadata — violinPlot","text":"violin ggplot2 object","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Violin Plot by Metadata — violinPlot","text":"Takes list genes inputted user, displays violin plots genes across groups layer-assay (optional) outliers removed. Can also choose scale transform expression data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Violin Plot by Metadata — violinPlot","text":"","code":"if (FALSE) { # \\dontrun{ violinPlot( object = seurat, assay = \"SCT\", layer = \"data\", genes = c(\"Cd4\", \"Cd8a\"), group = \"celltype\", facet_by = \"orig.ident\", filter_outliers = TRUE, jitter_points = TRUE, jitter_dot_size = 0.5 ) } # }"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":null,"dir":"Reference","previous_headings":"","what":"Violin Plot by Metadata — violinPlot_mod","title":"Violin Plot by Metadata — violinPlot_mod","text":"Create violin plot gene expression data across groups","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Violin Plot by Metadata — violinPlot_mod","text":"","code":"violinPlot_mod( object, assay, layer, genes, group, facet_by = \"\", filter_outliers = F, outlier_low = 0.05, outlier_high = 0.95, jitter_points, jitter_dot_size )"},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Violin Plot by Metadata — violinPlot_mod","text":"object Seurat-class object assay Assay extract gene expression data (Default: SCT) layer Slot extract gene expression data (Default: scale.data) genes Genes visualize violin plot group Split violin plot based metadata group facet_by Split violin plot based second metadata group filter_outliers Filter outliers data (TRUE/FALSE) outlier_low Filter lower bound outliers (Default = 0.05) outlier_high Filter upper bound outliers (Default = 0.95) jitter_points Scatter points plot (TRUE/FALSE) jitter_dot_size Set size individual points","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Violin Plot by Metadata — violinPlot_mod","text":"violin ggplot2 object","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Violin Plot by Metadata — violinPlot_mod","text":"Takes list genes inputted user, displays violin plots genes across groups layer-assay (optional) outliers removed. Can also choose scale transform expression data.","code":""},{"path":"https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Violin Plot by Metadata — violinPlot_mod","text":"","code":"if (FALSE) { # \\dontrun{ violinPlot_mod( object = seurat, assay = \"SCT\", layer = \"data\", genes = c(\"Cd4\", \"Cd8a\"), group = \"celltype\", facet_by = \"orig.ident\", filter_outliers = TRUE, jitter_points = TRUE, jitter_dot_size = 0.5 ) } # }"}]
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index cc7a6ac..34d46e0 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -3,10 +3,8 @@
https://nidap-community.github.io/SCWorkflow/CHANGELOG.html
https://nidap-community.github.io/SCWorkflow/LICENSE-text.html
https://nidap-community.github.io/SCWorkflow/articles/CONTRIBUTING.html
-
https://nidap-community.github.io/SCWorkflow/articles/README.html
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Annotations.html
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-DEG.html
-
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Overview.html
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-QC.html
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-SubsetReclust.html
https://nidap-community.github.io/SCWorkflow/articles/SCWorkflow-Usage.html
@@ -14,12 +12,16 @@
https://nidap-community.github.io/SCWorkflow/articles/images/Vis_3D.html
https://nidap-community.github.io/SCWorkflow/articles/index.html
https://nidap-community.github.io/SCWorkflow/authors.html
+
https://nidap-community.github.io/SCWorkflow/copilot-instructions.html
+
https://nidap-community.github.io/SCWorkflow/decision_log.html
https://nidap-community.github.io/SCWorkflow/index.html
+
https://nidap-community.github.io/SCWorkflow/reference/aggregateCounts.html
https://nidap-community.github.io/SCWorkflow/reference/annotateCellTypes.html
https://nidap-community.github.io/SCWorkflow/reference/appendMetadataToSeuratObject.html
https://nidap-community.github.io/SCWorkflow/reference/colorByGene.html
https://nidap-community.github.io/SCWorkflow/reference/colorByMarkerTable.html
https://nidap-community.github.io/SCWorkflow/reference/combineNormalize.html
+
https://nidap-community.github.io/SCWorkflow/reference/compareCellPopulations.html
https://nidap-community.github.io/SCWorkflow/reference/degGeneExpressionMarkers.html
https://nidap-community.github.io/SCWorkflow/reference/dotPlotMet.html
https://nidap-community.github.io/SCWorkflow/reference/dualLabeling.html
@@ -27,7 +29,10 @@
https://nidap-community.github.io/SCWorkflow/reference/filterSeuratObjectByMetadata.html
https://nidap-community.github.io/SCWorkflow/reference/heatmapSC.html
https://nidap-community.github.io/SCWorkflow/reference/index.html
+
https://nidap-community.github.io/SCWorkflow/reference/launch_module_score_app.html
https://nidap-community.github.io/SCWorkflow/reference/modScore.html
+
https://nidap-community.github.io/SCWorkflow/reference/modscore-imports-011726.html
+
https://nidap-community.github.io/SCWorkflow/reference/modscore-imports.html
https://nidap-community.github.io/SCWorkflow/reference/nameClusters.html
https://nidap-community.github.io/SCWorkflow/reference/object.html
https://nidap-community.github.io/SCWorkflow/reference/palantir_api_call.html
@@ -36,6 +41,7 @@
https://nidap-community.github.io/SCWorkflow/reference/reclusterFilteredSeuratObject.html
https://nidap-community.github.io/SCWorkflow/reference/reclusterSeuratObject.html
https://nidap-community.github.io/SCWorkflow/reference/tSNE3D.html
+
https://nidap-community.github.io/SCWorkflow/reference/violinPlot.html
https://nidap-community.github.io/SCWorkflow/reference/violinPlot_mod.html
diff --git a/inst/extdata/NIDAPjson/Compare_Cell_Populations.code-template.json b/inst/extdata/NIDAPjson/Compare_Cell_Populations.code-template.json
new file mode 100644
index 0000000..e9ae00e
--- /dev/null
+++ b/inst/extdata/NIDAPjson/Compare_Cell_Populations.code-template.json
@@ -0,0 +1,103 @@
+{
+ "codeTemplate": "unnamed_21 <- function({{{Object}}},{{{Metadata_Table}}}) {\n\n## --------- ##\n## Libraries ##\n## --------- ##\nlibrary(Seurat)\nlibrary(ggplot2)\nlibrary(ggpubr)\nlibrary(RColorBrewer)\nlibrary(tibble)\nlibrary(reshape2)\nlibrary(ggalluvial)\n#library(plotly)\nlibrary(data.table)\nlibrary(dplyr)\nlibrary(magrittr)\nlibrary(cowplot)\nlibrary(gridExtra)\n#library(EnhancedVolcano)\nlibrary(grid)\nlibrary(nidapFunctions)\n \n #nidapLoadPackages(\"SCWorkflow\")\n\n## -------------------------------- ##\n## User-Defined Template Parameters ##\n## -------------------------------- ##\n\n\nseurat_object={{{Object}}}\nMetaData={{{Metadata_Table}}}\n\n#Basic Parameters:\nAnnoCol='{{{Annotation_Column}}}'\nGroupCol='{{{Group_Column}}}'\nSampleCol='{{{Sample_Column}}}'\nplotType='{{{Counts_Type}}}'\ncolor='custom'\ngroup_order=c({{{Group_Order}}})\nwrap_ncols=5\n\n#Filesave Parameters:\n seurat_object_filename <- \"{{{Seurat_Object_Filename}}}\"\n\n##--------------- ##\n## Error Messages ##\n## -------------- ##\n\n## --------- ##\n## Functions ##\n## --------- ##\n\n## --------------- ##\n## Main Code Block ##\n## --------------- ##\n\n\n\n ## --------------- ##\n ## Main Code Block ##\n ## --------------- ##\n\n path <- nidapGetPath(seurat_object,seurat_object_filename)\n SO <- readRDS(path)\n\n colnames(SO@meta.data) <- gsub(\"\\\\.\",\"_\",colnames(SO@meta.data))\n\n\nout=ComapreCellPop(SO=SO,\n AnnoCol=AnnoCol,\n GroupCol=GroupCol,\n SampleCol=SampleCol,\n group_order=group_order,\n plotType=plotType,\n color=color,\n wrap_ncols=wrap_ncols)\n\n#plotType%>%print\n#print(out)\n#print(out[['freqTble']])\n\nplot(out$Plots$Barplot)\n\nif(plotType=='Frequency'){\n plot(out$Plots$Boxplot)\n}else if (plotType=='Counts'){\n\n}\n\n#return(as.matrix(out$Table))\nreturn(NULL)\n}\n#################################################\n## Global imports and functions included below ##\n#################################################\n\n\nComapreCellPop=function(SO,\n AnnoCol,\n GroupCol='Group',\n SampleCol='orig_ident',\n group_order=NULL,\n plotType='Frequency',\n color='custom',\n wrap_ncols=5){\n \n if (is.null(group_order)) {\n group_order=unique(SO@meta.data[[GroupCol]])\n } \n # SO=AnnoOut_out$object\n ordr=SO@meta.data[[AnnoCol]]%>%unique%>%sort\n numColors = max(length(unique(SO@meta.data$mouseRNAseq_main)), length(unique(SO@meta.data$immgen_main)))\n colpaired = colorRampPalette(brewer.pal(12, \"Paired\"))\n cols = c(\n \"#e6194B\",\n \"#3cb44b\",\n \"#4363d8\",\n \"#f58231\",\n \"#911eb4\",\n \"#42d4f4\",\n \"#f032e6\",\n \"#bfef45\",\n \"#fabebe\",\n \"#469990\",\n \"#e6beff\",\n \"#9A6324\",\n \"#800000\",\n \"#aaffc3\",\n \"#808000\",\n \"#000075\",\n colpaired(numColors)\n )\n \n names(cols)=ordr\n SO@meta.data[[AnnoCol]]=factor(SO@meta.data[[AnnoCol]],levels=ordr)\n \n \n ### Create cnt Table by any group\n CreateAnnoTable=function(SO,AnnoCol,GroupCol){\n \n ## extract annotation data for each group\n cntTble=unique(SO@meta.data[[AnnoCol]])%>%as.matrix\n for (s in unique(SO@meta.data[[GroupCol]]) ){\n expr <- FetchData(object = SO, vars = GroupCol)\n subSO=SO[, which(x = expr ==s)]\n cntTble=cbind(cntTble,\n table(subSO@meta.data[[AnnoCol]])\n )\n }\n colnames(cntTble)=c(AnnoCol,unique(SO@meta.data[[GroupCol]]))\n cntTble=cntTble[,-1]\n cntTble=data.frame(apply(cntTble, 2, function(x) as.numeric(as.character(x))),check.names=F, row.names = rownames(cntTble))\n \n \n freqTble=apply(cntTble,2,FUN = function(x){\n return(x/sum(x))\n })\n freqTble=(freqTble*100)\n \n \n outTbl=merge(cntTble,as.data.frame(freqTble),by='row.names',suffixes = c('_CellCounts','_Percent'))\n outTbl=dplyr::rename(outTbl,'Clusters'=\"Row.names\")\n # colSums(outTbl[,2:ncol(outTbl)])\n return(list(\n 'CellFreq'=freqTble,\n 'CellCounts'=cntTble,\n 'OutTable'=outTbl))\n }\n \n ColTables=CreateAnnoTable(SO,AnnoCol,GroupCol) \n BoxTables=CreateAnnoTable(SO,AnnoCol,SampleCol) \n metaGroups=SO@meta.data[,c(GroupCol,SampleCol)]\n rownames(metaGroups)=NULL\n mataGroups=metaGroups%>%unique\n SampleCol=colnames(mataGroups)[ncol(mataGroups)]\n \n \n ####################################\n ## Create Annotation Column Plot\n if (plotType=='Frequency') {\n ptbl=melt(ColTables$CellFreq)\n ptblBox=melt(as.matrix(BoxTables$CellFreq))\n ptblBox=merge(ptblBox,metaGroups,by.x='Var2',by.y=SampleCol,all.x=T)\n \n labelCol='PerValue'\n ylab='Frequency of each cell type (100%)'\n }else if (plotType==\"Counts\") {\n ptbl=melt(as.matrix(ColTables$CellCounts))\n ptblBox=melt(as.matrix(BoxTables$CellCounts))\n ptblBox=merge(ptblBox,metaGroups,by.x='Var2',by.y=SampleCol,all.x=T)\n \n labelCol='value'\n ylab='Cell Counts'\n }\n \n ptbl$Var1=factor(ptbl$Var1,levels=ordr)\n ptbl$value=round(ptbl$value,1)\n # ptbl$PerValue=round(ptbl$value,0)\n ptbl$PerValue=paste0(ptbl$value,'%')\n ptbl$PerValue=gsub('^\\\\%$',\"_\",ptbl$PerValue)\n ptbl[ptbl$value<1,'PerValue']=\"\"\n \n ptbl$Var2=factor(ptbl$Var2,levels=group_order)\n \n \n p2=ptbl%>%ggplot(\n aes_string(y = 'value', x = 'Var2',fill='Var1',label = labelCol)) +\n geom_flow(aes(alluvium = Var1), alpha= .2, \n lty = 2, color = \"black\",\n curve_type = \"linear\", \n width = .5) +\n geom_col(aes(fill = Var1), width = .5, color = \"black\") +\n geom_text(size = 3, position = position_stack(vjust = 0.5))+\n theme_classic()+\n ylab(ylab)+\n xlab(\"\")+\n scale_x_discrete(guide = guide_axis(angle = 45))\n if (color!='orig') {\n p2=p2+scale_fill_manual(AnnoCol,values = cols) \n }\n ptbl$Group=gsub('_[1-9]+$','',ptbl$Var2)\n \n \n ####################################\n ## Create Annotation Box Plot by sample\n \n \n # ptblBox$Var1=factor(ptblBox$Var1,levels=ordr)\n ptblBox$value=round(ptblBox$value,1)\n ptblBox$PerValue=paste0(ptblBox$value,'%')\n ptblBox$PerValue=gsub('^\\\\%$',\"_\",ptblBox$PerValue)\n ptblBox[ptblBox$value<1,'PerValue']=\"\"\n \n ptblBox[,GroupCol]=factor(ptblBox[,GroupCol],levels=group_order)\n \n p2_Box=ptblBox%>%ggboxplot(y = 'value', x = GroupCol,add = \"jitter\",color = \"Var1\") + \n # stat_compare_means(method = \"t.test\")+\n facet_wrap(~Var1,ncol = wrap_ncols,scales = 'fixed')+ylab(ylab)+xlab(\"\")+\n theme(legend.title=element_blank())\n \n \n return(list('Plots'=list('Barplot'=p2,'Boxplot'=p2_Box),\"Table\"=ColTables$OutTable))\n \n \n}",
+ "columns": [
+ {
+ "key": "Annotation_Column",
+ "displayName": "Annotation Column",
+ "description": "Column to summarize in Barplot",
+ "paramGroup": "Basic",
+ "sourceDataset": "Metadata_Table",
+ "defaultValue": null,
+ "columnType": "STRING",
+ "isMulti": null
+ },
+ {
+ "key": "Group_Column",
+ "displayName": "Group Column",
+ "description": "Column to split Barplot into separate populations to compare",
+ "paramGroup": "Basic",
+ "sourceDataset": "Metadata_Table",
+ "defaultValue": null,
+ "columnType": "STRING",
+ "isMulti": null
+ },
+ {
+ "key": "Sample_Column",
+ "displayName": "Sample Column",
+ "description": "Column in Seurat Metadata that contains sample names",
+ "paramGroup": "Basic",
+ "sourceDataset": "Metadata_Table",
+ "defaultValue": null,
+ "columnType": "STRING",
+ "isMulti": null
+ }
+ ],
+ "condaDependencies": [],
+ "description": "",
+ "externalId": "Compare_Cell_Populations",
+ "inputDatasets": [
+ {
+ "key": "Object",
+ "displayName": "Object",
+ "description": "Seurat object",
+ "paramGroup": null,
+ "anchorDataset": false,
+ "dataType": "R_TRANSFORM_INPUT",
+ "tags": []
+ },
+ {
+ "key": "Metadata_Table",
+ "displayName": "Metadata Table",
+ "description": "Seurat Metadata table",
+ "paramGroup": null,
+ "anchorDataset": false,
+ "dataType": "R_NATIVE_DATAFRAME",
+ "tags": []
+ }
+ ],
+ "vectorLanguage": "R",
+ "codeLanguage": "R",
+ "parameters": [
+ {
+ "key": "Counts_Type",
+ "displayName": "Counts Type",
+ "description": "What type of data do you want to plot",
+ "paramType": "SELECT",
+ "paramGroup": "Basic",
+ "paramValues": [
+ "Frequency",
+ "Counts"
+ ],
+ "defaultValue": "Frequency",
+ "condition": null,
+ "content": null,
+ "objectPropertyReference": null
+ },
+ {
+ "key": "Seurat_Object_Filename",
+ "displayName": "Seurat Object Filename",
+ "description": "",
+ "paramType": "STRING",
+ "paramGroup": "Filesave",
+ "paramValues": null,
+ "defaultValue": "seurat_object.rds",
+ "condition": null,
+ "content": null,
+ "objectPropertyReference": null
+ },
+ {
+ "key": "Group_Order",
+ "displayName": "Group Order",
+ "description": "",
+ "paramType": "VECTOR",
+ "paramGroup": "Basic",
+ "paramValues": null,
+ "defaultValue": "c(\"\")",
+ "condition": null,
+ "content": null,
+ "objectPropertyReference": null
+ }
+ ],
+ "title": "Compare Cell Populations",
+ "templateApiVersion": "0.1.0"
+}
\ No newline at end of file
diff --git a/man/compareCellPopulations.Rd b/man/compareCellPopulations.Rd
new file mode 100644
index 0000000..c094ee7
--- /dev/null
+++ b/man/compareCellPopulations.Rd
@@ -0,0 +1,82 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/Compare_Cell_Populations.R
+\name{compareCellPopulations}
+\alias{compareCellPopulations}
+\title{Compare Cell Populations}
+\usage{
+compareCellPopulations(
+ object,
+ annotation.column,
+ group.column,
+ sample.column = "orig.ident",
+ counts.type = "Frequency",
+ group.order = NULL,
+ wrap.ncols = 5
+)
+}
+\arguments{
+\item{object}{A Seurat object containing the single-cell data}
+
+\item{annotation.column}{Character string specifying the metadata column
+containing cell type annotations to summarize in the bar plot}
+
+\item{group.column}{Character string specifying the metadata column
+defining groups to compare (e.g., treatment conditions)}
+
+\item{sample.column}{Character string specifying the metadata column
+containing sample identifiers. Default is "orig.ident"}
+
+\item{counts.type}{Character string specifying plot data type:
+"Frequency" (percentages) or "Counts" (absolute numbers). Default is "Frequency"}
+
+\item{group.order}{Character vector specifying the order of groups in plots.
+If NULL, uses natural order from data. Default is NULL}
+
+\item{wrap.ncols}{Integer specifying number of columns for facet wrapping
+in box plots. Default is 5}
+
+\item{seurat.object.filename}{Character string for the Seurat object
+filename. Default is "seurat_object.rds"}
+}
+\value{
+A list containing:
+\itemize{
+\item \code{Plots} - A list with two ggplot objects:
+\itemize{
+\item \code{Barplot} - Stacked bar plot with alluvial flows
+\item \code{Boxplot} - Faceted box plots by cell type (only if counts.type="Frequency")
+}
+\item \code{Table} - A data.frame with cell counts and percentages
+}
+}
+\description{
+Compare cell population distributions across different groups
+using bar plots and box plots. Creates visualizations showing cell type
+frequencies or counts across user-defined groupings.
+}
+\details{
+This function generates comparative visualizations of cell
+populations from a Seurat object. It can display data as either frequency
+percentages or absolute counts, and creates both stacked bar plots
+(with alluvial flow connections) and grouped box plots for comparison
+across samples and conditions.
+}
+\examples{
+\dontrun{
+# Compare cell populations by treatment group
+results <- compareCellPopulations(
+ object = seurat_obj,
+ annotation.column = "cell_type",
+ group.column = "treatment",
+ sample.column = "sample_id",
+ counts.type = "Frequency"
+)
+
+# Display plots
+plot(results$Plots$Barplot)
+plot(results$Plots$Boxplot)
+
+# View summary table
+head(results$Table)
+}
+}
diff --git a/man/launch_module_score_app.Rd b/man/launch_module_score_app.Rd
new file mode 100644
index 0000000..988cbea
--- /dev/null
+++ b/man/launch_module_score_app.Rd
@@ -0,0 +1,14 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/ModuleScoreApp.R
+\name{launch_module_score_app}
+\alias{launch_module_score_app}
+\title{Launch the ModuleScore Shiny App}
+\usage{
+launch_module_score_app()
+}
+\value{
+The result of \code{shiny::runApp()}
+}
+\description{
+Opens the interactive app to explore ModuleScores and adjust thresholds.
+}
diff --git a/man/modScore.Rd b/man/modScore.Rd
index 824f921..c96c277 100644
--- a/man/modScore.Rd
+++ b/man/modScore.Rd
@@ -7,6 +7,7 @@
modScore(
object,
marker.table,
+ group_var = "orig.ident",
use_columns,
ms_threshold,
general.class,
diff --git a/man/modscore-imports-011726.Rd b/man/modscore-imports-011726.Rd
new file mode 100644
index 0000000..344bac7
--- /dev/null
+++ b/man/modscore-imports-011726.Rd
@@ -0,0 +1,9 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/ModuleScoreHelpers_011726.R
+\name{modscore-imports-011726}
+\alias{modscore-imports-011726}
+\title{Helpers for ModuleScore Shiny app}
+\description{
+Precompute module scores per celltype and build plots from cached data.
+}
+\keyword{internal}
diff --git a/man/modscore-imports.Rd b/man/modscore-imports.Rd
new file mode 100644
index 0000000..20de3c0
--- /dev/null
+++ b/man/modscore-imports.Rd
@@ -0,0 +1,9 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/ModuleScoreHelpers.R
+\name{modscore-imports}
+\alias{modscore-imports}
+\title{Helpers for ModuleScore Shiny app}
+\description{
+Precompute module scores per celltype and build plots from cached data.
+}
+\keyword{internal}
diff --git a/man/violinPlot_mod.Rd b/man/violinPlot.Rd
similarity index 85%
rename from man/violinPlot_mod.Rd
rename to man/violinPlot.Rd
index df2fcd5..3a60cd9 100644
--- a/man/violinPlot_mod.Rd
+++ b/man/violinPlot.Rd
@@ -1,13 +1,13 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Violin_Plots_by_Metadata.R
-\name{violinPlot_mod}
-\alias{violinPlot_mod}
+\name{violinPlot}
+\alias{violinPlot}
\title{Violin Plot by Metadata}
\usage{
-violinPlot_mod(
+violinPlot(
object,
assay,
- slot,
+ layer,
genes,
group,
facet_by = "",
@@ -23,7 +23,7 @@ violinPlot_mod(
\item{assay}{Assay to extract gene expression data from (Default: SCT)}
-\item{slot}{Slot to extract gene expression data from (Default: scale.data)}
+\item{layer}{Slot to extract gene expression data from (Default: scale.data)}
\item{genes}{Genes to visualize on the violin plot}
@@ -49,15 +49,15 @@ Create violin plot of gene expression data across groups
}
\details{
Takes in a list of genes inputted by the user, displays violin plots
-of genes across groups from a slot-assay with (optional) outliers
+of genes across groups from a layer-assay with (optional) outliers
removed. Can also choose to scale or transform expression data.
}
\examples{
\dontrun{
-violinPlot_mod(
+violinPlot(
object = seurat,
assay = "SCT",
- slot = "data",
+ layer = "data",
genes = c("Cd4", "Cd8a"),
group = "celltype",
facet_by = "orig.ident",
diff --git a/tests/testthat/helper-Compare_Cell_Populations.R b/tests/testthat/helper-Compare_Cell_Populations.R
new file mode 100644
index 0000000..3097f84
--- /dev/null
+++ b/tests/testthat/helper-Compare_Cell_Populations.R
@@ -0,0 +1,73 @@
+# Helper functions for Compare_Cell_Populations tests
+
+# Load real Seurat objects from fixtures
+getParamCCP <- function(data) {
+ supported.data <- c("TEC", "Chariou", "PBMC", "NSCLC", "BRCA")
+
+
+ if (data == "TEC") {
+ object <- selectCRObject("TEC")
+ annotation.column <- "seurat_clusters"
+ group.column <- "Status"
+ sample.column <- "orig.ident"
+ counts.type <- "Frequency"
+ group.order <- NULL
+
+ } else if (data == "Chariou") {
+ object <- selectCRObject("Chariou")
+ annotation.column <- "seurat_clusters"
+ group.column <- "Status"
+ sample.column <- "orig.ident"
+ counts.type <- "Frequency"
+ group.order <- NULL
+
+ } else if (data == "PBMC") {
+ object <- selectSRObject("pbmc-single")
+ annotation.column <- "HPCA_main"
+ group.column <- "Phase"
+ sample.column <- "orig.ident"
+ counts.type <- "Frequency"
+ group.order <- NULL
+
+ } else if (data == "NSCLC") {
+ object <- selectCRObject("nsclc-multi")
+ annotation.column <- "seurat_clusters"
+ group.column <- "Phase"
+ sample.column <- "orig.ident"
+ counts.type <- "Frequency"
+ group.order <- NULL
+
+ } else if (data == "BRCA") {
+ object <- selectCRObject("BRCA")
+ annotation.column <- "seurat_clusters"
+ group.column <- "Phase"
+ sample.column <- "orig.ident"
+ counts.type <- "Frequency"
+ group.order <- NULL
+ }
+
+ return(
+ list(
+ "object" = object,
+ "annotation.column" = annotation.column,
+ "group.column" = group.column,
+ "sample.column" = sample.column,
+ "counts.type" = counts.type,
+ "group.order" = group.order
+ )
+ )
+}
+
+# Helper function to save ggplot objects for snapshot testing
+.drawCCPFig <- function(x, width = 10, height = 10) {
+ path <- tempfile(fileext = ".png")
+ ggplot2::ggsave(path, x, width = width, height = height)
+ path
+}
+
+# Helper function to save data tables for snapshot testing
+.saveCCPTable <- function(x) {
+ path <- tempfile(fileext = ".rds")
+ saveRDS(x, file = path)
+ path
+}
diff --git a/tests/testthat/test-Compare_Cell_Populations.R b/tests/testthat/test-Compare_Cell_Populations.R
new file mode 100644
index 0000000..7f4dd39
--- /dev/null
+++ b/tests/testthat/test-Compare_Cell_Populations.R
@@ -0,0 +1,223 @@
+# for R 4.1.3 ON RStudio Workbench
+# restart R
+# .libPaths(c("/home/homanpj/R/x86_64-pc-linux-gnu-library/4.1",
+# "/opt/R/4.1.3/lib64/R/library",
+# "/rstudio-files/ccbr-data/renv_cache/single-cell-rna-seq-r4/Snapshot-environment_method/renv/library/R-4.1/x86_64-pc-linux-gnu"))
+# library(spatstat.core)
+# library(Seurat)
+# library(scales)
+# library(devtools)
+# load_all()
+# options(testthat_stop_on_failure = TRUE)
+# devtools::test_active_file()
+
+# Test 1: Standard parameters - TEC dataset
+test_that("compareCellPopulations returns correct structure with TEC data", {
+ params <- getParamCCP("TEC")
+ result <- do.call(compareCellPopulations, params)
+
+ # Check result structure
+ expect_type(result, "list")
+ expect_named(result, c("Plots", "Table"))
+ expect_named(result$Plots, c("Barplot", "Boxplot"))
+
+ # Check plot types
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ # Check table structure
+ expect_true(is.data.frame(result$Table))
+ expect_true("Clusters" %in% colnames(result$Table))
+
+ # Snapshot tests for plots and table
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "TEC_Standard_Barplot.png"
+ )
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "TEC_Standard_Boxplot.png"
+ )
+ expect_snapshot_file(
+ .saveCCPTable(result$Table),
+ "TEC_Standard_Table.rds"
+ )
+})
+
+# Test 2: Standard parameters - Chariou dataset
+test_that("compareCellPopulations works with Chariou data", {
+ params <- getParamCCP("Chariou")
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "Chariou_Standard_Barplot.png"
+ )
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "Chariou_Standard_Boxplot.png"
+ )
+})
+
+# Test 3: Standard parameters - PBMC dataset with annotated cell types
+test_that("compareCellPopulations works with PBMC annotated cell types", {
+ params <- getParamCCP("PBMC")
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ # Note: PBMC has only one sample, which creates issues with alluvial flow visualization
+ # Skip barplot snapshot for single-sample dataset
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "PBMC_Standard_Boxplot.png"
+ )
+})
+
+# Test 4: Standard parameters - NSCLC dataset
+test_that("compareCellPopulations works with NSCLC multi data", {
+ params <- getParamCCP("NSCLC")
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "NSCLC_Standard_Barplot.png"
+ )
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "NSCLC_Standard_Boxplot.png"
+ )
+})
+
+# Test 5: Standard parameters - BRCA dataset
+test_that("compareCellPopulations works with BRCA data", {
+ params <- getParamCCP("BRCA")
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "BRCA_Standard_Barplot.png"
+ )
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "BRCA_Standard_Boxplot.png"
+ )
+})
+
+# Test 6: Counts type parameter - TEC dataset
+test_that("compareCellPopulations works with Counts type on TEC data", {
+ params <- getParamCCP("TEC")
+ params$counts.type <- "Counts"
+
+ result <- do.call(compareCellPopulations, params)
+
+ # Check result structure
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "TEC_Counts_Barplot.png"
+ )
+})
+
+# Test 7: Custom group order - Chariou dataset
+test_that("compareCellPopulations handles custom group order on Chariou", {
+ params <- getParamCCP("Chariou")
+ params$group.order <- c("1", "0") # Status levels
+
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Barplot),
+ "Chariou_CustomOrder_Barplot.png"
+ )
+})
+
+# Test 8: Custom wrap columns - PBMC dataset
+test_that("compareCellPopulations handles custom wrap.ncols on PBMC", {
+ params <- getParamCCP("PBMC")
+ params$wrap.ncols <- 3 # Change from default 5 to 3 columns
+
+ result <- do.call(compareCellPopulations, params)
+
+ expect_type(result, "list")
+ expect_s3_class(result$Plots$Barplot, "gg")
+ expect_s3_class(result$Plots$Boxplot, "gg")
+
+ skip_on_ci()
+ expect_snapshot_file(
+ .drawCCPFig(result$Plots$Boxplot),
+ "PBMC_CustomWrap_Boxplot.png"
+ )
+})
+
+# Test 9: Input validation - non-Seurat object
+test_that("compareCellPopulations validates input object", {
+ expect_error(
+ compareCellPopulations(
+ object = list(),
+ annotation.column = "cell_type",
+ group.column = "treatment"
+ ),
+ "must be a Seurat object"
+ )
+})
+
+# Test 10: Missing column validation - TEC dataset
+test_that("compareCellPopulations validates metadata columns on TEC", {
+ params <- getParamCCP("TEC")
+ params$annotation.column <- "nonexistent_column"
+
+ expect_error(
+ do.call(compareCellPopulations, params),
+ "missing from metadata"
+ )
+})
+
+# Test 11: Invalid counts.type parameter
+test_that("compareCellPopulations validates counts.type parameter", {
+ params <- getParamCCP("TEC")
+ params$counts.type <- "Invalid"
+
+ expect_error(
+ do.call(compareCellPopulations, params),
+ "must be either 'Frequency' or 'Counts'"
+ )
+})
+
+# Test 12: Table output validation - BRCA dataset
+test_that("compareCellPopulations table contains expected columns on BRCA", {
+ params <- getParamCCP("BRCA")
+ result <- do.call(compareCellPopulations, params)
+
+ # Check for _CellCounts and _Percent suffixed columns
+ expect_true(any(grepl("_CellCounts$", colnames(result$Table))))
+ expect_true(any(grepl("_Percent$", colnames(result$Table))))
+})
+
diff --git a/tests/testthat/test-Violin_Plots_by_Metadata.R b/tests/testthat/test-Violin_Plots_by_Metadata.R
index 929a41a..7703e37 100755
--- a/tests/testthat/test-Violin_Plots_by_Metadata.R
+++ b/tests/testthat/test-Violin_Plots_by_Metadata.R
@@ -1,7 +1,7 @@
test_that("Violin plot works for TEC data", {
tec.data = selectViolin("TEC")
- violin_test = do.call(violinPlot_mod, tec.data)
+ violin_test = do.call(violinPlot, tec.data)
skip_on_ci()
expect_snapshot_file(
@@ -16,7 +16,7 @@ test_that("Violin plot works for TEC data", {
test_that("Violin plot works for Chariou data", {
chariou.data = selectViolin("Chariou")
- violin_test = do.call(violinPlot_mod, chariou.data)
+ violin_test = do.call(violinPlot, chariou.data)
skip_on_ci()
expect_snapshot_file(
@@ -32,7 +32,7 @@ test_that("Violin plot works for Chariou data", {
# test_that("Violin plot works for Chariou.allgroup data", {
# chariou.allgroup.data = selectViolin("Chariou.allgroups")
#
-# violin_test = do.call(violinPlot_mod, chariou.allgroup.data)
+# violin_test = do.call(violinPlot, chariou.allgroup.data)
#
# skip_on_ci()
# expect_snapshot_file(
@@ -48,7 +48,7 @@ test_that("Violin plot works for Chariou data", {
# test_that("Violin plot works for Chariou.subgroup data", {
# chariou.subgroup.data = selectViolin("Chariou.subgroup")
#
-# violin_test = do.call(violinPlot_mod, chariou.subgroup.data)
+# violin_test = do.call(violinPlot, chariou.subgroup.data)
#
# skip_on_ci()
# expect_snapshot_file(
@@ -64,7 +64,7 @@ test_that("Violin plot works for Chariou data", {
test_that("Violin plot works for pbmc.single data", {
pbmc.single = selectViolin("pbmc.single")
- violin_test = do.call(violinPlot_mod, pbmc.single)
+ violin_test = do.call(violinPlot, pbmc.single)
skip_on_ci()
expect_snapshot_file(
@@ -80,7 +80,7 @@ test_that("Violin plot works for pbmc.single data", {
test_that("Violin plot works for nsclc.multi data", {
nsclc.multi = selectViolin("nsclc.multi")
- violin_test = do.call(violinPlot_mod, nsclc.multi)
+ violin_test = do.call(violinPlot, nsclc.multi)
skip_on_ci()
expect_snapshot_file(
@@ -96,7 +96,7 @@ test_that("Violin plot works for nsclc.multi data", {
test_that("Violin plot works for brca data", {
brca = selectViolin("brca")
- violin_test = do.call(violinPlot_mod, brca)
+ violin_test = do.call(violinPlot, brca)
skip_on_ci()
expect_snapshot_file(
@@ -115,7 +115,7 @@ test_that("Violin plot works for brca data", {
# pbmc.single <- selectViolin("pbmc.single")
#
# expect_error(
-# violinPlot_mod(
+# violinPlot(
# object = pbmc.single$object,
# group.by = pbmc.single$group.by,
# group.subset = pbmc.single$group.subset,
@@ -131,7 +131,7 @@ test_that("Violin plot works for brca data", {
# pbmc.single <- selectViolin("pbmc.single")
#
# expect_error(
-# violinPlot_mod(
+# violinPlot(
# object = pbmc.single$object,
# group.by = "jibberish",
# group.subset = pbmc.single$group.subset,
@@ -148,7 +148,7 @@ test_that("Violin plot works for brca data", {
# pbmc.single <- selectViolin("pbmc.single")
#
# expect_error(
-# violinPlot_mod(
+# violinPlot(
# object = pbmc.single$object,
# group.by = pbmc.single$group.by,
# group.subset = pbmc.single$group.subset,
diff --git a/vignettes/README.Rmd b/vignettes/README.Rmd
index c90846b..1bca615 100644
--- a/vignettes/README.Rmd
+++ b/vignettes/README.Rmd
@@ -1,6 +1,10 @@
-
---
-output: github_document
+title: "SCWorkflow-Intro"
+output: rmarkdown::html_vignette
+vignette: >
+ %\VignetteIndexEntry{SCWorkflow-Intro}
+ %\VignetteEngine{knitr::rmarkdown}
+ %\VignetteEncoding{UTF-8}
---
diff --git a/vignettes/SCWorkflow-Annotations.Rmd b/vignettes/SCWorkflow-Annotations.Rmd
index 980a63b..11e2a60 100644
--- a/vignettes/SCWorkflow-Annotations.Rmd
+++ b/vignettes/SCWorkflow-Annotations.Rmd
@@ -5,7 +5,6 @@ vignette: >
%\VignetteIndexEntry{SCWorkflow-Annotations}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
-
---
@@ -19,6 +18,7 @@ knitr::opts_chunk$set(
)
library(data.table)
+library(magrittr)
library(dplyr)
library(ggplot2)
library(tibble)
diff --git a/vignettes/SCWorkflow-DEG.Rmd b/vignettes/SCWorkflow-DEG.Rmd
index 3f88752..03802f3 100644
--- a/vignettes/SCWorkflow-DEG.Rmd
+++ b/vignettes/SCWorkflow-DEG.Rmd
@@ -5,7 +5,6 @@ vignette: >
%\VignetteIndexEntry{SCWorkflow-DEG}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
-
---
```{r, include = FALSE}
@@ -18,7 +17,7 @@ knitr::opts_chunk$set(
)
library(dplyr)
-
+library(magrittr)
run_Chunks=F
```
diff --git a/vignettes/SCWorkflow-QC.Rmd b/vignettes/SCWorkflow-QC.Rmd
index 9528534..356d9fe 100644
--- a/vignettes/SCWorkflow-QC.Rmd
+++ b/vignettes/SCWorkflow-QC.Rmd
@@ -3,7 +3,7 @@
title: "Import Data and Quality Control"
output: rmarkdown::html_vignette
vignette: >
- %\VignetteIndexEntry{SCWorkflow-Overview}
+ %\VignetteIndexEntry{SCWorkflow-QC}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
diff --git a/vignettes/SCWorkflow-Usage.Rmd b/vignettes/SCWorkflow-Usage.Rmd
index d057a6e..fafec3a 100644
--- a/vignettes/SCWorkflow-Usage.Rmd
+++ b/vignettes/SCWorkflow-Usage.Rmd
@@ -2,7 +2,7 @@
title: "Getting Started"
output: rmarkdown::html_vignette
vignette: >
- %\VignetteIndexEntry{SCWorkflow-Overview}
+ %\VignetteIndexEntry{SCWorkflow-Usage}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
diff --git a/vignettes/SCWorkflow-Visualizations.Rmd b/vignettes/SCWorkflow-Visualizations.Rmd
index ed85576..a0cea4c 100644
--- a/vignettes/SCWorkflow-Visualizations.Rmd
+++ b/vignettes/SCWorkflow-Visualizations.Rmd
@@ -173,11 +173,11 @@ You can choose how the plot looks - whether it's laid out like a grid, in rows,
```{r,eval=run_Chunks}
-FigOut=violinPlot_mod(
+FigOut=violinPlot(
object=Anno_SO$object,
assay='SCT',
- slot='scale.data',
- genes=c('Cd163','Cd38'),
+ layer='scale.data',
+ genes=c('Itgam','Cd38'),
group='SCT_snn_res.0.4',
facet_by = "",
filter_outliers = F,
@@ -190,7 +190,7 @@ FigOut=violinPlot_mod(
```
```{r,eval=run_Chunks,echo=F,results='hide'}
-ggsave(FigOut$plots, filename = "./images/Vis_Violin.png", width = 12, height = 5)
+ggsave(FigOut$plots, filename = "./images/Vis_Violin.png", width = 12, height = 7)
# png(filename="./images/Vis_Violin.png",width = 500,height = 350,pointsize = 10)
# (FigOut$plot)
@@ -198,7 +198,7 @@ ggsave(FigOut$plots, filename = "./images/Vis_Violin.png", width = 12, height =
```
-{width=600}
+
@@ -260,7 +260,7 @@ dev.off()
```
-{width=600}
+
@@ -281,7 +281,7 @@ This function can be useful for exploratory data analysis and visualizing the di
1. Seurat package Dotplot Documentation https://satijalab.org/seurat/reference/dotplot
-```{r,eval=F}
+```{r,eval=run_Chunks}
FigOut=dotPlotMet(
object=Anno_SO$object,
@@ -304,7 +304,61 @@ ggsave(FigOut$plots, filename = "./images/Vis_DPM.png", width = 9, height = 5)
```
-{width=500}
+
+
+
+
+## Compare Cell Populations
+
+---
+
+This function compares cell population composition across experimental groups (for example sample, treatment, timepoints, or donor cohorts) using metadata already stored in the Seurat object. It is useful after clustering and annotation, when you want to quantify how specific cell populations shift between conditions.
+
+The function supports both **Frequency** (percent) and **Counts** (absolute cell numbers) modes. In most biological comparisons with unequal total cell recovery across samples, frequency mode is preferred for interpretation. Counts mode can be useful for QC and yield-focused assessments.
+
+
+
+**Methodology**
+The method first aggregates metadata by annotation and group to compute percentages and counts. It then links these summaries to sample-level metadata and generates a composition-focused barplot for sample-level variability. Together, these plots help distinguish overall compositional shifts from replicate-level dispersion.
+
+
+```{r,eval=run_Chunks}
+
+FigOut=compareCellPopulations(
+ object=Anno_SO$object,
+ metadata.table=Anno_SO$object@meta.data,
+ annotation.column='immgen_main',
+ group.column='Treatment',
+ counts.type = "Frequency",
+ group.order = NULL,
+ wrap.ncols = 5
+)
+
+```
+
+```{r,eval=run_Chunks,echo=F,results='hide'}
+
+ggsave(FigOut$Plots$Barplot, filename = "./images/Vis_CCPbar.png", width = 10, height = 6)
+ggsave(FigOut$Plots$Boxplot, filename = "./images/Vis_CCPbox.png", width = 15, height = 9)
+
+# png(filename="./images/Vis_HM.png",width = 700,height = 300,pointsize = 10)
+# (FigOut$plot)
+# dev.off()
+```
+
+{width=600}
+
+
+
diff --git a/vignettes/images/Vis_CCPbar.png b/vignettes/images/Vis_CCPbar.png
new file mode 100644
index 0000000..231e5ad
Binary files /dev/null and b/vignettes/images/Vis_CCPbar.png differ
diff --git a/vignettes/images/Vis_CCPbox.png b/vignettes/images/Vis_CCPbox.png
new file mode 100644
index 0000000..94c402c
Binary files /dev/null and b/vignettes/images/Vis_CCPbox.png differ
diff --git a/vignettes/images/Vis_Violin.png b/vignettes/images/Vis_Violin.png
index 5552175..438ebaf 100644
Binary files a/vignettes/images/Vis_Violin.png and b/vignettes/images/Vis_Violin.png differ