common-workflow-language / common-workflow-language/cwltool

Auto-casting single item to array fails

Ouverte
#171 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
376
Forks
255
Merge moyen
2 j 7 h
PR mergées (30 j)
12

Description

Input

```
inputFileName_markDups:
type: File[]?
inputBinding:
position: 4
prefix: INPUT=
```

The call uses a _single_ BAM file from a previous step, not an array.

Causes the following error:

```
Workflow error, try again with --debug for more information:
Type mismatch between source 'file:///home/ubuntu/gitroot/common-workflow-language/workflows/workflows/GATK/GATK-complete-Workflow-h3abionet.cwl#samtools-sort/sorted' (File) and sink 'file:///home/ubuntu/gitroot/common-workflow-language/workflows/workflows/GATK/GATK-complete-Workflow-h3abionet.cwl#MarkDuplicates/inputFileName_markDups' ([u'null', {u'items': 'File', u'type': u'array'}])
```

But it works fine when markdup's input is:

```
inputFileName_markDups:
type: File[]
inputBinding:
position: 4
prefix: INPUT=
```

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.