1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

nextflowで作業が行われるディレクトリのpathを取得する

Last updated at Posted at 2022-04-14

nextflowではworkというディレクトリの中にさらに細かく(プロセス単位で)作業ディレクトリが作成される。
このpathは$PWDを使うことで取得できる。
この時\をつけるのをお忘れなく。

test.nf
process whereAmI {
    echo true
    """
    echo \$PWD
    echo $PWD
    """
}

実行してみると

$ nextflow test.nf

/path/to/main/nf/work/86/e00b708..............
/path/to/main/nf/

おめでとうございます🎉
上段の\$PWDの方ではきちんとpathの取得ができましたね🌟

1
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?