Skip to content

Commit 507bab6

Browse files
Updated build 0.3.1 and website
1 parent bb40824 commit 507bab6

116 files changed

Lines changed: 861 additions & 185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Imports:
6262
rstatix,
6363
tidyr,
6464
CytoNorm,
65-
corrplot
65+
corrplot,
66+
S4Vectors
6667
Remotes:
6768
JinmiaoChenLab/Rphenograph,
6869
stuchly/Rphenoannoy,

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export(change_param_name)
66
export(checkInput)
77
export(check_IDs)
88
export(clr)
9+
export(condor_info)
910
export(condor_session_info)
1011
export(confusionMatrix)
1112
export(corr_plot_comparison)
@@ -26,6 +27,7 @@ export(marker_wilcox_test)
2627
export(measured_markers)
2728
export(merge_condor)
2829
export(metaclustering)
30+
export(order_param)
2931
export(plot_confusion_HM)
3032
export(plot_counts_barplot)
3133
export(plot_dim_density)

R/astir.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#' @param max_epochs Maximum number of epochs, for details see `Astir` documentation.
1111
#' @param learning_rate Learning Rate.
1212
#' @param initial_epochs initial epochs, for details see `Astir` documentation.
13+
#' @param prefix Optional prefix for the slot name of the output.
1314
#' @details Predict cell types using 'Astir'. This package requires the python library `astir` and `reticulate`. This function is still experimental and was not extensively tested in cyCONDOR. In one of the next release we will document it's usage in more details on a dedicated vignette.
1415
#' For the moment if you want to know more feel free to reach out on our `Slack` channel. For more details on the different parameters refer to `Astir` documentation.
1516
#' @import reticulate
@@ -23,7 +24,7 @@ runAstir_celltype <- function(fcd,
2324
max_epochs,
2425
learning_rate,
2526
initial_epochs,
26-
prefix = "") {
27+
prefix = NULL) {
2728

2829
# Save the expression matrix as csv
2930
write.csv(x = fcd$expr[[data_slot]], file = paste0(analysis_path, "expr.csv"))
@@ -68,7 +69,7 @@ runAstir_celltype <- function(fcd,
6869
"Learning_Rate_", learning_rate,
6970
"_Initial_Epochs_", initial_epochs))
7071

71-
fcd[["astir"]][[paste(prefix, "Astir_cell_type", data_slot, sep = "_")]] <- df
72+
fcd[["astir"]][[paste("Astir_cell_type", sub("^_", "", paste(prefix, data_slot, sep = "_")), sep = "_")]] <- df
7273

7374
return(fcd)
7475

@@ -86,6 +87,7 @@ runAstir_celltype <- function(fcd,
8687
#' @param max_epochs Maximum number of epochs.
8788
#' @param learning_rate Learning Rate.
8889
#' @param initial_epochs Initial Epochs.
90+
#' @param prefix Optional prefix for the slot name of the output.
8991
#' @import reticulate
9092
#' @importFrom utils write.csv
9193
#' @return runAstir_cellstates
@@ -98,7 +100,7 @@ runAstir_cellstates <- function(fcd,
98100
max_epochs,
99101
learning_rate,
100102
initial_epochs,
101-
prefix = "") {
103+
prefix = NULL) {
102104

103105
# Save the expression matrix as csv
104106
write.csv(x = fcd$expr[[data_slot]], file = paste0(analysis_path, "expr.csv"))
@@ -138,7 +140,7 @@ runAstir_cellstates <- function(fcd,
138140
"Learning_Rate_", learning_rate,
139141
"_Initial_Epochs_", initial_epochs))
140142

141-
fcd[["astir"]][[paste(prefix, "Astir_cell_state", data_slot, sep = "_")]] <- df
143+
fcd[["astir"]][[paste("Astir_cell_state", sub("^_", "", paste(prefix, data_slot, sep = "_")), sep = "_")]] <- df
142144

143145
return(fcd)
144146

R/data_load_and_transform.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,8 @@ export_sce <- function(fcd = condor,
686686
dir = paste0(getwd(), "/"),
687687
filename = "") {
688688

689+
message("This function is still experimental, if you run into any issue please let us know!")
690+
689691
# Extracting the expression data
690692
exp <- as.matrix(t(fcd[["expr"]][[expr_slot]]))
691693

R/data_visualization.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ confusionMatrix <- function (i = NULL, j = NULL)
225225
#' @param cluster_slot string specifying which clustering slot to use to find variable specified in cluster_var.
226226
#' @param add_pseudotime Logical, if plot should be colored by pseudotime.
227227
#' @param pseudotime_slot string specifying pseudotime name to use for visualization.
228+
#' @param add_astir Logical, if plot should be colored by Astir prediction.
229+
#' @param astir_slot string specifying astir description name to use for visualization.
228230
#' @param param parameter to visualize in the plot, this can be either a continuous variable or a categorical one, the function will react differently accordingly.
229231
#' @param order logical if you want to order the dots in the plot, by expression for example. This can help to find small populations of positive cells. If set to FALSE, the plotting order of the cells is randomized.
230232
#' @param title title of the plot.

_pkgdown.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ reference:
104104
- condor_session_info
105105
- corr_plot_comparison
106106
- write_fcs
107+
- condor_info
108+
- export_sce
109+
- order_param
107110

108111
articles:
109112
- title: Detailed cyCONDOR workflows
@@ -129,5 +132,5 @@ articles:
129132
- title: Other workflows
130133
desc: >
131134
Additional analytical workflows
132-
contents:
135+
contents:
133136
- Workflow_merge_panels

docs/404.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Batch_correction.html

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Cell_type_prediction.html

Lines changed: 52 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)