From 944b04c0f5d8df929f1b388f99ab305a0261a553 Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Fri, 24 Mar 2017 10:22:24 -0500 Subject: [PATCH] Add version number (0.1.0) --- ConstrainedMultiSample.py | 9 +++++---- MessagePassingInput.py | 2 +- NetworkUtil.py | 2 +- PCSF.py | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ConstrainedMultiSample.py b/ConstrainedMultiSample.py index 4b0568a..05f6e3b 100644 --- a/ConstrainedMultiSample.py +++ b/ConstrainedMultiSample.py @@ -1,4 +1,4 @@ -# © Copyright 2013 Massachusetts Institute of Technology +# Copyright 2013 Massachusetts Institute of Technology # BSD-2-Clause license https://github.com/agitter/MultiPCSF/blob/master/LICENSE from optparse import OptionParser @@ -11,8 +11,8 @@ import random import NetworkUtil -__author__ = 'Anthony Gitter' - +__author__ = "Anthony Gitter" +__version__ = "0.1.0" # Iterate between finding a common set of nodes among the samples # and learning Steiner forests constrained to use those @@ -24,6 +24,7 @@ def main(argList): (opts, args) = parser.parse_args(argList) print "Starting constrained multi-sample Steiner forest %s" % time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime()) + print "Multi-PCSF version %s" % __version__ print "Parameters: %s" % opts @@ -602,7 +603,7 @@ def CreateParser(): # Beta (only allowed to be set once initially, range of Beta is not supported) # Species # W cannot be given as a range of values - parser = OptionParser() + parser = OptionParser(version="Multi-PCSF version %s" % __version__) parser.add_option("--interactomepath", type="string", dest="interactomePath", help="This path points to the directory that contains the interaction network files",default='None') parser.add_option("--terminalpath",type="string",dest="terminalPath",help="This path points to the directory that contains the terminal (node prize) files",default='None') parser.add_option("--resultpath",type="string",dest="resultPath",help="This path points to the directory where the output files will be written.",default='None') diff --git a/MessagePassingInput.py b/MessagePassingInput.py index 6afaba7..2ae094f 100644 --- a/MessagePassingInput.py +++ b/MessagePassingInput.py @@ -1,4 +1,4 @@ -# © Copyright 2013 Massachusetts Institute of Technology +# Copyright 2013 Massachusetts Institute of Technology # BSD-2-Clause license https://github.com/agitter/MultiPCSF/blob/master/LICENSE __author__ = 'Nurcan Tuncbag' # Modified by Anthony Gitter diff --git a/NetworkUtil.py b/NetworkUtil.py index 878072f..b560e5c 100644 --- a/NetworkUtil.py +++ b/NetworkUtil.py @@ -1,4 +1,4 @@ -# © Copyright 2013 Massachusetts Institute of Technology +# Copyright 2013 Massachusetts Institute of Technology # BSD-2-Clause license https://github.com/agitter/MultiPCSF/blob/master/LICENSE import networkx diff --git a/PCSF.py b/PCSF.py index cd18230..8251e28 100644 --- a/PCSF.py +++ b/PCSF.py @@ -1,4 +1,4 @@ -# © Copyright 2013 Massachusetts Institute of Technology +# Copyright 2013 Massachusetts Institute of Technology # BSD-2-Clause license https://github.com/agitter/MultiPCSF/blob/master/LICENSE __author__ = 'Nurcan Tuncbag' # Modified by Anthony Gitter