Git Product home page Git Product logo

Comments (2)

johannesostner avatar johannesostner commented on June 12, 2024

Hi!
If you have three conditions and want to look at changes between all of them, I can think of two options, based on the question you ask. Assuming that your conditions right now are a column in adata.obs that is sth like "A,A,B,B,C,A,B,...":

If you want to know what changes between conditions (i.e. whats the difference between treatment A and treatment B), then you can remove all samples of one condition from the data and compare the other two, then repeat this 3 times (A & B, A & C, and B & C), as you described.
I'm not quite sure what you mean with your last sentence, though. The discussion you linked was about selecting a reference cell type (that is assumed to stay constant under the condition(s)), not about conditions.

If you want to know what difference the presence of a condition makes (i.e. treatment A vs. not treatment A), you can just make new (binary) columns in adata.obs that represent this (is_A = (1,1,0,0,0,1,0,...)) for all conditions and use these in the formula, one at a time.
You might take these results with a grain of salt, though, since your samples with is_A = 0 have either condition B or C. If sth happens in B and C, but not in A, you will get an effect on A. As long as you don't have samples where none of the conditions is present, there's no way to distinguish these interpretations.

from sccoda.

kanefos avatar kanefos commented on June 12, 2024

Ok perfect, thank you. That makes perfect sense, I will simply remove a condition and run the three contrasts as you suggested. You second suggestion was also informative, thank you.

from sccoda.

Related Issues (20)

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.