How to combine file creation and adding files (InitialWorkDirRequirement)
0
0
Entering edit mode
7.2 years ago

I have a script which takes a file prefix and assumes that prefix.$NUMBER is in the working directory. In addition I have to create a file in the workdir. In essence I want to combine the two listings below:

listing: |
      ${
        var listing = inputs.mydir.listing;
        listing.push(inputs.myfile);
        return listing;
       }

and

listing:
      - entryname: config.json
        entry: |
          {
           "global" : true ,
            "debug" : "2t"
          }

I tried:

listing:
      - entryname: config.json
            entry: |
              {
               "global" : true ,
                "debug" : "2"
              }
      - ${var f =inputs.nr_dir.location.concat('/').concat(inputs.nr_prefix).concat('.1'); return f; }
      - ${var f =inputs.nr_dir.location.concat('/').concat(inputs.nr_prefix).concat('.2'); return f; }

and

- $(inputs.nr_dir.path)/$(inputs.nr_prefix).1

Thank you for your help.

cwl • 977 views
ADD COMMENT
0
Entering edit mode

Can you share your entire CWL description? The inputs section I can infer some details about -- but it would be best if I didn't guess.

ADD REPLY
0
Entering edit mode

Can you provide a sample layout of what you want the working directory to look like? I'm not quite clear as to what your goal is.

ADD REPLY

Login before adding your answer.

Traffic: 1398 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