YeoLab / YeoLab/skipper

missing value where TRUE/FALSE needed in finemap_enriched_windows.R

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Rscript --vanilla skipper/bb63a25/bin/skipper/tools/finemap_enriched_windows.R output/finemapping/nt_coverage/Q0542b_CB.nt_coverage.bed output/finemapping/mapped_sites/ Q0542b_CB
── Attaching core tidyverse packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.2     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.2     ✔ tibble    3.2.1
✔ lubridate 1.9.2     ✔ tidyr     1.3.0
✔ purrr     1.0.1     
── Conflicts ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Warning messages:
1: package ‘tidyverse’ was built under R version 4.2.3 
2: package ‘ggplot2’ was built under R version 4.2.3 
3: package ‘tibble’ was built under R version 4.2.3 
4: package ‘tidyr’ was built under R version 4.2.3 
5: package ‘readr’ was built under R version 4.2.3 
6: package ‘purrr’ was built under R version 4.2.3 
7: package ‘dplyr’ was built under R version 4.2.3 
8: package ‘stringr’ was built under R version 4.2.3 
9: package ‘forcats’ was built under R version 4.2.3 
10: package ‘lubridate’ was built under R version 4.2.3 
Error in `mutate()`:
ℹ In argument: `local_maximum = row_number() %in% localMaxima(enrichment_heuristic) | finemapped`.
ℹ In group 1: `window_n = 1`, `strand = "-"`, `chr = "chr1"`.
Caused by error in `if (x[[1]] == x[[2]]) ...`:
! missing value where TRUE/FALSE needed
Backtrace:
     ▆
  1. ├─... %>% ...
  2. ├─dplyr::filter(., enrichment_heuristic > enrichment_median, local_maximum)
  3. ├─dplyr::mutate(...)
  4. ├─dplyr:::mutate.data.frame(...)
  5. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
  6. │   ├─base::withCallingHandlers(...)
  7. │   └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
  8. │     └─mask$eval_all_mutate(quo)
  9. │       └─dplyr (local) eval()
 10. ├─row_number() %in% localMaxima(enrichment_heuristic)
 11. ├─global localMaxima(enrichment_heuristic)
 12. └─base::.handleSimpleError(...)
 13.   └─dplyr (local) h(simpleError(msg, call))
 14.     └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
Execution halted

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the reported Rscript command with the supplied input paths and inspect skipper/tools/finemap_enriched_windows.R, starting at the mutate call that invokes localMaxima(enrichment_heuristic). Trace the group 1 data for window_n 1, strand "-", and chr1 to identify the missing value; done means the command completes without the TRUE/FALSE error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
bioinformatics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.