Escape character usage in YML file - running tool in CWL
1
0
Entering edit mode
5.9 years ago
ttom ▴ 220

I am trying to run the tool STAR for alignment

cwl-runner star.cwl star.yml
  /cwl-runner 1.0.20180521150620
Resolved 'star.cwl' to 'file:///cwl_tests/scripts/star.cwl'
Tool definition failed initialization:
while scanning a double-quoted scalar
  in "file:///cwl_tests/scripts/star.yml", line 34, column 17
found unknown escape character '@'
  in "file:///ccwl_tests/scripts/star.yml", line 34, column 19

The given below syntax is given in star.yml file at line 34

outSAMheaderHD: "\@HD VN:1.4"

What is the best way to escape '@' character ?

CWL YML YAML • 3.2k views
ADD COMMENT
1
Entering edit mode
5.9 years ago
ttom ▴ 220

The issue was I had to define outSAMheaderHD as an array in CWL file

Lines from star.cwl

 outSAMheaderHD:
  type: string[]
  inputBinding:
   position: 22
   prefix: --outSAMheaderHD

Lines from star.yml

outSAMheaderHD: ["@HD", "VN:1.4"]
ADD COMMENT

Login before adding your answer.

Traffic: 2179 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6