Giter Club home page Giter Club logo

Comments (9)

stemangiola avatar stemangiola commented on June 16, 2024 1

you are missing a c() for the first command.

Please try and let me know. Also this command depend on the column names of your dataset (similarly to model.matrix command)

from tidybulk.

stemangiola avatar stemangiola commented on June 16, 2024

Is the reply here helpful?

https://support.bioconductor.org/p/9149049/#9149050

otherwise I can elaborate further.

from tidybulk.

adityamahadevaniyer avatar adityamahadevaniyer commented on June 16, 2024

Thank you. Useful comment.

Will this work?

test_differential_abundance( ~treatment, method = “”, contrast = (“treatmentT1 + treatmentT2 + treatmentT3)/3 - treatmentControls")
will work for edgeR and limma-voom right.

will
test_differential_abundance (~treatment, method = “DESeq2”, contrast = list (c(“ treatmentT1 + treatmentT2 + treatmentT3)/3 - treatmentControls”)
work for DESeq2
Am I right?

from tidybulk.

adityamahadevaniyer avatar adityamahadevaniyer commented on June 16, 2024

Got it . Thank you. I will try this first thing tomorrow and let you if this works. I will also ensure the column names are ok & matching the ones specified in the function.

from tidybulk.

adityamahadevaniyer avatar adityamahadevaniyer commented on June 16, 2024

I tried the following code
counts %>% test_differential_abundance( ~ , method = “DESeq2”, contrasts = list (c(-1, 1/3, 1/3, 1/3)), omit_contrast_in_colnames = TRUE)

No errors while running the DESeq2 codeBut when I check number of DE genes , I get 43 Up and 15100 odd genes Downregulated. That seems odd. Right?

I used the following for edgeR/ limma voom
counts %>% test_differential_abundance( ~ , method = “”, contrasts = c(-1, 1/3, 1/3, 1/3), omit_contrast_in_colnames = TRUE)

I get the following warnings while running edgeR/voom

IMG_0161

Are there issues related to default edgeR in tidybulk? https://support.bioconductor.org/p/9147697/

from tidybulk.

adityamahadevaniyer avatar adityamahadevaniyer commented on June 16, 2024

Update for the DESeq2. I tried excluding the intercept in the formula by specifying ~ 0 + treatment . That seem to work! Yet to figure something out for edgeR/voom

from tidybulk.

stemangiola avatar stemangiola commented on June 16, 2024

I used the following for edgeR/ limma voom counts %>% test_differential_abundance( ~ , method = “”, contrasts = c(-1, 1/3, 1/3, 1/3), omit_contrast_in_colnames = TRUE)

couple of points,

  • always specify a method, not "".
  • Please see documentation ?test_differential_abundance on how to set contrasts for edgeR and voom. Please execute the examples in the documentation first.

from tidybulk.

adityamahadevaniyer avatar adityamahadevaniyer commented on June 16, 2024

Thank you. I am working on a different computer. so I am manually typing the commands and the output here. It’s difficult to type the entire method , so I obviously change the method argument and take care of the syntax when I try the command on my work PC.
The above command for edgeR/limma generated the warnings as shown in the picture above. Anyways thank you for the help.

from tidybulk.

stemangiola avatar stemangiola commented on June 16, 2024

Close for inactivity

from tidybulk.

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.