-
Notifications
You must be signed in to change notification settings - Fork 3
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
up vs downregulated genes in a geneset #18
Comments
Yeah, there’s some gene sets that are defined as being ‘down’ and some are
defined in two parts, one up, one down. Currently, if you have a gene set
defined as DN, and the genes are low ranked, then the score is high.
So in the Hallmark genesets at MSigDB, there’s a UV response gene set
that’s defined in two parts, UP and DN… and it was my goal to make the
package compatible with MSigDB.
https://www.gsea-msigdb.org/gsea/msigdb/human/geneset/HALLMARK_UV_RESPONSE_DN.html
But in the future, might not be important, but there’s a use case anyway.
…-dave
On Wed, May 24, 2023 at 11:37 PM redst4r ***@***.***> wrote:
the geneset-class supports sets where some genes are positively associated
with a signature (UP) and other that are negatively associated (DN).
Do we even utilize that in the scoring?
One way (seen in some papers):
- calculate a score s_up for positive genes in the set
- calculate a score s_dn for negative genes in the set
- the final score is their difference s_up-s_dn
—
Reply to this email directly, view it on GitHub
<#18>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEJFSIZPLLT2YFDEDUV5KLXH344BANCNFSM6AAAAAAYOLZTLI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
it's definitely a good thing to account for, a bunch of those "newer" genesets are weighted (some with negative weights), e.g. Progeny I just wasn't sure if the scoring functions handle it accordingly. It seems to be done This is for the non-ranked version if (gs.mode == 'UP') and (ranked == False):
res0 = method_selector(gs, x, 'counts', gs.genes_up, method, method_params)
elif (gs.mode == 'DN') and (ranked == False):
res0 = method_selector(gs, x, 'counts', gs.genes_dn, method, method_params)
elif (gs.mode == 'BOTH') and (ranked == False):
res0_up = method_selector(gs, x, 'counts', gs.genes_up, method, method_params)
res0_dn = method_selector(gs, x, 'counts', gs.genes_dn, method, method_params)
res0 = (res0_up + res0_dn) Here, it looks like For elif (gs.mode == 'UP') and (ranked == True):
res0 = method_selector(gs, x, 'uprank', gs.genes_up, method, method_params)
elif (gs.mode == 'DN') and (ranked == True):
res0 = method_selector(gs, x, 'dnrank', gs.genes_dn, method, method_params)
elif (gs.mode == 'BOTH') and (ranked == True):
res0_up = method_selector(gs, x, 'uprank', gs.genes_up , method, method_params)
res0_dn = method_selector(gs, x, 'dnrank', gs.genes_dn, method, method_params)
res0 = (res0_up + res0_dn) Looks like it's inverting the ranks for the ConclusionSeems to work correctly for |
Yeah, thanks for thinking about this. Agree that in the ranked case we're ok, and with testing it seems to work. proposal: |
the geneset-class supports sets where some genes are positively associated with a signature (UP) and other that are negatively associated (DN).
Do we even utilize that in the scoring?
One way (seen in some papers):
s_up
for positive genes in the sets_dn
for negative genes in the sets_up-s_dn
The text was updated successfully, but these errors were encountered: