GithubHelp home page GithubHelp logo

biomedbigdata / cyanus Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 16.75 MB

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

R 99.32% Dockerfile 0.28% Shell 0.40%

cyanus's People

Contributors

judithbernett avatar lisiarend avatar quirinmanz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cyanus's Issues

Issues with probe options for Differential Marker Expression Analysis

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

Access medians per conditions

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.

Struggling with integrating Panel data

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

Issue with csv file from flowjow

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

Markers instead of samples on cluster heatmap?

is it possible to have this with the markers instead of the samples? So markers for each clusters?
I also tried the marker densities section from the 2. Visualize Clustering and it doesn´t work, it appear an error, do you know why?

image

image

Empty keyword name detected error message while loading data

The following error message occurred when uploading the data:
Loading the data failed with the following message:
Empty keyword name detected!If it is due to the double delimiters in keyword value, please set emptyValue to FALSE and try again!

Bildschirmfoto 2022-12-06 um 16 51 17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.