LoginSignup
1
1

More than 3 years have passed since last update.

CWL実行時に、パラメータとしてファイルを渡したときの location や path

Posted at
  • location は、実行者側のファイルシステムのパスになる
  • pathは、cwl環境内でのパスになる。

以下は、ファイルを渡したときの、cwltoolが出力したもの。
いくつかのプロパティがどのようになっているかも確認できる確認できる

  • location
  • path
  • basename
  • nameroot
  • nameext
  • dirname

プロパティの詳しい内容については、
このなかの、Fieldsのところを読むと良い

01 "use strict";
02 var inputs = {
03     "file": {
04         "class": "File",
05         "location": "file:///home/manabu/work/cwl/ref/refGene.bed",
06         "size": 12622028,
07         "basename": "refGene.bed",
08         "nameroot": "refGene",
09         "nameext": ".bed",
10         "path": "/var/lib/cwl/stg82bad4cb-fb9a-4606-842e-99df90f8d021/refGene.bed",
11         "dirname": "/var/lib/cwl/stg82bad4cb-fb9a-4606-842e-99df90f8d021"
12     },
13     "renamed_name": "$(inputs.ref.path)"
14 };
15 var self = null;
16 var runtime = {
17     "cores": 1,
18     "ram": 1024,
19     "tmpdirSize": 1024,
20     "outdirSize": 1024,
21     "tmpdir": "/tmp",
22     "outdir": "/GnBghe"
23 };
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1