__init__.py 1.58 KB
Newer Older
1
#
2
# Copyright (C) 2017 Jerry Hoogenboom
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# This file is part of FDSTools, data analysis tools for Next
# Generation Sequencing of forensic DNA markers.
#
# FDSTools is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# FDSTools is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with FDSTools.  If not, see <http://www.gnu.org/licenses/>.
#

jhoogenboom's avatar
jhoogenboom committed
21
"""
22
23
24
Data analysis tools for Next Generation Sequencing of forensic DNA markers,
including tools for characterisation and filtering of PCR stutter artefacts and
other systemic noise, and for automatic detection of the alleles in a sample.
jhoogenboom's avatar
jhoogenboom committed
25
26
"""

Hoogenboom, Jerry's avatar
Hoogenboom, Jerry committed
27
__version_info__ = ('1', '1', '0')
jhoogenboom's avatar
jhoogenboom committed
28
29
30
31
32
33
34
35
36
37
38
__version__ = '.'.join(__version_info__)
usage = __doc__.split("\n\n\n")

def version(name, toolname=None, toolversion=None):
    """Return a version string for the package or a given tool."""
    verformat = "%s %s"
    toolverformat = "%s (part of %s)"
    if toolname is None:
        return verformat % (name, __version__)
    if toolversion is None:
        return toolverformat % (toolname, verformat % (name, __version__))
jhoogenboom's avatar
jhoogenboom committed
39
    return toolverformat % (verformat % (toolname, toolversion),
jhoogenboom's avatar
jhoogenboom committed
40
                            verformat % (name, __version__))