Multiple optional inputs
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 36/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- backend
Línea de trabajo
Read the optional input pattern and its examples in the repository; the payload does not identify a file or test. Reproduce the reported collision with the supplied process and workflow, then determine how the pattern should generalize to multiple optional inputs. Done means documenting a working approach, with an example that avoids the reported collision.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The optional input pattern does not seem to work if a process has more than one optional input.
For example, the following test:
params.inputs = "$projectDir/data/sites.txt"
params.filter = "$projectDir/assets/NO_FILE"
process foo {
debug true
input:
path seq
path(opt)
path(opt2)
script:
def filter = opt.name != 'NO_FILE' ? "--filter $opt" : ''
def filter2 = opt2.name != 'NO_FILE' ? "--filter $opt" : ''
"""
echo your_command --input $seq $filter $filter2
"""
}
workflow {
prots_ch = Channel.fromPath(params.inputs, checkIfExists:true)
opt_file = file(params.filter, checkIfExists:true)
opt2_file = file(params.filter, checkIfExists:true)
foo(prots_ch, opt_file, opt2_file)
}
Returns a collision error:
ERROR ~ Error executing process > 'foo (1)'
ERROR ~ Error executing process > 'foo (1)'
Caused by: Process `foo` input file name collision -- There are multiple input files for each of the following file names: NO_FILE
Tip: view the complete command output by changing to the process work dir and entering the command `cat .command.out`
-- Check '.nextflow.log' file for details
How should one generalize this pattern to handle multiple optional inputs?
- 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
-
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#40 · 2 comentarios ·
-
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
-
BUG-MERGE-TO-HDR-RESULT-NAMEAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
storytold/photocraft#14025 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aws/serverless-java-container#1729 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
backdrop-contrib/commerce#65 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
glossyio/traffic-monitor#312 ·
Los mantenedores suelen responder en 1 día
-
Export `EagerAllowed` and `IntoBackend` from stable.v2Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
narwhals-dev/narwhals#4154 ·
Los mantenedores suelen responder en 1 día