Skip to content

Commit a2b139f

Browse files
Merge pull request #8 from lorenzobonaguro/dev
Update to version 0.1.6
2 parents 75c2862 + dced26e commit a2b139f

288 files changed

Lines changed: 19322 additions & 16998 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.

.Rhistory

Lines changed: 480 additions & 480 deletions
Large diffs are not rendered by default.

DESCRIPTION

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Package: cyCONDOR
22
Type: Package
33
Title: Flow Cytometry data analysis toolbox
4-
Version: 0.1.5
5-
Author: Lorenzo Bonaguro
6-
Maintainer: Lorenzo Bonaguro <lorenzobonaguro@uni-bonn.de>
4+
Version: 0.1.6
5+
Authors@R: c(
6+
person(given = "Lorenzo", family = "Bonaguro", email = "lorenzo.bonaguro@dzne.de", role = c("aut", "cre")),
7+
person(given = "Charlotte", family = "Kroeger", email = "charlotte.kroeger@dzne.de", role = "aut"),
8+
person(given = "Sophie", family = "Mueller", email = "sophie.mueller@dzne.de", role = "aut"),
9+
person(given = "Jacqueline", family = "Leidner", email = "jacqueline.leidner@dzne.de", role = "aut")
10+
)
711
Description: Flow cytometry analysis workflow. The aim of this project if to
812
provide an intuitive workflow for the analysis of high-dimensionality cytometry data in R.
913
URL: https://github.com/lorenzobonaguro/condor
@@ -48,7 +52,13 @@ Imports:
4852
DelayedMatrixStats,
4953
cowplot,
5054
dplyr,
51-
reticulate
55+
reticulate,
56+
SummarizedExperiment,
57+
diffcyt,
58+
ggridges,
59+
rstatix,
60+
tidyr,
61+
CytoNorm
5262
RoxygenNote: 7.2.3
5363
VignetteBuilder: knitr
5464
Suggests:

NAMESPACE

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
export(HM_differential_marker)
4-
export(HM_markers)
53
export(PC_loadings)
6-
export(barplot_frequency)
7-
export(boxplot_and_stats)
84
export(change_param_name)
5+
export(checkInput)
96
export(check_IDs)
107
export(clr)
118
export(confusionMatrix)
12-
export(confusion_HM)
13-
export(densityplot_marker)
149
export(df_frequency)
15-
export(dotplot_cyto)
1610
export(filter_fcd)
11+
export(frequency_anova_test)
12+
export(frequency_friedman_test)
13+
export(frequency_kruskal_test)
14+
export(frequency_t_test)
15+
export(frequency_wilcox_test)
16+
export(getTable)
1717
export(harmonize_PCA)
1818
export(harmonize_intensities)
1919
export(learnUMAP)
20+
export(marker_wilcox_test)
21+
export(measured_markers)
2022
export(merge_condor)
2123
export(metaclustering)
22-
export(nfTransform)
23-
export(plot_density)
24-
export(plot_marker)
24+
export(plot_confusion_HM)
25+
export(plot_counts_barplot)
26+
export(plot_dim_density)
27+
export(plot_dim_red)
28+
export(plot_frequency_barplot)
29+
export(plot_frequency_boxplot)
30+
export(plot_marker_HM)
31+
export(plot_marker_boxplot)
32+
export(plot_marker_density)
33+
export(plot_marker_dotplot)
34+
export(plot_marker_group_HM)
35+
export(plot_marker_ridgeplot)
36+
export(plot_marker_violinplot)
2537
export(predict_classifier)
2638
export(predict_labels)
27-
export(prepFcsFolderData)
39+
export(prepInputDiffcyt)
2840
export(prep_fcd)
2941
export(prep_fjw)
42+
export(read_data)
3043
export(runAstir_cellstates)
3144
export(runAstir_celltype)
3245
export(runDM)
@@ -36,33 +49,41 @@ export(runPCA_pseudobulk)
3649
export(runPhenograph)
3750
export(runPseudotime)
3851
export(runUMAP)
52+
export(run_cytonorm)
3953
export(runtSNE)
4054
export(scaleColors)
4155
export(subset_fcd)
4256
export(train_classifier_model)
57+
export(train_cytonorm)
4358
export(train_transfer_model)
44-
export(violinplot_marker)
59+
export(transform_data)
60+
export(used_markers)
4561
import(Biobase)
4662
import(CytoDx)
4763
import(CytoML)
64+
import(CytoNorm)
4865
import(DelayedMatrixStats)
66+
import(FlowSOM)
4967
import(Hmisc)
5068
import(RColorBrewer)
5169
import(Rmisc)
5270
import(Rphenograph)
5371
import(Rtsne)
5472
import(SingleCellExperiment)
73+
import(SummarizedExperiment)
5574
import(caret)
5675
import(cowplot)
5776
import(destiny)
5877
import(devtools)
78+
import(diffcyt)
5979
import(dplyr)
6080
import(flowCore)
6181
import(flowWorkspace)
6282
import(ggplot2)
6383
import(ggpubr)
6484
import(ggrastr)
6585
import(ggrepel)
86+
import(ggridges)
6687
import(ggsci)
6788
import(harmony)
6889
import(pheatmap)
@@ -71,9 +92,13 @@ import(readr)
7192
import(readxl)
7293
import(reshape2)
7394
import(reticulate)
95+
import(rstatix)
7496
import(slingshot)
97+
import(stats)
7598
import(stringr)
99+
import(tidyr)
76100
import(umap)
101+
import(uwot)
77102
importFrom(Matrix,sparseMatrix)
78103
importFrom(igraph,membership)
79104
importFrom(utils,packageDescription)

NEWS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# cyCONDOR 0.1.6
2+
3+
* Reorganization of existing visualization functions including harmonization of function names and function arguments, utilization of `condor` object as main input object and addition of more extensive documentation and error messages.
4+
* Added visualization functions `plot_counts_barplot()`, `plot_marker_ridgeplot()` and `plot_marker_boxplot()`
5+
* Added `getTable()` function to generate tables of cell population counts and frequencies, as well as mean or median marker expression for all cell population - sample - marker combinations.
6+
* `boxplot_and_stats()` function was replaces by `plot_frequency_boxplot()` function for visualization and several functions to conduct statistical tests on population frequencies.
7+
* Added wrapper functions around basic statistical tests to compare cell population frequencies between groups of samples (`frequency_t_test()`, `frequency_wilcox_test()`, `frequency_anova_test()`, `frequency_kruskal_test()`, `frequency_friedman_test()`)
8+
* Added `prepInputDiffcyt()` function to transform the `condor` object into an SummarizedExperiment object compatible with the `diffcyt` package for differential testing.
9+
* Renaming of arguments in `runPseudotime()` function to harmonize within the package
10+
* Renaming of arguments in `metaclustering()` function to harmonize within the package
11+
* Updated documentation
12+
* Renaming of arguments in multiple function to harmonize within the package
13+
* Setting a default seed in multiple functions
14+
* Added functions to use the `CytoNorm` algorithm for batch normalization
15+
* Bug fixes in `prep_flw()` when merging annotation and removing parameters, saving of import parameters in extras slot of fcd
16+
* Added new parameters in `runFlowSOM()` to determine size of FlowSOM grid
17+
* implemented marker selection (`runPCA()`, `runUMAP()`, `runDM()`, `runtSNE()`, `runPhenograph()`, `runFlowSOM()`), saving of marker selection in extra slot of fcd
18+
* Added functions to extract all markers present in fcd (`measured_markers()`) or selected markers (`used_markers()`)
19+
* Added function to visualize PC loadings
20+
* Simplified data loading and transformation function including useful error messages
21+
* Included `arcsinh` transformation with cofactor 5 for cyTOF data
22+
123
# cyCONDOR 0.1.5
224

325
* Fix bug in the definition of tab separator when loading csv files

R/astir.R

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
#' runAstir_celltype
1+
#' Run Astir cell type prediction
22
#'
3-
#' @title runAstir_celltype
4-
#' @description Predict cell types using Astir. This package requires the python library `astir` and `reticulate` to work.
3+
#' @title Run Astir cell type prediction
4+
#' @description Predict cell types using 'Astir'. This package requires the python library `astir` and `reticulate` to work.
5+
#' The function returns a `condor` object with automatically annotated cell types and QC of the annotation, the results are also saved in a folder specified by the user.
56
#' @param fcd Flow cytometry dataset.
67
#' @param data_slot Data slot to use for the analysis (e.g. "orig" or "norm").
78
#' @param analysis_path Full path to the output folder of astir analysis.
89
#' @param manifest_name Filename of the manifest file, this file must be located in the `analysis_path` folder.
9-
#' @param max_epochs Maximum number of epochs.
10+
#' @param max_epochs Maximum number of epochs, for details see `Astir` documentation.
1011
#' @param learning_rate Learning Rate.
11-
#' @param initial_epochs Initial Epochs.
12+
#' @param initial_epochs initial epochs, for details see `Astir` documentation.
13+
#' @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.
14+
#' 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.
1215
#' @import reticulate
1316
#' @return runAstir_celltype
1417
#'
@@ -70,10 +73,11 @@ runAstir_celltype <- function(fcd,
7073

7174
}
7275

73-
#' runAstir_cellstates
76+
#' Run Astir cell state prediction
7477
#'
7578
#' @title runAstir_cellstates
7679
#' @description Predict cell states using Astir. This package requires the python library `astir` and `reticulate` to work.
80+
#' The function returns a `condor` object with automatically annotated cell states and QC of the annotation, the results are also saved in a folder specified by the user.
7781
#' @param fcd Flow cytometry dataset.
7882
#' @param data_slot Data slot to use for the analysis (e.g. "orig" or "norm").
7983
#' @param analysis_path Full path to the output folder of astir analysis.

0 commit comments

Comments
 (0)