{ "info": { "author": "Rudolph Pienaar", "author_email": "rudolph.pienaar@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pl-mpcs\n================================\n\n.. image:: https://badge.fury.io/py/mpcs.svg\n :target: https://badge.fury.io/py/mpcs\n\n.. image:: https://travis-ci.org/FNNDSC/mpcs.svg?branch=master\n :target: https://travis-ci.org/FNNDSC/mpcs\n\n.. image:: https://img.shields.io/badge/python-3.5%2B-blue.svg\n :target: https://badge.fury.io/py/pl-mpcs\n\n.. contents:: Table of Contents\n\n\nAbstract\n--------\n\nThis app simulates a call to a remote Multi-Party Compute (MPC) in the context of a FreeSurfer workflow.\n\nThis particular application simply returns a z-score file to be consumed by a downstream plugin, typciall ``pl-z2labelmap``.\n\nNOTE: The is largely ignored by this plugin.\n\n\nSynopsis\n--------\n\n.. code:: html\n\n python mpcs.py \\\n [--random] [--seed ] \\\n [-p ] [--posRange ] \\\n [-n ] [--negRange ] \\\n [-z ] [--zFile ] \\\n [-v ] [--verbosity ] \\\n [--version] \\\n [--man] \\\n [--meta] \\\n \n \n\n\nRun\n----\n\nThis ``plugin`` can be run in two modes: natively as a python package or as a containerized docker image.\n\nUsing PyPI\n~~~~~~~~~~\n\nTo run from PyPI, simply do a \n\n.. code:: bash\n\n pip install mpcs\n\nand run with\n\n.. code:: bash\n\n mpcs.py --man /tmp /tmp\n\nto get inline help. The app should also understand being called with only two positional arguments\n\n.. code:: bash\n\n mpcs.py /some/input/directory /destination/directory\n\n\nUsing ``docker run``\n~~~~~~~~~~~~~~~~~~~~\n\nTo run using ``docker``, be sure to assign an \"input\" directory to ``/incoming`` and an output directory to ``/outgoing``. *Make sure that the* ``$(pwd)/out`` *directory is world writable!*\n\nNow, prefix all calls with \n\n.. code:: bash\n\n docker run --rm -v $(pwd)/out:/outgoing \\\n fnndsc/pl-mpcs mpcs.py \\\n\nThus, getting inline help is:\n\n.. code:: bash\n\n mkdir in out && chmod 777 out\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-mpcs mpcs.py \\\n --man \\\n /incoming /outgoing\n\nArguments\n---------\n\n.. code::\n\n [--random] [--seed ]\n If specified, generate a z-score file based on and \n . In addition, if a further optional is passed,\n then initialize the random generator with that seed, otherwise\n system time is used.\n\n [-p ] [--posRange ]\n Positive range for random max deviation generation.\n\n [-n ] [--negRange ]\n Negative range for random max deviation generation.\n\n [-z ] [--zFile ]\n z-score file to save in output directory. Defaults to 'zfile.csv'.\n\n [-v ] [--verbosity ]\n Verbosity level for app. Not used currently.\n\n [--version]\n If specified, print version number. \n \n [--man]\n If specified, print (this) man page.\n\n [--meta]\n If specified, print plugin meta data.\n\n\nExamples\n--------\n\nCreate a z-file with values between -3.0 and +3.0\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n mkdir in out && chmod 777 out\n docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \\\n fnndsc/pl-mpcs mpcs.py \\\n -random --seed 1 \\\n --posRange 3.0 --negRange -3.0 \\\n in out", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/FNNDSC/pl-mpcs", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mpcs", "package_url": "https://pypi.org/project/mpcs/", "platform": "", "project_url": "https://pypi.org/project/mpcs/", "project_urls": { "Homepage": "https://github.com/FNNDSC/pl-mpcs" }, "release_url": "https://pypi.org/project/mpcs/1.0.10/", "requires_dist": null, "requires_python": "", "summary": "This app simulates an MPC compute call and creates a z-score file.", "version": "1.0.10" }, "last_serial": 5309680, "releases": { "1.0.10": [ { "comment_text": "", "digests": { "md5": "66e60afca9efaf988585f000c2fbac4b", "sha256": "40adf39e80eac0c24e1513b3784d7236120a9eddd9567071c8b54461c293f3db" }, "downloads": -1, "filename": "mpcs-1.0.10.tar.gz", "has_sig": false, "md5_digest": "66e60afca9efaf988585f000c2fbac4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5962, "upload_time": "2019-05-23T21:59:33", "url": "https://files.pythonhosted.org/packages/91/0a/fa6359108a16e946e35a212f957971057419dc51d98c0d52e4508e7a4ef8/mpcs-1.0.10.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6d1f637c7f5108a237a3a1ab7c68bf76", "sha256": "7eb4204864a13c3098476cc8c45073c5ed41fda7695de9c6c8a7567e3d411802" }, "downloads": -1, "filename": "mpcs-1.0.3.tar.gz", "has_sig": false, "md5_digest": "6d1f637c7f5108a237a3a1ab7c68bf76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6265, "upload_time": "2019-03-30T00:35:10", "url": "https://files.pythonhosted.org/packages/81/99/6a99798ba99343d38afe6b7ce3d67db7a73f3a1847de38565162e309a381/mpcs-1.0.3.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "b7aae637e9ee7fa5695038464f66b079", "sha256": "56ea31b81f0b1478fb793e1fd01fedb2f12b8924362e9204d03726313aeb3f35" }, "downloads": -1, "filename": "mpcs-1.0.6.tar.gz", "has_sig": false, "md5_digest": "b7aae637e9ee7fa5695038464f66b079", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6088, "upload_time": "2019-05-23T19:53:19", "url": "https://files.pythonhosted.org/packages/c8/49/6187b60553405e763e0b7a8fbb62eae8afdc12a94512f46bd761fb22740c/mpcs-1.0.6.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "428982ce4c7fbd2473d5c7d1c403d0b7", "sha256": "710257b24b075a003dfdd7befe3f6bf91f6a5b2ca4e2bdec792e29b3e0ad3911" }, "downloads": -1, "filename": "mpcs-1.0.8.tar.gz", "has_sig": false, "md5_digest": "428982ce4c7fbd2473d5c7d1c403d0b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6092, "upload_time": "2019-05-23T20:31:37", "url": "https://files.pythonhosted.org/packages/fc/ad/a41aab5d991c1204dbc17870cf86793dc1b1832363502b07cf12f4c45fea/mpcs-1.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66e60afca9efaf988585f000c2fbac4b", "sha256": "40adf39e80eac0c24e1513b3784d7236120a9eddd9567071c8b54461c293f3db" }, "downloads": -1, "filename": "mpcs-1.0.10.tar.gz", "has_sig": false, "md5_digest": "66e60afca9efaf988585f000c2fbac4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5962, "upload_time": "2019-05-23T21:59:33", "url": "https://files.pythonhosted.org/packages/91/0a/fa6359108a16e946e35a212f957971057419dc51d98c0d52e4508e7a4ef8/mpcs-1.0.10.tar.gz" } ] }