Example of aggregating file with associated metadata
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- documentation
Línea de trabajo
Read the existing aggregation patterns and examples in the repository to see how they collect process outputs. Add a best practices example that aggregates file.txt outputs together with their meta values, and make clear how the example handles multiple values and special characters in metadata.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently, there is no example of aggregating files AND associated metadata. For instance, in many/most nf-core pipelines the process outputs are something like:
output:
tuple val(meta), path("file.txt")
...but what if one wants to then aggregate all of the file.txt outputs into one table AND include the meta metadata in that output table?
As far as I can tell from scouring the nextflow slack channel, one must "embed" the metadata in the file paths and then parse the file paths in the aggregation step. For example:
Per-file process:
output:
tuple val(meta), path("${meta}.txt")
Aggregation process:
input:
path("*")
script:
"""
[somehow parse {meta} from input file path]
"""
Is there a better way, especially given the substantial limitations of trying to embed metadata into a file path (eg., dealing with multiple values and special characters in the metadata values)?
I'm sure a lot of pipeline developers would like a best-practices example of how to deal with this situation (without having to decipher how meta is dealt with in aggregation steps of nf-core pipelines).
- Lenguaje dominante
- Nextflow
- Estrellas
- 374
- Forks
- 73
- Merge medio
- 15 min
- PR fusionados (30 d)
- 1
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 nextflow-io/patterns
-
Multiple optional inputsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 36/100
nextflow-io/patterns#48 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
nextflow-io/patterns#42 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
nextflow-io/patterns#30 ·
-
Add combinations patternAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
nextflow-io/patterns#21 ·
-
Add example how parse json fileAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
nextflow-io/patterns#14 ·
Todos los issues de nextflow-io/patterns
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
push-based/user-flow#356 ·
Los mantenedores suelen responder en 1 día
-
area:docs documentation priority:medium size:small
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
RonaldHensbergen/composable-data-stack#1285 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Seeed-Studio/wiki-documents#5974 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
-
local devenv exampleAbiertodocumentation enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
es-ude/elastic-ai.creator#1046 ·
Los mantenedores suelen responder en 3 días