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

evaluateSiteMetricQTL returns incorrect Status values in rv$data #12

Open
PuzzledFace opened this issue Dec 8, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@PuzzledFace
Copy link
Collaborator

rvSiteMetrics <- berrySummary %>%
                   evaluateSiteMetricQTL(
                   posterior=fitted$tab,
                   metric=p,
                   observedMetric=ObservedResponse,
                   lower=c("action"=0.05, "warn"=0.2),
                   upper=c("action"=0.95, "warn"=0.8)
                 )

rvSiteMetrics$data
#> # A tibble: 9 × 5
#>    Site Subjects Events ObservedResponse Status
#>   <int>    <dbl>  <dbl>            <dbl> <chr> 
#> 1     1       20     20            1     warn  
#> 2     2       10      4            0.4   warn  
#> 3     3       16     11            0.688 OK    
#> 4     4       19     10            0.526 warn  
#> 5     5       14      5            0.357 action
#> 6     6       46     36            0.783 OK    
#> 7     7       10      9            0.9   warn  
#> 8     8        9      7            0.778 OK    
#> 9     9        6      4            0.667 OK

Values in the Status column are clearly wrong. For example, the value in the first row should be action.

@rbqmR-review rbqmR-review added the bug Something isn't working label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants