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

Normalization factor vs. scale factor #10

Open
yuhuihui2011 opened this issue Oct 19, 2022 · 1 comment
Open

Normalization factor vs. scale factor #10

yuhuihui2011 opened this issue Oct 19, 2022 · 1 comment

Comments

@yuhuihui2011
Copy link

Hello,

The SF in the output file (test_SF.txt) is scale factor and DGEList function in edgeR needs normalization factors. So I think the
norm.factors should be 1/SF.

dge <- DGEList(counts = counts, group = GROUP, norm.factors = SF)

should be:

dge <- DGEList(counts = counts, group = GROUP, norm.factors = 1/SF)

And in the part: What happens if 100% complete loss is expected? You just used 1/SF. This is a little confusing.

Would you please clarify this issue?

Thanks

@hongjianjin
Copy link
Collaborator

hongjianjin commented Oct 24, 2022

It is always correct to use SF in this way
dge <- DGEList(counts = counts, group = GROUP, norm.factors = SF)

When 100% complete loss is true, please note that there is NO accurate way to calculate a SF because there is no true signal in these samples. The proposed transformation is to assign an arbitrary value 1 to this sample group and scale down the other group to make a pseudo- scaling factors. It is ONLY suitable for a naïve design having only two groups. In a design like controls (n=3, real SFs= 2, 2, 3), vs ko(n=3, real SFs=NA, NA,NA) . The pseudo-SFs will be 0.5,0.5,0.3 (controls) and 1,1,1 (ko) so that you can see a global decrease in ko group.

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