Merge WDLs
Install WDLMerge with pip
pip install -i https://test.pypi.org/simple/ WDLMerge==0.1.1
pip install miniwdl
- miniwdl
from WDLMerge import *
import WDL
import asyncio
import nest_asyncio
import WDL
# Allow nested event loops in Jupyter notebook
nest_asyncio.apply()
wdl=merge_wdls(WDLs=["WDL_1.wdl", "WDL_2.wdl"])
merged_wdl = merge_wdls(WDLs=["WDL_1.wdl", "WDL_2.wdl"], tasks_order=['task1', 'task3', 'task2'])
validate_wdl('WDL_1.wdl')
# Get a WDL written in one of the older versions
!wget https://raw.githubusercontent.com/gatk-workflows/gatk4-germline-snps-indels/1.1.2/joint-discovery-gatk4-local.wdl
upgrade_wdl('joint-discovery-gatk4-local.wdl')
- specify WDL task order
- To update the package do the following:
# update version in toml
python3 -m build
# delete the previous tar
python3 -m twine upload --repository testpypi dist/*