workflow-meetup
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 54th Workflow Meetup (2022-07-06 Wed, 07 Thu) ================================ [20220706-07 · workflow\-meetup\-jp/workflow\-meetup Wiki](https://github.com/workflow-meetup-jp/workflow-meetup/wiki/20220706-07) 2022-07-06(Wed) 2022-07-07(Wed) pitagora meetup と共催 13:00 - 19:00 まで。 完全リモートのため、全世界どこからでも参加可能。 # 事前計画 ## 全体 ## 石井 - 次回8月17日水曜日,18日木曜日を予定 - 2021年度は、月の第一週の水曜日13時スタートの方向。ただし、月曜日など他の日になるかもしれないです。 - 8月18日木曜日は、おそらくpitagora meetup と共催 # こうなりました ## 全体 ### JupyterLabのgithubサイトを作る ## 石井 toil + cwltool 石井がいつも試す組み合わせ - [jga-analysis](https://github.com/biosciencedbc/jga-analysis)は動きます。 - [human-reseq](https://github.com/ddbj/human-reseq)は動いたと思います。 ほかも大抵動くと思います(cwl1.2最先端の仕様をのぞく) ``` git+https://github.com/DataBiosphere/toil.git@aa50bbfdef66bd9a861fb889325e476405fe25b6 cwltool==3.1.20210816212154 galaxy-tool-util==21.9.2 ``` [1330](https://github.com/common-workflow-language/cwltool/issues/1330)について丹生さんと議論する。 - やりたいことは、ResourceRequirementsを適切に親のワークフローから、子供のコマンドラインツールに渡したい - 丹生さんとしては、WorkflowのStepのRequirements - 親のワークフローから子供のワークフローに、inputsを引き回したいわけではない [CWLの中のJavaScriptがどのように、nodeに渡されているかの例、inputsの前はvarが書いてある。](https://github.com/common-workflow-language/cwltool/pull/1566#issuecomment-1170944941) `self`については、[ParameterReferenceの仕様](https://www.commonwl.org/v1.2/CommandLineTool.html#Parameter_references)にのっている。 ```javascript= '"use strict"; var inputs = { "in": "hello inp1" }; var self = null; var runtime = { "cores": 1, "ram": 1024, "tmpdirSize": 1024, "outdirSize": 1024, "tmpdir": null, "outdir": null }; (function(){ return {"out": inputs.in +" "+inputs.in2}; })()' ``` もともとやりたかったのは、こんなかんじの[cwlを書いて、親のワークフローでいろいろ渡したかった](https://github.com/biosciencedbc/jga-analysis/blob/cf77df252ff187bdcf718d29f1fb4834c0626ed1/per-sample/Tools/gatk4-HaplotypeCaller.cwl) 現状は、このコマンドの上には、ワークフローが2段(以上?)あり、全部の段階で、inputsを明示的に上から指定してきて解決したきがする。 最初やりたかったのは、親のワークフローにだけ書いて、サブワークフローを何段経たあとに存在するCommandLineToolは、そのinputパラメータがあればその値を使い、なければ、defaultを使うなどをしたかった。 - 1330について - これだけを解決する場合、eagerにすればよい - ep3は、eagerで作っていて、conformance testとおっているところからして、現状のconformance testにはlazyのみ通るケースはないと思われる。 - 現状では、eagerでもlazyでも通るケースのみが登録されている。 - まずは、以下の流れがよさそうなのではないかという話になった。 - lazyのissueをたてる - 入力ファイルサイズによって、決まるようなケース - 1330解決のPRをする - lazyのissueを解決する - ExpressionToolに関するものも自然に解決するだろう - [unconnected ExpressionTool](https://github.com/common-workflow-language/cwl-v1.2/pull/156) - EagerとLazyどちらをデフォルトにするかの問題 - デフォルトeagerがよいのではないか?というのを1330で合意をとれればよい - [Clarify evaluation policy of Workflow level requirements · Issue \#157 · common\-workflow\-language/cwl\-v1\.2](https://github.com/common-workflow-language/cwl-v1.2/issues/157) - これもまた解決されるだろう。 - EagerもLazyも対応して、デフォルトどちらを使うかも決めれば、どの実装でも動きがきまるはずである。 - 丹生さんのところにある、`cwl:requirements`の議論もまた、1330とは別である。 - 今も、今後も、親が4で子が8となっている場合、8で動くべきである。 - 親が4で子が8なのに、子が4で動くのは、言語仕様違反 - 親と子が別のエンジンで動く場合、子に適切に requirements を渡す方法がない! - `cwl:requirements` だと子も 4 にされてしまう - さらに別のissueとしてoverride_requirements的なもの。 - cwltool は処理系拡張として[提供している](https://github.com/common-workflow-language/cwltool#overriding-workflow-requirements-at-load-time) - ほとんど全部を、プロセス数1でうごかすために、親のResourceRequirementsのcoreMaxは1、しかし、子供のうち1つだけは、コア16で動かしたいときに対応する言語仕様がない。 - ワークフロー実行エンジンと、コマンドラインツール実行エンジンが異なるときなどのために、明示的に必要。 - 新海さんと少しおはなしできたのは、別の仕事の解決にむかいそうです。ありがとうございます。 ## 西田 ## 丹生 石井補足:(どこか適切な場所に移動していただいて大丈夫です) はまりガチポイント: コンテナ内から、slurmに投げるのは、ちょっとおすすめしにくいかもしれない。munge.keyなどをシェアする必要があるだろう。 SGEだったとしても、submit許可されているホスト名の問題とかあったかも。`dockedr --net=host`こういうのもいるかもいsれない。 技術的には可能だが、大抵は(石井しか理解できない、したくない)黒魔術になってしまうだろうという感じもあります。 白魔術まってます。すごい知りたい。 せっていできる環境変数はこんな感じです。(バージョンふるいかもだけど、だいたいおなじ TOIL_SLURM_ARGS大事) https://toil.readthedocs.io/en/3.15.0/appendices/environment_vars.html コンテナ外のtoilからは、slurmに投げるのはいつもおこなっており、数カ所で試してきちんと動いてます。 (pipで必要ためしたものは、石井のセクションに書いてあります。←石井はこれで石井の動かしたいワークフロー動かしました) テストするだけなら ```console toil-cwl-runner --batchSystem Slurm /tmp/example.cwl /tmp/example-job.yaml ``` か、jobStoreの設定は必須かも。しれません。 ```console toil-cwl-runner --batchSystem Slurm --jobStore /home/manabu/work/slurmdocker/docker/jobStore3 /home/manabu/work/slurmdocker/docker/example.cwl /home/manabu/work/slurmdocker/docker/example-job.yaml ``` - [書きかけですが、今このブランチで開発中](https://github.com/biosciencedbc/jga-analysis/tree/add-readme-for-persample/per-sample) - これを書く必要があるので、なにかわからない。 ここまで石井 - RDM+ワークフローエンジン連携に関するミーティング - [GakuNin RDM](https://rdm.nii.ac.jp/) とワークフローエンジンを連携させたい - デモに使ったリポジトリ: https://github.com/tom-tan/sapporo-demo - RDM 的には、バックエンドのエンジンとジョブスケジューラー連携もやりたい - 長期的には遺伝研スパコンのノードと連携するみたいなのもできたらうれしい - 石井さんから toil とジョブスケジューラー連携のアドバイスをもらった - エンジンはホストに入れたほうがいい - コンテナからジョブを投入できない - バージョンの組み合わせの相性があるかも - そのうち解析している人からのフィードバックが欲しい - 募集中 - [cwltool#1330](https://github.com/common-workflow-language/cwltool/issues/1330) に関する議論 - 本質的には `requirements` 中の expression を eager に評価すべきか lazy に評価すべきか - cwltool は lazy, ep3 は eager - 長期的には以下がいいのでは? - [`cwl:requirements`](https://www.commonwl.org/v1.2/CommandLineTool.html#Requirements_and_hints) を継承された requirements 用に拡張 -> エンジンが別の場合 - 継承された requirements と `cwl:requirements` では優先順位が異なるため両方必要 - [WorkflowStep#requirements](https://www.commonwl.org/v1.2/Workflow.html#WorkflowStep) からステップの入力オブジェクトを参照する方法 - 現在の仕様では `inputs` でワークフロー全体の入力オブジェクトしか参照できない - そのうち [ep3](https://github.com/tom-tan/ep3) と [shaft](https://github.com/tom-tan/shaft) でも同じ問題に引っかかる - デフォルト lazy だと CommandLineTool 専門のエンジンの実装がめんどくさくなる - shaft は path mapping 周りの設計で難航中 ## 新海 - 論文向けの調査開発等 - Rも勉強します… 石井追加 - SNAP, FlatPak, AppImage - [Linux Mint Tips : SNAP、FLATPAK、APPIMAGE 違い比較 \| 221B Baker Street](http://baker-street.jugem.jp/?eid=25) 石井ここまで # 前回のミートアップから今回のミートアップまでにSlackなどにあったリンクメモ - ここから書く

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully