biomedbigdata / cyanus Goto Github PK
View Code? Open in Web Editor NEWA Systematic Comparison of Differential Analysis Methods for CyTOF Data & CYANUS App
Home Page: https://exbio.wzw.tum.de/cyanus/
License: GNU General Public License v3.0
A Systematic Comparison of Differential Analysis Methods for CyTOF Data & CYANUS App
Home Page: https://exbio.wzw.tum.de/cyanus/
License: GNU General Public License v3.0
Hi CYANUS team. We have found a small problem with the analysis, although I have access to select all probes that were included in the experiment in the earlier "Clustering" stages "Features to use for clustering", when we reach the "Differential Marker Expression Analysis" stage I do not have access to all of the probes as "Features to use for differential expression analysis". Please see screen shots for examples: We are missing ~10 probes. Any advice you can offer would be greatly appreciated. Best wishes, Emma
In case you want to access the exact median expressions per condition (or other stats), we have prepared a script for you. First, download your sce object using the button on the upper right. Then, modify your paths:
path_to_sce <- "~/Downloads/sce.rds"
path_to_output <- "~/Downloads/medians_per_condition.csv"
condition <- "condition"
sample_id <- "sample_id"
Install and load packages
install.packages("data.table")
install.packages("ggplot2")
if (!require("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("SingleCellExperiment")
library(SingleCellExperiment)
library(data.table)
library(ggplot2)
Read in your SCE object
sce <- readRDS(path_to_sce)
Extract the expression data and add metadata information
exprs_dt <- data.table(t(assays(sce)$exprs))
exprs_dt[, (condition) := colData(sce)[, condition]]
exprs_dt[, (sample_id) := colData(sce)[, sample_id]]
# reformat for easier calculation
exprs_dt <- melt(exprs_dt, id.vars = c(condition, sample_id), variable.name = "marker", value.name = "exprs")
Calculate medians per condition
median_dt <- exprs_dt[, median(exprs), by=c(condition, "marker")]
colnames(median_dt) <- c(condition, "marker", "median")
print(median_dt)
# export
fwrite(median_dt, path_to_output)
Sanity check: reproduce boxplot from CYANUS
# calculate medians per condition per sample id
median_per_sample_dt <- exprs_dt[, median(exprs), by=c(condition, sample_id, "marker")]
colnames(median_per_sample_dt) <- c(condition, sample_id, "marker", "median")
ggplot()+
geom_boxplot(data = median_per_sample_dt, aes(x = get(condition), y = median, color = get(condition)))+
geom_point(data = median_dt, aes(x = get(condition), y = median))+
facet_wrap(~marker, scales = "free_y")+
theme_bw()
Attention: the median per marker per condition is not the same as the median over the medians per marker per condition per sample id. This is why the black points do not match the boxplot lines exactly.
Loading the data failed with the following message:
panel[[panel_cols$channel]] %in% colnames(fs) are not all TRUE
Is there any option as non bioinformatician to extract the panel information from an .fcs file quite easy?
I tried 100 times to manually create an .xls or .csv file and the error code above always appears.
Best
mario
Hi there,
I have uploaded my cvs files, after extrapolation of the CD45 positiv population with Flowjow. In the antibodies panel I have the included to the kit mastermix (Human Maxpar) other few antibodies. When I look at the data in cyanus, it looks like as one of the new marker I added doesn´t have any signal. I see the signal with the same csv file in Flowjow.
Do you know why this is happening?
I am happy to discuss this topic further.
Best wishes,
Gabriella
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.