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

BigwigTrack Error #1389

Closed
DLGisch opened this issue Apr 23, 2023 · 2 comments
Closed

BigwigTrack Error #1389

DLGisch opened this issue Apr 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@DLGisch
Copy link

DLGisch commented Apr 23, 2023

Hi Signac team,

I got an error in BigwigTrack function:

I used this code before and everything worked, but now give me an error.
Is there any clue about the issue?

Thank you for any help,
Debora

gene.name <- c("UMOD")
g <- 1L
gr0 <- LookupGeneCoords(combine.atac, gene = gene.name[g])
         BigwigTrack(
         bigwig.scale = 'separate',
         region =gr0,
         bigwig = list(
           H3K27Ac = "H3K27Ac.bw",
           H3K27me3 = "H3K27me3.bw"
         ),
         y_label = "CUT&RUN"
        )

Error:

> rlang::last_trace()
<error/rlang_error>
Error in `slice_sample()`:
! `n` must be a round number, not the number 6274.7.
---
Backtrace:
    ▆
 1. └─Signac::BigwigTrack(...)
 2.   ├─dplyr::slice_sample(.data = all.data, n = sampling)
 3.   └─dplyr:::slice_sample.data.frame(.data = all.data, n = sampling)
 4.     └─dplyr:::get_slice_size(n = n, prop = prop, allow_outsize = replace)
 5.           └─dplyr:::check_slice_n_prop(n, prop, error_call = error_call)  
 6.                 └─rlang::abort(...)

sessionInfo()

R version 4.2.0 (2022-04-22)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS

attached base packages:
[1] stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] GenomicRanges_1.50.2 GenomeInfoDb_1.34.9  IRanges_2.32.0       S4Vectors_0.36.2     BiocGenerics_0.44.0  ggplot2_3.4.2       
 [7] patchwork_1.1.2      Signac_1.9.0.9003    SeuratObject_4.1.3   Seurat_4.3.0        

@DLGisch DLGisch added the bug Something isn't working label Apr 23, 2023
@timoast
Copy link
Collaborator

timoast commented Apr 24, 2023

I just made a change that should fix this, although I have not tested it. Can you install from the develop branch and try again?

@DLGisch
Copy link
Author

DLGisch commented Apr 24, 2023

Hi @timoast,
Now it's working again.
Thank you,
Debora

@timoast timoast closed this as completed Apr 25, 2023
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