This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import functools | |
import inspect | |
import json | |
import sys | |
def recipe_inputs(schema, kw='inputs'): | |
def decorator(recipe_func): | |
@functools.wraps(recipe_func) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def xor(fields, group_name): | |
"""Creates an Exclusive OR (XOR) logical gate voluptuous schema. | |
see https://github.com/alecthomas/voluptuous/issues/126 | |
:param fields: fields comprising the exclusive group. | |
:type fields: Dict[str, Schema] | |
:param group_name: exclusive group identifier. | |
:type group_name: str | |
:returns: XOR gated voluptuous schema. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Translate a Tandem Repeat Finder file into a bed file containing | |
annotated repeat intervals. | |
> This file is a text file which contains the same information, in the same | |
order, as the summary table file, plus consensus pattern and repeat sequences | |
http://tandem.bu.edu/trf/trf.definitions.html#table | |
""" | |
from __future__ import division |
OlderNewer