Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with normalize.R #57

Open
adriaaula opened this issue Sep 14, 2016 · 1 comment
Open

Problems with normalize.R #57

adriaaula opened this issue Sep 14, 2016 · 1 comment

Comments

@adriaaula
Copy link

One little thing,

Since you calculate the normalization factors but you doesn't use them for 'normalize' the data your return(physeq) simply retrieves a physeq object with the previous counts + 1.

In order to change that, a calculus of the normalization counts has to be done. I have been writing something like that, but it needs to be checked out:

Substitute this:

counts <- t(z[[1]])
For this:

lib.size <- z$samples$lib.size
lib.size <- lib.size * z$samples$norm.factors
counts <- t(z[[1]] *100 / lib.size)

@audy
Copy link
Owner

audy commented Sep 14, 2016

I borrowed the code from here. You might want to take this issue there. I ended up not using this function in my analysis for this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants