Can't `cbind` DelayedArray instances with other matrix-likes

Abierto
#100 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
r
Área
data

Línea de trabajo

Start by reproducing the mixed cbind(y, x) and cbind(y, y) examples from the issue, then inspect the bindCOLS method dispatch for DelayedMatrix. Done means cbind accepts a DelayedArray together with a regular matrix without the reported method error, while preserving the existing DelayedArray result behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I could have sworn this used to work.

library(DelayedArray)
x <- matrix(runif(100), 10, 10)
y <- DelayedArray(x)
cbind(y, x)
## Error in (function (classes, fdef, mtable)  : 
##   unable to find an inherited method for function ‘bindCOLS’ for signature ‘"DelayedMatrix"’

Two DelayedArrays are fine:

cbind(y, y)
## <10 x 20> matrix of class DelayedMatrix and type "double":
## etc.
Session information
> sessionInfo()
R version 4.2.0 Patched (2022-05-06 r82323)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.6 LTS

Matrix products: default
BLAS:   /home/luna/Software/R/R-4-2-branch/lib/libRblas.so
LAPACK: /home/luna/Software/R/R-4-2-branch/lib/libRlapack.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    stats     graphics  grDevices utils     datasets  methods  
[8] base     

other attached packages:
[1] DelayedArray_0.22.0  IRanges_2.30.0       S4Vectors_0.34.0    
[4] MatrixGenerics_1.8.0 matrixStats_0.62.0   BiocGenerics_0.42.0 
[7] Matrix_1.4-1        

loaded via a namespace (and not attached):
[1] compiler_4.2.0  grid_4.2.0      lattice_0.20-45
Lenguaje dominante
R
Estrellas
29
Forks
12
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Bioconductor/DelayedArray

Todos los issues de Bioconductor/DelayedArray

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.