-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Hi!
Thank you for making this analytical toolset.
I am attempting to use the ClosestFeature function to annotate my FindMarkers result with gene names. However, I keep receiving this error
Error in
$<-.data.frame
(*tmp*
, "query_region", value = c("chr1-208176523-208178576", : replacement has 87552 rows, data has 87532
Digging into the function, I found that the Genomic Ranges distanceToNearest
function is not returning the same amount of rows as the number of regions I am querying. This function is returning 87532 rows, while the number of regions I queried is 87552. This seems to cause issues later in the function when a column is trying to be added to the dataframe adding my queried regions, which now have more rows than the dataframe. I would assume distanceToNearest should be filling in regions where there is no result with "NA" to keep the rows the same length, but it's not.
## example commands
ranges_da_peaks <- rownames(da_peaks[da_peaks$p_val_adj < 0.05, ])
ClosestFeature(object, regions = ranges_da_peaks )
Session info:
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats4 parallel stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] RColorBrewer_1.1-2 future_1.21.0
[3] hdf5r_1.3.3 patchwork_1.1.1
[5] ggplot2_3.3.5 EnsDb.Hsapiens.v86_2.99.0
[7] ensembldb_2.16.2 AnnotationFilter_1.16.0
[9] GenomicFeatures_1.44.0 AnnotationDbi_1.54.1
[11] Biobase_2.52.0 GenomicRanges_1.44.0
[13] GenomeInfoDb_1.28.1 IRanges_2.26.0
[15] S4Vectors_0.30.0 BiocGenerics_0.38.0
[17] Signac_1.3.0 SeuratObject_4.0.2
[19] Seurat_4.0.3
loaded via a namespace (and not attached):
[1] utf8_1.2.1 reticulate_1.20
[3] tidyselect_1.1.1 RSQLite_2.2.7
[5] htmlwidgets_1.5.3 grid_4.1.0
[7] docopt_0.7.1 BiocParallel_1.26.1
[9] Rtsne_0.15 munsell_0.5.0
[11] codetools_0.2-18 ica_1.0-2
[13] pbdZMQ_0.3-5 miniUI_0.1.1.1
[15] withr_2.4.2 colorspace_2.0-2
[17] filelock_1.0.2 uuid_0.1-4
[19] ROCR_1.0-11 tensor_1.5
[21] listenv_0.8.0 MatrixGenerics_1.4.0
[23] labeling_0.4.2 slam_0.1-48
[25] repr_1.1.3 GenomeInfoDbData_1.2.6
[27] polyclip_1.10-0 bit64_4.0.5
[29] farver_2.1.0 parallelly_1.26.1
[31] vctrs_0.3.8 generics_0.1.0
[33] BiocFileCache_2.0.0 lsa_0.73.2
[35] ggseqlogo_0.1 R6_2.5.0
[37] bitops_1.0-7 spatstat.utils_2.2-0
[39] cachem_1.0.5 DelayedArray_0.18.0
[41] assertthat_0.2.1 promises_1.2.0.1
[43] BiocIO_1.2.0 scales_1.1.1
[45] gtable_0.3.0 globals_0.14.0
[47] goftest_1.2-2 rlang_0.4.11
[49] RcppRoll_0.3.0 splines_4.1.0
[51] rtracklayer_1.52.0 lazyeval_0.2.2
[53] spatstat.geom_2.2-0 yaml_2.2.1
[55] reshape2_1.4.4 abind_1.4-5
[57] httpuv_1.6.1 tools_4.1.0
[59] ellipsis_0.3.2 spatstat.core_2.2-0
[61] ggridges_0.5.3 Rcpp_1.0.7
[63] plyr_1.8.6 base64enc_0.1-3
[65] progress_1.2.2 zlibbioc_1.38.0
[67] purrr_0.3.4 RCurl_1.98-1.3
[69] prettyunits_1.1.1 rpart_4.1-15
[71] deldir_0.2-10 pbapply_1.4-3
[73] cowplot_1.1.1 zoo_1.8-9
[75] SummarizedExperiment_1.22.0 ggrepel_0.9.1
[77] cluster_2.1.2 magrittr_2.0.1
[79] data.table_1.14.0 scattermore_0.7
[81] lmtest_0.9-38 RANN_2.6.1
[83] SnowballC_0.7.0 ProtGenerics_1.24.0
[85] fitdistrplus_1.1-5 matrixStats_0.59.0
[87] hms_1.1.0 mime_0.11
[89] evaluate_0.14 xtable_1.8-4
[91] XML_3.99-0.6 sparsesvd_0.2
[93] gridExtra_2.3 compiler_4.1.0
[95] biomaRt_2.48.2 tibble_3.1.2
[97] KernSmooth_2.23-20 crayon_1.4.1
[99] htmltools_0.5.1.1 mgcv_1.8-36
[101] later_1.2.0 tidyr_1.1.3
[103] DBI_1.1.1 tweenr_1.0.2
[105] dbplyr_2.1.1 MASS_7.3-54
[107] rappdirs_0.3.3 Matrix_1.3-4
[109] igraph_1.2.6 pkgconfig_2.0.3
[111] GenomicAlignments_1.28.0 IRdisplay_1.0
[113] plotly_4.9.4.1 spatstat.sparse_2.0-0
[115] xml2_1.3.2 XVector_0.32.0
[117] stringr_1.4.0 digest_0.6.27
[119] sctransform_0.3.2 RcppAnnoy_0.0.18
[121] spatstat.data_2.1-0 Biostrings_2.60.1
[123] leiden_0.3.8 fastmatch_1.1-3
[125] uwot_0.1.10 restfulr_0.0.13
[127] curl_4.3.2 shiny_1.6.0
[129] Rsamtools_2.8.0 rjson_0.2.20
[131] lifecycle_1.0.0 nlme_3.1-152
[133] jsonlite_1.7.2 viridisLite_0.4.0
[135] fansi_0.5.0 pillar_1.6.1
[137] lattice_0.20-44 KEGGREST_1.32.0
[139] fastmap_1.1.0 httr_1.4.2
[141] survival_3.2-11 glue_1.4.2
[143] qlcMatrix_0.9.7 png_0.1-7
[145] bit_4.0.4 ggforce_0.3.3
[147] stringi_1.6.2 blob_1.2.1
[149] memoise_2.0.0 IRkernel_1.2
[151] dplyr_1.0.7 irlba_2.3.3
[153] future.apply_1.7.0