Coder Social home page Coder Social logo

kopalgarg24 / wdlmerge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15.06 MB

merge multiple WDLs

License: MIT License

Python 99.24% Jupyter Notebook 0.06% PowerShell 0.04% Shell 0.02% HTML 0.13% CSS 0.42% TeX 0.03% JavaScript 0.07%
wdl wdl-devtools wdl-language wdl-tasks wdl-workflows

wdlmerge's Introduction

WDLMerge

Merge WDLs

Installation

Install WDLMerge with pip

  pip install -i https://test.pypi.org/simple/ WDLMerge==0.1.1
  pip install miniwdl

Requirements

  • miniwdl

To run in Google Colab

from WDLMerge import *
import WDL
import asyncio
import nest_asyncio
import WDL

# Allow nested event loops in Jupyter notebook
nest_asyncio.apply()

Examples

Merge WDLs

wdl=merge_wdls(WDLs=["WDL_1.wdl", "WDL_2.wdl"])

Merge WDLs and Specify Task Order in Workflow

merged_wdl = merge_wdls(WDLs=["WDL_1.wdl", "WDL_2.wdl"], tasks_order=['task1', 'task3', 'task2'])

Validate WDL

validate_wdl('WDL_1.wdl')

Upgrade 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')

TODO

  • specify WDL task order

Notes to self

  • 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/*

wdlmerge's People

Contributors

kopalgarg24 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.