aboutsummaryrefslogtreecommitdiff
path: root/workflows/yamlfa2ttl/yamlfa2ttl.cwl
blob: 25807940381ce8312c4eabc28091118c61e57fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env cwl-runner

cwlVersion: v1.1
class: CommandLineTool
doc: "Workflow to go from YAML (metadata) + FASTA (sequence) to TTL (metadata)"

inputs:
  path_fasta:
    type: File
    inputBinding:
      position: 1
  path_yaml:
    type: File
    inputBinding:
      position: 2

steps:
  check_format:
    in: {path_fasta: path_fasta, path_valid_formats: '../../bh20sequploader/validation/formats', format_to_check: 'text/fasta'}
    #out: true/false or nothing and it has to block the execution if the format is wrong
    run: check_format.cwl
  check_metadata:
    # input and output
    # run: check_metadata.cwl
  check_header:
    # id_fasta has to be equal to id_yaml
    # run: check_header.cwl
  check_sequence:
    # The sequence has to be similar to the reference
    # run: check_sequence.cwl