Skip to content

p-values in the output plot is on negative natural log scale? #55

Description

@ruthchia

Hi,
I wanted to check if the -log10(P) values included in the focus plot are on the log10 or natural log scale.
I did some conversions of the Z-scores and noticed that it did not match up when I recalculated it in R.

For example, for a Z-score value of 4.5800, the FOCUS outputted -log10(P) in the plot was 12.27869 .
When I calculated in R (see below), I got a different value. Can you please help clarify? Did I miss something that resulted in my calculations being incorrect?

Thanks,
Ruth

> Z = 4.5800
> P = 2*pnorm(abs(Z), lower.tail = FALSE) # convert Z-score to P-values
> P
[1] 4.649759e-06
> -log10(P). # convert P-values to -log10(P)
[1] 5.33257

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions