Exemplo n.º 1
0
from kevlar import call
from kevlar import alac
from kevlar import simplex
from kevlar import simlike
from kevlar import dist
from kevlar import split
from kevlar import gentrio
from kevlar import cli

# C extensions
from kevlar.alignment import contig_align as align
import kevlar.assembly
import kevlar.sequence

from kevlar._version import get_versions
__version__ = get_versions()['version']
del get_versions


def open(filename, mode):
    if mode not in ('r', 'w'):
        raise ValueError('invalid mode "{}"'.format(mode))
    if filename in ['-', None]:
        filehandle = sys.stdin if mode == 'r' else sys.stdout
        return filehandle
    openfunc = builtins.open
    if filename.endswith('.gz'):
        openfunc = gzopen
        mode += 't'
    return openfunc(filename, mode)
Exemplo n.º 2
0
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = 'kevlar'
copyright = '2017, Daniel Standage'
author = 'Daniel Standage'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.

from kevlar._version import get_versions
# The full version, including alpha/beta/rc tags.
release = get_versions()['version']
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
del get_versions

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#
# today = ''