bfcquery returns inconsistent column types for empty rows
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start at the bfcquery entry point and reproduce the two map_df examples from the issue, comparing the column types for successful and empty results. Done means create_time and access_time have the same type in both cases and multiple queries can be row-bound without the shown error.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The column header types for the columns create_time and access_time are character vectors when non-empty, and double vectors when empty.
I expect that they should consistently return the same type; maybe character vectors always; although it's not clear why they are not date or datetime types instead.
Returning inconsistent types throws an error when trying to row bind join multiple queries using purrr::map_df where some of the queries are successful and some of them fail:
> files_remote
[1] "ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM1480nnn/GSM1480327/suppl/GSM1480327_K562_PROseq_minus.bw"
[2] "ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM1480nnn/GSM1480327/suppl/GSM1480327_K562_PROseq_plus.bw"
> map_df(files_remote, bfcquery, x = bfc)
Error: Can't combine `create_time` <character> and `create_time` <double>.
Run `rlang::last_error()` to see where the error occurred.
> map_df(files_remote[1], bfcquery, x = bfc)
# A tibble: 1 x 10
rid rname create_time access_time rpath rtype fpath last_modified_t… etag
<chr> <chr> <chr> <chr> <chr> <chr> <chr> <dbl> <chr>
1 BFC6 ftp:… 2020-06-29… 2020-06-29… /hom… web ftp:… NA NA
# … with 1 more variable: expires <dbl>
> map_df(files_remote[2], bfcquery, x = bfc)
# A tibble: 0 x 10
# … with 10 variables: rid <chr>, rname <chr>, create_time <dbl>,
# access_time <dbl>, rpath <chr>, rtype <chr>, fpath <chr>,
# last_modified_time <dbl>, etag <chr>, expires <dbl>
>
- Lenguaje dominante
- R
- Estrellas
- 14
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Bioconductor/BiocFileCache
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Bioconductor/BiocFileCache#76 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
Bioconductor/BiocFileCache#75 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Bioconductor/BiocFileCache#72 · 3 comentarios ·
-
Error in .util_downloadAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Bioconductor/BiocFileCache#66 · 16 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Bioconductor/BiocFileCache#60 · 3 comentarios ·
Todos los issues de Bioconductor/BiocFileCache
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
HelenaLC/spatialdataR#295 ·
-
size-time-budget
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
kapelner/EDI#66 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Openscapes/blogscapes#61 ·
Los mantenedores suelen responder en 1 día
-
bug posit-ai
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100