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

Question about the _compute_graph_overlap_stats() function #66

Open
xiachenrui opened this issue Feb 21, 2024 · 0 comments
Open

Question about the _compute_graph_overlap_stats() function #66

xiachenrui opened this issue Feb 21, 2024 · 0 comments

Comments

@xiachenrui
Copy link

Hi all,

I found following code in _compute_graph_overlap_stats() function, but I can not understand it. How do you calculate the f'log10_overlap_sdev, log10_expected_overlap and total_log10_indegree_variance, and what do them mean? I can not found more information in the manuscript. Any explaination will be useful.

    ## params for log10_s determined with
    ## statsmodels.formula.api.ols(f'log10_overlap_sdev ~
    ##     log10_expected_overlap + total_log10_indegree_variance,...)
    # Intercept                       -0.340085
    # log10_expected_overlap           0.691433
    # total_log10_indegree_variance    0.253497
    total_log10_indegree_variance = (
        np.log10(gex_indegree_bias_stats.variance)+
        np.log10(tcr_indegree_bias_stats.variance))
    log10_s_fitted = (0.691433 * np.log10(expected_overlap)
                      +0.253497 * total_log10_indegree_variance
                      -0.340085)
    s_fitted = 10**log10_s_fitted
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

1 participant