Giter Site home page Giter Site logo

bims8382's People

Contributors

stephenturner avatar vpnagraj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bims8382's Issues

RNA-seq: take mean, not sum of counts

In the poor man's DGE section, you're summing the control and treated samples, not getting the mean. Fix with something like:

meancounts <- rawcounts %>%
  mutate(controlmean=(SRR1039508+SRR1039512+SRR1039516+SRR1039520)/4) %>%
  select(ensgene, controlmean)

Questions about problem3 in exercise set 4 in Power & sample size in Essential Statistics with R

Dear Sir,

Thanks for your tutorial, and it helps me a lot.

I am curious about the difference between pwr.2p.test and power.prop.test. There is a difference between the results. Which one is better?

Question:
You’re doing a population genome-wide association study (GWAS) looking at the effect of a SNP on disease X. Disease X has a baseline prevalence of 5% in the population, but you suspect the SNP might increase the risk of disease X by 10% (this is typical for SNP effects on common, complex diseases). Calculate the number of samples do you need to have 80% power to detect this effect, given that you want a genome-wide statistical significance of p<5×10−8
to account for multiple testing. (Hint, you can expressed 5×10−8 in R using 5e-8 instead of .00000005).

power.prop.test(power = 0.8, p1 = 0.05, p2 = 0.055, sig.level = 5e-8)

The result is 157589.5.

pwr.2p.test(h = ES.h(p1 = 0.05, p2 = 0.055), sig.level = 5e-8, power = 0.8)

The result is 157505.8.

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.